Found a way to fix the Clock!

This commit is contained in:
ccostan 2018-01-15 19:42:39 -05:00
parent c043da62f9
commit f732c17845
1 changed files with 6 additions and 2 deletions

View File

@ -25,12 +25,16 @@ rules:
- entity: input_boolean.clock_snooze
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "on") ? "snooze_on" : "snooze"}.svg'
action:
service: homeassistant.toggle
service: input_boolean.toggle
data:
entity_id: input_boolean.clock_snooze
- entity: input_boolean.school_mode
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "on") ? "school_on" : "school_off"}.svg'
action:
service: homeassistant.toggle
service: input_boolean.toggle
data:
entity_id: input_boolean.school_mode
- entity: media_player.alarm_clock
image_template: '/local/custom_ui/floorplan/buttons/${(entity.state === "playing") ? "stop" : "radio_on"}.svg'