Skip to content

Commit eb98181

Browse files
committed
add turn_off service in template switch
1 parent 8274cad commit eb98181

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

hass-config-example.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ switch:
1010
service: switch.turn_on
1111
data:
1212
entity_id: switch.computer_wol_proxy
13-
#turn_off: # define your own action to turn off, or leave commented out
13+
turn_off: # can also add your own turn off service here
14+
service: system_log.write
15+
data:
16+
message: "Computer does not support turning off"
17+
level: warning
1418

1519
# MQTT switch that controls WOL-proxy
1620
- platform: mqtt

0 commit comments

Comments
 (0)