Hi, I have a helper set as Arithmetic mean of two sensors.
It is almost always wrong.
As of right now, Entity 1 is 23.9C, Entity 2 is 29.6, yet the mean is… 29.6.
The original entities are set correctly. Restart didn’t help. HA 2024.7.4, nothing related in log.
Wth? Any ideas? Thanks.
tom_l
July 31, 2024, 1:46am
2
Which helper are you using?
“Combine the state of several input sensors” with Arithmetic mean preset.
tom_l
July 31, 2024, 3:51am
4
So the Min/Max helper.
There are no open issues:
I just created a test sensor.
Temp Sensor 1: 18.4°C
Temp Sensor 2: 18.1°C
Mean from helper: 18.25°C
So it is working as expected for me.
Do both your source sensors have the exact same unit of measurement?
Look very closely at the ° symbol. There are a number of similar symbols that will prevent your sensors being combined.
No Min/max helper in my install (HAOS VM on Proxmox, everything up to date). Yes, both are °C, with one decimal.
Thanks!
tom_l
July 31, 2024, 5:50am
6
Please post the output of Settings → System → Repairs → ⋮ (top right) → System Information
Sorry, typical user error, I changed weather provider and didn’t update the helper for new entity. It would be nice if there was like a red badge or an exclamation mark in the helper setup UI if the entity is invalid.
Sorry for wasting your time.
The differently named Min/max helper type is weird though
WallyR
(Wally)
July 31, 2024, 7:06am
10
Look into the Spook integration.
It has a bit of that functionality.
1 Like
Spook does warn about invalid entities in scripts and things like that but it didn’t catch this one. Thanks!
tom_l
July 31, 2024, 7:57am
12
I think I just worked out why our helpers are named differently too.
I use the min/max integration in YAML. That probably has something to do with it.
sensor:
- platform: min_max
unique_id: ff0dc72e-c9c0-4b95-8fc2-f6d7b2d57009
type: mean
round_digits: 0
name: Average Upstairs Humidity
entity_ids:
- sensor.bathroom_humidity
- sensor.ensuite_humidity
- sensor.dining_room_humidity
- sensor.lounge_room_humidity
- sensor.master_bedroom_humidity
- sensor.spare_bedroom_humidity
It’s the same underlying helper though as you only use the UI yours is called “Combine the state…etc”.
1 Like
Good. I gave some average sensors in YAML as well.
All is well, thank you guys!