Hi All, been around one month now and I would like to Merge all my single Automation into one, I like a Clean dash, plus this should work so I can change it quickly.
So far I have the following:
platform: state
entity_id: climate.hall,climate.play_room,.....
attribute: preset_modes
to: temporary
---
entity_id: trigger.entity_id # I think this is wrong, I have tired with '' and {{}} nothing works.
setpoint: >-
{{ state_attr(trigger.entity_id,
'status').setpoint_status.target_heat_temperature }}
duration:
minutes: 60
I tried to run this in a template but triggers are not support, so fair I get getting, I have another action to ping me a message if it works, but nothing for this.
I would like the Action to check what the trigger and found and run based on that, I think this should be possible but I feel like I am missing something really simple, could someone point me in the right direction?
Ha, as I typed that I was thinking "why wouldn’t trigger.entity_id be valid? It would be the same for both state objects…so would be useful to know outside, especially for those cases where to_state or from_state aren’t valid.
You’re right, it was probably just the lack of template. The syntax he has posted there is pretty alien to me. What is ‘setpoint’? I just thought this was some GUI automation, or some device trigger…both of which I’ve never used.
Typically I solved it before testing, same issue So I have removed it from the automation to check that the trigger is being set, but this is now falling…
regarding setpoint, this is to use to set the temperature using the thermostat dial, I use this to stop the wife putting on the heating for 7 hours a day…
Thanks for the updates all, will try so more testing and update once i work out what causing the issue
Thanks
I have the impression you may have misunderstood the meaning of my previous comment. I wasn’t referring to the automation’s technical aspects but to the rationale of overruling a loved one’s preferences.