Are you able to create a template binary sensor from the standard sensor provided by the integration using the YAML from my post here?
This mimics the state of the standard sensor. Given what we are seeing in the Automation Editor UI, I suspect using this will fix it and it will give us an idea of whether this is being caused by a sensor being used in the integration instead of a binary sensor.
Then use the new binary sensor you created as your trigger.
So, all I need feedback on best solution for an issue.
When you set a room to off, the actual target temp reported by the hub is -20C. We used to just show that but had complaints that is caused poor visuals on graphs as it dropped significantly negative.
We now set this to off. However, as HA and other integrations have developed, this is now causing an issue in that Off is not a valid temp value and certainly does not have a UOM.
So, what should we do with this? My suggestion is maybe set it to 0C but wanted to guage feeling.
I think if you set it to undefined it will not register anything and not show anything on graphs. I am using undefined for some template sensors for graphs and it is an invisible state/value. However, unfortunately I donāt know whether that will be a valid value either. All I know is it works in a template sensor that I use for creating the fill when heating under the current temperature in the History Explorer card:
If undefined doesnāt work in this context, and from a quick test in Developer Tools it doesnāt look like it will, then probably setting it to 0C makes sense. Itās better than the -20C reported by the hub at least.
Alternatively, what about setting it to the target temperature of the schedule, or the last state it was before switching off?
Sorry if itās a stupid question, but what is a UOM?
I think setting it to 0C makes sense as it will give a numerical value in cards ie the thermostat card, which is expected. If heating is Off then that sort of logically equates to 0, ie On = 1 and Off = 0.
If undefind is used wonāt that give an error or no displayed value?
This is part of the problem as the schedule can also be off and leaving it on the last state i think would look odd as it will look like heating is not firing.
I was also going to look if i can make it unavailable and what that would do.
Seems like there is no clear solution to this then unless there is some sort of undefined / unavailable / null / none / unknown state it can be set to. 0C gets my vote if there are no alternatives that work.
Quite possibly. I am fairly sure I posted the code for this ages ago, miles back up the thread.
I donāt think it would need device_class: temperature, but I really donāt know. Itās unexplored territory there.
For the heat graph sensors for use with the History Explorer card, I think I tried setting it to 0C and it didnāt work as intended. Iām pretty sure that the author of that card said to use undefined for that reason.
I hadnāt realised (or have forgotten) that it had been marked End of Life! Thatās a real shame. If you know why, or have more details, I would be interested to hear why/what happened for him to abandon it. PM me though rather than clogging up the thread here.
Another thing I am eventually going to have to find a replacement and rewrite loads of stuff for.
For my point of view 0 C should be also the best way to show the off temperature , itās a numeric value and it will be consistent even with future version of HAā¦
Should it be possible ( makes it sense) to let the user choose an off temperature in the setting of the integration?