Hey everybody,
I’m using ha for a couple of months now and this forum helped a lot - thanks a lot for that!
Mainly I use a floorplan (picture-elements card) with a lot of state-icons like:
- type: state-icon
tap_action:
action: toggle
entity: light.light_garden
style:
top: 15%
left: 13%
border-radius: 60%
text-align: center
background-color: rgba(102, 102, 102, 0.2)
Now I’m stuck with this ‘simple’ task: creating an icon for a light-timer, for example light_garden ON for 10 minutes after hitting the icon.
This is what I tried so far:
- type: state-icon
icon: mdi:timer-outline
tap_action:
action: call-service
service: timer.start
service_data:
entity_id: timer.10sec
entity: light.light_garden
style:
top: 15%
left: 20%
border-radius: 60%
text-align: center
background-color: rgba(102, 102, 102, 0.2)
timer.10min looks like:
duration: '0:10:00'
editable: true
icon: mdi:timer-outline
friendly_name: 10min
This does absolutely nothing, I think I did not understand a main thing with timers.
Thanks
Kai