make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.09k stars 440 forks source link

HA 2023.7 supports current humidity in humidifier entity #869

Closed make-all closed 11 months ago

make-all commented 1 year ago

HA 2023.7 now supports current_humidity attributes on the humidifier entity, and in the humidifier card.

Add this support to the humidifier entity in tuya-local in three phases:

  1. add the current_humidity attribute, and modify the configs for humidifiers and dehumidifiers to include this where supported, in addition to the separate sensor. Hopefully this change will remain backward compatible with older versions of HA since it is a pure addition.
  2. in a couple of months, when 2023.7 and later is widely deployed, update the HACS config to require 2023.7 and mark the separate sensors as deprecated and diagnostic.
  3. six months after marking as deprecated, remove the sensors.
make-all commented 11 months ago

Decided to do both step 1 and 2 now. If users upgrade tuya-local without upgrading HA, they will get the deprecation warning without being able to practically use the replacement, but this is a niche edge case, and it simplifies the schedule.