Hi there;
I have two Hue Motion sensors outside I use as temperature sensors.
“Driveway” is mostly correct except for early mornings where it heats up from sunlight.
“Front door” is usually warmer then real temp from the roof, but is more accurate in the morning when “driveway” is getting warm in the sun.
I wish to make a simple sensor template that creates a sensor “outside lowest”, which, takes the temperature of either “Driveway” or “Front Door” , whichever is the lowest.
The template appears to work. Except between roughly 0730h - 0930h in the morning!! Of which, the logic maths doesn’t work, and there is a sudden abrapt change from “front door” (coolest at that time) to “Driveway” (about 10-15 degrees warmer).
Then randomly, it switches back, and behaves for the rest of the day.
Why is it doing this? HA overloading at that time? I can’t for the life of me work out why.
Here is the Sensor Template in Config.yaml;
- platform: template
sensors:
outside_temp_lowest:
friendly_name: 'Outside Temp'
unit_of_measurement: '°C'
value_template: >
{% if states('sensor.front_door_sensor_temperature') > states('sensor.driveway_sensor_temperature') %}
{{ states('sensor.driveway_sensor_temperature') }}
{% else -%}
{{ states('sensor.front_door_sensor_temperature') }}
{% endif %}
Graph picture attached of the temp jumping up to Driveway and back down to front door.
Any help much appreciated.!