Skip to content

Commit 8f14620

Browse files
committed
Fix boolean casting issues with toggle and initial commands
1 parent 34f2791 commit 8f14620

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config.example.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ command_icon_mapping:
6464

6565
# Defines which command is executed on a TOGGLE action
6666
toggle_mapping:
67+
"ON": "OFF"
68+
"OFF": "ON"
69+
"100": "0"
70+
"0": "100"
6771
PLAY: PAUSE
6872
PAUSE: PLAY
69-
ON: OFF
70-
OFF: ON
7173
UP: DOWN
7274
DOWN: UP
7375
OPEN: CLOSE
7476
CLOSE: OPEN
75-
"100": "0"
76-
"0": "100"
7777

7878
# Defines which command is executed if the state is NULL when toggling or sliding
7979
initial_command:
80-
Dimmer: 0
81-
Switch: ON
80+
Dimmer: "0"
81+
Switch: "ON"
8282
Player: PLAY
8383
Rollershutter: DOWN

0 commit comments

Comments
 (0)