Hi all, im needing some help with creating an automation.
I want to make one that is dynamic for all of my HVAC units.
currently i have a dashboard with the thermostat cards on it for each unit, and that works as expected. I want to make an automation that triggers when i press the power button on the card and if it sends a command to turn off the HVAC, it will then trigger the automation.
I have tried to use chatGPT but its not triggering the automation. I also want it to by dynamic so that it covers all the HVAC units and it determines the unit it needs to act on based on the unit the card is tied to.
Below is the output from chatGPT, which makes sense to me logically, but does not work.
I just need some assistance mainly on the trigger part. the rest i can manage.
`alias: HVAC Auto Fan Mode After Turn Off Command
triggers:
- event_type: call_service
event_data:
domain: climate
service: turn_off
trigger: event
actions: - variables:
hvac_id: "{{ trigger.event.data.service_data.entity_id }}" - delay: "00:01:00"
- data:
entity_id: "{{ hvac_id }}"
fan_mode: "4"
action: climate.set_fan_mode - data:
entity_id: "{{ hvac_id }}"
hvac_mode: fan_only
action: climate.set_hvac_mode - delay: "00:30:00"
- data:
entity_id: "{{ hvac_id }}"
action: climate.turn_off
mode: parallel`