So I am automating a push to ios, triggered by power usage drop - Well actually a push message to let me know when washing machine is done.
The push works when triggered manually, and the psuedo binary sensor works as intended - but I cannot make the trigger to trip no matter what I do. Please assist.
So first I define the psuedo binary sensor, which is set to true when the washing machine is off, and false when it is on (yeah I know, kinda upside down )
Should you discover that your Template Binary Sensor fails to update itself (and only updates on startup) specify the entity_id so Home Assistant know what it should be monitoring.
Without entity_id, Home Assistant inspects the value_template and attempts to find the entities that should be monitored for state-changes. If it is unsuccessful, the template binary sensor will only be updated once when Home Assistant starts and never again (until the next restart).
if you only have one automation then it’s not required. and if there was a problem with syntax the config check should throw an error. It’s not so I don’t think it’s that syntax issue.
maybe the issue is with the template itself?
post a screen shot of the “switch.tvattmaskin” in the dev states page with all of its attributes showing.
When the Template Binary Sensor uses that template it will report True as on and False as off. Those are the two states you can use for triggering an automation.
I was wondering if the syntax of the template might be an issue. That’s why I was asking for that screen shot just to verify it wasn’t reporting in some weird json format that needed the square brackets.