I have a script running for climate.tv_ruimte. But I also have other airco’s runnning. Instead of changing them al to the new entity, is is possible make the script this way that he looks at the entity used in my card ? :
alias: Airco_tvhoek_stand_drogen
sequence:
- service: climate.set_hvac_mode
target:
entity_id:
- climate.tv_ruimte
data:
hvac_mode: dry
mode: single
icon: mdi:fan
- type: custom:mushroom-chips-card
chips:
- type: template
entity: climate.tv_ruimte
icon: mdi:water-remove-outline
icon_color: >
{% if is_state("climate.tv_ruimte", 'dry') %}
[200, 142, 77]
{% else %}
[84, 84, 84]
{% endif %}
tap_action:
action: call-service
service: script.airco_tvhoek_stand_drogen
service_data:
entity_id: script.airco_tvhoek_stand_drogen