Skip to content

sicknesz/midea-humidifier-card

Repository files navigation

Midea Humidifier Card

hacs_badge maintenance-shield

A companion card to the Midea Humidifier Lan integration that added tons of options comparing to previous integrations, so much that the classic humidifier card was kinda lacking alot, so i made this card specifically for that (Midea/Inventor EVA Pro (De)Humifidier Appliances)

Changelogs

v1.0.7 - Latest current version - Fixed fan mode name change in homeassistant-midea-air-appliances-lan v0.6.0

v1.0.6 - Updated readme.md

v1.0.5 - Changed the ion icon color to match all others (current mode color)

v1.0.3 - Added missing ion_entity from card editor and autoconfig

v1.0.2 - Added card editor, single file output and handling of all warning (defrost, tank_full, filter)

v1.0.1 - Added power buttons, all fan preset modes and ion toggle

Installation

Install

HACS Install

  1. Go to the section frontend.
  2. Click on the 3 dots in the top right corner.
  3. Select "Custom repositories"
  4. Add the URL to the repository.
  5. Select the correct category (lovelace)
  6. Click the "ADD" button.
  7. Install

Manual install

  1. Download and copy midea-humidifier-card.js from the my repo into your config/www directory.

  2. Add the resource reference as decribed below.

CLI install

  1. Move into your config/www directory.

  2. Grab midea-humidifier-card.js:

wget https://raw.githubusercontent.com/sicknesz/midea-inventor-card/master/dist/midea-humidifier-card.js
  1. Add the resource reference as decribed below.

Add resource reference

If you configure Lovelace via YAML, add a reference to midea-humidifier-card.js inside your configuration.yaml:

resources:
  - url: /hacsfiles/midea-humidifier-card.js?v=1.0.7
    type: module

Else, if you prefer the graphical editor, use the menu to add the resource:

  1. Make sure, advanced mode is enabled in your user profile (click on your user name to get there)
  2. Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon
  3. Enter URL /hacsfiles/midea-humidifier-card.js and select type "JavaScript Module".
  4. Restart Home Assistant.

Usage

Click to add an element to your lovelace view, select the midea-humidifier-card, it will open the visual card editor but everything should be autoconfigured properly unless you have more than one humidifier, in that case just manually click and set all fields in the editor.

Troubleshooting

PS : If you do not see the filter and defrost entities, it's because they're disabled by default on the integration, to enable them navigate to /config/integrations choose the midea humidifier lan integration, click on "11 entities", search for defrost and enable the defrost and filter entities (if they're not visible look at the entity filter and disable it) then you'll be able to add them to the card.

type: 'custom:midea-humidifier-card'
entity: humidifier.dehumidifier_<deviceID>
humidity_entity: sensor.dehumidifier_<deviceID>_humidity
temperature_entity: sensor.dehumidifier_<deviceID>_temperature
fan_entity: fan.dehumidifier_<deviceID>_fan
filter_entity: binary_sensor.dehumidifier_<deviceID>_replace_filter
defrost_entity: binary_sensor.dehumidifier_<deviceID>_defrosting
tank_entity: binary_sensor.dehumidifier_<deviceID>_tank_full
ion_entity: switch.dehumidifier_<deviceID>_ion_mode
show_ion_toggle: true
swap_target_and_current_humidity: true

Options

Name Type Requirement Description Default
type string Required custom:midea-humidifier-card
name string Optional Card name Midea Humidifier
entity string Required Humidifier entity ID. humidifier.<id>
fan_entity string Required Humidifiers fan entity ID. fan.<id>
humidity_entity string Required Humidifiers humidity sensor entity ID. sensor.<id>
temperature_entity string Required Humidifiers temperature sensor entity ID. sensor.<id>
tank_entity string Optional Humidifiers tank binary sensor entity binary_sensor.<id>
filter_entity string Optional Humidifiers filter binary sensor entity binary_sensor.<id>
defrost_entity string Optional Humidifiers defrost binary sensor entity binary_sensor.<id>
ion_entity string Optional Humidifiers ion switch entity switch.<id>
show_ion_toggle boolean Optional Display the ion switch toggle icon. true
swap_target_and_current_humidity boolean Optional Swap current and target humidity display true

Screenshots

Screenshot #1 Screenshot #2 Screenshot #3 Screenshot #4 Screenshot #5 Screenshot #6 Screenshot #7 Screenshot #8 Screenshot #9 Screenshot #10 Screenshot #11 Screenshot #12

Support

Hey dude! Help me out for a couple of 🍻 or a ☕ !

Salut Mec! Tu peu me soutenir en m'offrant quelques 🍻 ou un ☕ !

coffee