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
@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
@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
@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
@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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini