Closed jwl17330536 closed 8 years ago
After hitting submit my Nest switched over to use a different weather underground station, which resulted in a drastic change that took the outside temperature below 100. Now that it is below 100 I noticed that it is evaluating 95 is less than 80. Same code from the image above, but with different results which should have been the same.
Side note: Anyone have any idea how to ensure that my Nest uses a correct station??? When it jumps to one certain station I always get between 10 and 15 degrees higher than all of the surrounding stations!
Can you try to wrap both sensor statements with float()
?
i.e. {% if float(x.x.x.state) > float(x.x.x.state)
%}
Sorry for the delay. Never had time to do this while the temp was above 100 again.
That works!
Glad its working!
Hope you get your Nest pinned to a weather station.
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
):root@automation:/var/opt/home-assistant# cat .HA_VERSION 0.24.1
Python release (
python3 --version
):root@automation:/var/opt/home-assistant# python3 --version Python 3.4.2
Component/platform:
sensor / template
Description of problem:
Comparing outside temperature to that of indoor temperature. If outside is greater than indoor then "warmer" else "cooler".
Expected:
I would expect 105 > 79 and result in "warmer" (see attached image)
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info: I don't think that it is related, but with the above yaml code I cannot start hass. I'm seeing:
EDIT: This error below is not related in any way! I found my problem that caused this. After many lines repeating hass eventually fails trying to initialize an automation rule that is looking for the state of above sensor_template