for a simple window open/close decision/action I would like to calculate the absolute water content of air at two wifi hudity sensors (inside and out). I do have the formula in excel, however no clue how and where to attack this… any ideas where those objects are defined?
The outcome would be an additional object attribute of the sensor showing the water content in g/m³ with which we can decide to open the window for drying a basement or room for example or if it’s better to keep it shut.
The attributes of any given entity are defined by their integration. AFAIK, there isn’t an easy way to add attributes to existing entities. Instead, use a Template Sensor to perform your calculations.
If the integration would ESPhome and the device reading the sensorvalue an ESP the code should be implemented on the ESP, since the calculation becomes useless in case the input sensor readings aren’t available (powercut, connectionloss, …)
I’d say Tobias must pass on more information.
Basically it is an Tuya/Smart Life ESP device, however a standard Ali-one… guess it should be fine though if the calculation is done off-sensor. As long as both temperature and humidity are available that should work out. It doesn’t have a standard port for flashing, so it’d be great if Drews proposal works, will try this evening getting it implemented.
what’s missing though is that some of these are limited means they don’t should b calculated across the most common temperature ranges since they only do make sense within a limited bandwidth.
have I missed one? Of course the “feels-like temperature”, but this does require wind-speed which isn’t given by the bme sensors.
That’s very interesting @justone. Where I am we don’t use such descriptive terms for the weather - we just have a combination of wet, dry, cold and mild, with the wet being the predominant observation.
I’ll have a play around with them and see if I can integrate them into both HA and ESPHome.
The constant b (molar mass of water) is probably affected by the temperature & pressure, but it’s commonly stated as 18.0153 g/mol. I think it’s fine for what we need.
Well this all ends up in a value where you surely finally visualise it using wording such as to cold, slightly cold, ideal, slightly warm reachin for unconcious, danger, extreme danger … if I translate the terms I’m aware of into english. http://summersimmer.com/ (just one of a dozend links)
In the end it was more sort of fun to see if it’s just me feeling a bit deplaced in summer upstairs if trying to be care for a greener planet not switching on my air conditioner, or if the combination of temperature and humidity created a mix humans aren’t designed for.
I simply tried to find out if all these indexes match my personal indisposition last summer when making up my mind about turning the air conditioner off for a greener planet to keep it running for a tolerable living.