I’m looking to see what the best (or just easiest!) way to take merge the values of 2 sensors into one.
Fibaro wall plugs have 2 power reports that appear in HA as two separate sensors.
I’d like to combine them in a way that both reports are updating the one power value - with the most recent report always being the more accurate.
Thanks Mike, I appreciate the input. I’m a newbie here with HA, so could be wrong but is that trying to give me the average of the two? What I’m looking for is the same effect as how presence with multiple platforms (for example: nmap + owntracks) where the most recent update is the determinant.
Tackling this recently I have another approach using input_number (formerly input_slider).
You don’t want the input_number to appear in the UI (with its input box) - you’ll want to add an extra template sensor for that - but the slider has the really neat property of discarding values outside its min and max parameters. So you can filter out dirty sensor data.
The automation is trivial and just updates the input_number if any of the child sensors report.