Hi Everyone (& please forgive my English),
I do have a buton on my dashboard that is supposed (at least that’s what I try to achieve) to change color while the automation (garden sprinkler for 15 mn) is running. The automation in itself is running fine, but the color never change on the button.
I’ve read a lot of different post, tried with different method including the custom button card, but I’m not able to make it work. >Htere has to be something quite obvious that I m not getting.
If some might enlight me there, I ll more than thanks full
my automation is
alias: Arrosage_15_mn
description: lance l arrosage automatique pendant 15 mn
trigger: []
condition: []
action:
- if:
- condition: device
type: is_off
device_id: e5196d2aca238fc0f383efc3af3effcb
entity_id: 98dc579b33fd39717d73d311c419346e
domain: switch
then:
- type: turn_on
device_id: e5196d2aca238fc0f383efc3af3effcb
entity_id: 98dc579b33fd39717d73d311c419346e
domain: switch
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- type: turn_off
device_id: e5196d2aca238fc0f383efc3af3effcb
entity_id: 98dc579b33fd39717d73d311c419346e
domain: switch
mode: single
and my button is:
type: button
name: Arrosage 15 mn
icon: mdi:sprinkler-variant
entity: automation.arrosage_15_mn
show_state: true
state_color: true
tap_action:
action: call-service
service: automation.trigger
service_data:
entity_id: automation.arrosage_15_mn
thanks for your time,
Laurent