I’m very new to HA. I’ve run across a problem and I’m not sure how to figure out the issue. I’d appreciate any guidance.
I have 2 automations. They both use the current temperature from an indoor thermometer to turn on a plug to keep a bathroom in the range of 74 degree F. The yaml’s for both are near the bottom of this.
It was working fine for several days. You can see the temp chart here.
Then around 6pm jan 9th neither of the automations would trigger anymore. I rebooted my HA yellow, Unplugged the plug to reboot that. This thing just no longer triggers from the automations it seems.
I can use HA to manually turn the switch on and off so I know HA can control the plug. I know HA can see the temp because it shows the chart,. But the automation does nothing. I tried looking at the traces but since its not triggering there really isn’t anything there that I can use to figure this out. Being a noob its much easier to try and see when something triggers when it should not then why it doesn’t trigger. There’s seems to be fewer places to give clues.
Anyone have any ideas?
From your chart, it looks as if the temperature has been consistently above 75 for the last 24 hours, so neither automation would trigger anyway.
Not sure about earlier on - is it possible that it has always been above your threshold of 74? A trigger is an event, not a state. To fire your first automation, the temperature would have to rise from below 74 to above 74 and stay there for 2 minutes. It would then have to drop below 74 and rise a second time before it fired again.
Being new it’s more about building my ha skills then just getting an automation in place. I’m still trying to learn how to ride the bike in the parking lot .
Once my skill is a bit better I’ll start looking at blueprints etc and use and learn how they work from a development point of view.
Don’t reinvent the wheel. A generic thermostat is not a blueprint but a built-in function in Home Assistant, that will be infinitely more reliable than any automation you could cobble together. Even if you already had tons of experience writing them.
Thanks but my ha journey is about learning to master this. I already have a home automation system at home based on the universal devices universe that I’ve mastered, it’s ruining the house and I’ve outgrown.
So my ha is about learning and mastering, results are secondary at this stage.
There are several ways to do most things. An alternative to the generic thermostat might be an automation triggered by a threshold helper. If you define upper and lower limits, it will be “on” when the temperature is between them, otherwise off.
Your action section could then be: “if temperature >74 do this, else do that”.
Thanks so much for this. I get the concept, pretty easy to understand when its laid out the way you just did. This helps my understanding of the “natural” HA landscape a bit more.
It looks ;like I need to learn and try working with helpers more to “own” thier use scope.
Incidentally, you might get a better feel for how HA works if you work with entities rather than devices. Most devices contain several entities, so it gives you a better focus on what’s happening.
I’m trying to look under the covers at the code of this helper and I’m not finding how to look at that. In the UI I dont see any yaml edit option to see how its constructed.
What’s the best way to see the moving parts of a helper, not just the human facing settings?
In most cases things that are configured via the UI do not have corresponding YAML configuration, the configuration is stored as json within a hidden folder in the config folder.