Skip to content

Commit a0b7f74

Browse files
committed
fix: add state to example toggle
1 parent fe8b89e commit a0b7f74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,10 @@ entities_json:
219219
"type": "switch",
220220
"availability_topic": "intouch2/availability",
221221
"command_topic": "intouch2-loopback/reset_buttons/availability",
222+
"state_topic": "intouch2-loopback/reset_buttons/availability",
222223
"payload_on": "online",
223224
"payload_off": "offline",
224-
"value_template": "{{ value == 'online' }}"
225+
"value_template": "{{ 'offline' if value != 'online' else 'online' }}"
225226
}
226227
- |-
227228
{"name": "Change Water",

0 commit comments

Comments
 (0)