@adamp237 wrote:
Hi, I have the following config:
#Garage Door Status - platform: mqtt name: garage_door_time state_topic: "garadget/APGarageDoor/status" value_template: ‘{{ value_json.time }}’ - platform: mqtt name: Wifi Strength state_topic: "garadget/APGarageDoor/status" value_template: ‘{{ value_json.signal }}’ unit_of_measurement: 'dB' - platform: mqtt name: garage_door_status state_topic: "garadget/APGarageDoor/status" value_template: ‘{{ value_json.status }}’
It works fine at telling me whether my Garage Door is closed or not. However the status outputs ‘closed’ in apostrophes or ‘open’ etc. Lots of my automations aren’t working and I’m wondering if this is the reason. Is there a way I can get it to stop putting the status within apostrophes?
I’ve tried removing the apostrophies from {{ value_json.time }} but then the YAML breaks.
Posts: 1
Participants: 1