v2.1.1
ADDED
- Added configuration for secondary_info, supported types
[last-changed, mode]
, default type mode
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
secondary_info: last-changed
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
secondary_info: #default type mode, changing icon
icon: 'mdi:fan'
- Added indicator
tap_action
configuration, #21
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
indicators:
temperature:
source:
entity: sensor.temperature
tap_action: more-info
humidity:
source:
entity: sensor.humidity
tap_action: more-info
- When you click on the button, it instantly changes its state, but if the actual state has not changed after
action_timeout
it returns to the previous state, default value 3500 milliseconds
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
buttons:
dry:
action_timeout: 2000
led:
action_timeout: 2000
- The default configuration settings for buttons and indicators are placed in a separate file,
now you can send a pull request or throw issue so that I would add your humidifier model an example for zhimi.humidifier.cb1
default model zhimi.humidifier.cb1
with this approach, the configuration in the yml file will be cleaner, and individual parameters can be redefined
- type: custom:mini-humidifier
entity: fan.xiaomi_miio_device
model: 'zhimi.humidifier.cb1'
indicators:
depth:
type: liters