adrianByv / home-assistant-custom-components-switch-humidifier

Home Assistant custom component Switch Humidifier Platform
MIT License
18 stars 7 forks source link

Switch Humidifier

Switch Humidifier Platform for Home-Assistant (http://www.home-assistant.io)

A platform for humidity entity based on a switch and a humidity sensor.

Only support Humidifier or Dehumidifier. Humidifier-dehumidifier is not supported.

I develop it to use with a humidity device that I manage with a sonoff th 16 (with temperature and humidity sensors). With this platform you can set the humidity target and it will turn on or off the switch based on the sensor humidity value, the target humidity and the entity state. As a thermostat that can be turned on, but not hotting or cooling based on the temperature.

If the switch is manually changed:

Installation

Usage

To use this component in your installation, add the following to your configuration.yaml file:

Example configuration.yaml entry

humidifier: 
  - platform: switch_humidifier
    name: Switch Deshumidifier
    switch_id: switch.deshumidifier
    sensor_id: sensor.humidity
    type: dehumidifier
    start_delta: 0.2
    stop_delta: 0.2

Parameters

It should also support homekit.

Homekit

To use with homekit you need to especify the humidity sensor as linked_humidity_sensor in the entity_config

homekit:
- filter:
    include_entities:
      - humidifier.switch_humidifier
      - sensor.humidity
  entity_config:
    humidifier.switch_humidifier:
      linked_humidity_sensor: sensor.humidity