#triggerless automation

1 messages · Page 1 of 1 (latest)

tired path
#

Beginner's question:
probably lack of understanding of "trigger" but how do I create an automation without a specific trigger? Eg whenever the following conditions exist, do that! The purpose it to switch the central heating pump on/off whenever the actual temperature of any thermostatic valve goes below/above its target.

swift pewter
#

A triggerless automation is a script. However without a trigger the script won't run. Why don't you want to use a trigger?

tired path
#

So I am looking for Paulus IS home rather than Paulus ARRIVES home. I understand I can make it a condition, but then what would be the trigger?

proven lodge
#

What are you trying to achieve?

#

A trigger is always a single event, so when X changes to Y.

#
  • When Paulus arrives home (changes state from not_home to home)
  • When HA starts (changes from booting to started)
tired path
tired path
proven lodge
#

Only on startup, as a trigger is a single event

#

You need to trigger on changes of those valves

tired path
#

OK, that is what I thought. So how to make so that it would run anytime the conditions are met?

proven lodge
#

please explain in more detail what you are trying to achieve

tired path
#

I just wrote that twice: switch a central heating pump on/off depending on the relation of target/actual temperature of any (on) / all (off) of the 13 thermostatic valves.

#

Am I right in thinking that I will have to enter all 13 devices as triggers?

swift pewter
#

either that or you might be able to use a template

proven lodge
#

Yes, but I'm asking for more details so I can help you.
What do you meant with the relation of target/actual temperature.

#

But you can probably combine them in one trigger

#
# example
trigger: state
entity_id:
  - climate.valve_1
  - climate.valve_2
  - climate.valve_3
attribute: temperature
#

Tihis will trigger when the temperature attribute of one of those climate entities changes

tired path
proven lodge
#

With the new triggers introduced as lab feature in 2025.12 it will become easier

tired path
proven lodge