Ancestors

Written by warthog9 on 2024-12-03 at 05:32

When you can mash / plead / beat the templating engine into doing what you want in #HomeAssistant it is incredibly powerful.

Good freaking grief it took far too much effort to make an average of a dynamic set of sensors (Air Quality sensors inside my house).

=> More informations about this toot | More toots from warthog9@social.afront.org

Toot

Written by Emil "AngryAnt" Johansen on 2024-12-03 at 07:52

@warthog9 The big problem is the dynamic part, preventing the use of a sensor group?

=> More informations about this toot | More toots from AngryAnt@mastodon.gamedev.place

Descendants

Written by Daniel Lakeland on 2024-12-03 at 14:10

@AngryAnt

Agreed. It's easy using a helper to take an average of a fixed set of sensors. Or as I did to take the median of temperature sensors in my two HVAC zones. But if you have a dynamic set of sensors.... That's seems both weird, and hard.

@warthog9

=> More informations about this toot | More toots from dlakelan@mastodon.sdf.org

Written by warthog9 on 2024-12-03 at 16:37

@dlakelan @AngryAnt Dynamic list of sensors isn't even that weird as sensors may be up / down / out of battery / etc so you only want to sum up what's online / active / etc.

The only reason it's hard per-se is just figuring out how to get the template(s) to work the way HASS has thought they should work and working back from there. Obnoxiously the only way I figured out how to handle the averaging was a bit more rudimentary than I wanted but it works

=> More informations about this toot | More toots from warthog9@social.afront.org

Written by Daniel Lakeland on 2024-12-03 at 19:13

@warthog9 @AngryAnt

Hmm... does the homeassistant helper not ignore sensors that are offline? What does it do, take the last known value?

My experience is that taking the median of multiple temperature sensors is working well for me whether or not sensors are offline. But I haven't actually tested off/online

=> More informations about this toot | More toots from dlakelan@mastodon.sdf.org

Written by warthog9 on 2024-12-03 at 21:44

@dlakelan @AngryAnt it might, but it's also a lot easier to say "all entities that have aqi or similar in their entity_id except these or another constraint" also means I never have to go manuall add something to get it to work, and the list could be 10s to 100s of devices so manual is not ideal.

=> More informations about this toot | More toots from warthog9@social.afront.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113587805630121959
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
308.392354 milliseconds
Gemini-to-HTML Time
1.618435 milliseconds

This content has been proxied by September (3851b).