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)
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
- Go to the section frontend.
- Click on the 3 dots in the top right corner.
- Select "Custom repositories"
- Add the URL to the repository.
- Select the correct category (lovelace)
- Click the "ADD" button.
- Install
-
Download and copy
midea-humidifier-card.js
from the my repo into yourconfig/www
directory. -
Add the resource reference as decribed below.
-
Move into your
config/www
directory. -
Grab
midea-humidifier-card.js
:
wget https://raw.githubusercontent.com/sicknesz/midea-inventor-card/master/dist/midea-humidifier-card.js
- Add the resource reference as decribed below.
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:
- Make sure, advanced mode is enabled in your user profile (click on your user name to get there)
- Navigate to Configuration -> Lovelace Dashboards -> Resources Tab. Hit orange (+) icon
- Enter URL
/hacsfiles/midea-humidifier-card.js
and select type "JavaScript Module". - Restart Home Assistant.
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.
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
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 |
Hey dude! Help me out for a couple of 🍻 or a ☕ !
Salut Mec! Tu peu me soutenir en m'offrant quelques 🍻 ou un ☕ !