Hello,
i have created button to run a script for AC control.
show_icon: true
color_type: icon
type: custom:button-card
entity: script.ac_office_cool
tap_action:
action: perform-action
perform_action: script.turn_on
target:
entity_id: script.ac_office_cool
data: {}```
This works fine and it does run the script.
How can i color icon of this button based on the state of the AC entity this script controls (so that means different entity from the script itself)?
script entity : `script.ac_office_cool`
AC entity : `climate.ac_office` and from developer tools : `climate.ac_office.hvac_modes` contains list of all states of the unit