Also when u use any state change keep in mind what u want the automation todo when it triggers.
Should the automation restart or run another parallel? Default is single and you’ll get an error when it triest to trigger the automation and the automation is still running
ok thank you. In this case I need to switch on/switch off a plug based on the heating status… if on or not.
So I think single is correct?
did I understood that correctly?
Single will be fine for that. You can always drop in to the yaml and add
max_exceeded: silent
If you find in the log that there are messages complaining that it is already running.
Also be aware that if this is a climate entity we are talking about, then the actual heating status is in the attribute hvac_action and NOT in the state of the climate device - which is actually just the mode it is set to.