PeteRager / lennoxs30

Home Assistant Lennox S40 / S30 / E30 / M30 integration
MIT License
88 stars 13 forks source link

Auto create temperature and humidity sensors for each zone #59

Closed magnetic157 closed 2 years ago

magnetic157 commented 2 years ago

Are there any plans to incorporate sensors the current indoor temperature and humidity?

PeteRager commented 2 years ago

Yeah, I think we should do this. I’ll add an option to the configuration to create humidity and temperature sensors for each zone. Be in the next release. Week or so.

The workaround is To manually create a sensor template to extract these attributes from climate entity as described here:

https://community.home-assistant.io/t/access-the-temperature-value-from-a-climate-entity/153429

PeteRager commented 2 years ago

Specs for the enhancement for review.

  1. Configuration.yaml Entry (CREATE_ZONE_SENSORS) to create temperature and humidity sensors for each zone. Default is not to create to preserve existing behavior.
  2. Sensor default names. sensor.__humidity or _temperature
  3. Sensor ids. sensor.__h or _t
  4. Unit of measure - temperature Celsius or Fahrenheit depending on Home Assistant default measurement system
  5. Unit of measure - humidity - %
PeteRager commented 2 years ago

Code is working, testing and should have a release later this week

image

PeteRager commented 2 years ago

Resolved in upcoming 0.1.2 release There is a configuration parameter (documented in readme.md) that when set automatically creates these sensors

PeteRager commented 2 years ago

https://github.com/PeteRager/lennoxs30/releases/tag/v0.1.2

Please open a new issue for any problems / changes.