dlarrick / hass-kumo

Home Assistant module interfacing with Mitsubishi mini-split units
MIT License
96 stars 21 forks source link

humidity sensor? #69

Closed momoz closed 2 years ago

momoz commented 2 years ago

Is there a way to expose the humidity? my unit reports it in the app and the wireless module.

thx

dlarrick commented 2 years ago

If you have a sensor paired to your indoor unit, the humidity is reported as an attribute on the main climate unit as "current_humidity". You can set up a template sensor to extract this attribute to a sensor entity. Here's mine:

      loft_humidity:
        friendly_name: 'Loft Humidity'
        unit_of_measurement: "%"
        value_template: >
          {{ state_attr('climate.loft','current_humidity') }}

If you don't have such an attribute, feel free to reopen this issue with more details about your setup.

momoz commented 2 years ago

yeah, I don't have the current_humidity attribute. How do I re-open issue?

These are the current attributes:

hvac_modes:
  - 'off'
  - cool
  - dry
  - heat
  - fan_only
min_temp: 45
max_temp: 95
fan_modes:
  - quiet
  - low
  - powerful
  - auto
swing_modes:
  - horizontal
  - midhorizontal
  - midpoint
  - midvertical
  - vertical
  - auto
  - swing
current_temperature: 77
temperature: 78
fan_mode: auto
hvac_action: cooling
swing_mode: auto
filter_dirty: false
defrost: false
rssi: -58
runstate: normal
friendly_name: Garage
supported_features: 41
dlarrick commented 2 years ago

As of right now, only humidity from remote sensors is supported by pykumo library. If your indoor unit has a humidity sensor built in, the library will need to add support for it. But that's a task for over in the library's repo: https://github.com/dlarrick/pykumo . I have put some instructions in the main README there for how to dump the raw information returned by the indoor unit; if the humidity is there, it should be easy to add support.