Closed RomchikL closed 1 year ago
if you override the target humidity, you need to provide its full configuration if you want to act on changes, see https://github.com/artem-sedykh/mini-humidifier#target-humidity The original preset configuration is
@regevbr , Yep, I tried to write the "change_action" block, but had no success. Now, it seems, it works with the following config:
- type: custom:mini-humidifier
entity: fan.lr_humidifier
name: Hum
model: 'xiaomi_miio_airpurifier:deerma.humidifier.mjjsq'
target_humidity:
state:
entity: input_number.lr_humidifier_target_humidity
change_action: |
(selected, state, entity) => {
const options = { entity_id: entity.entity_id, value: selected };
return this.call_service('input_number', 'set_value', options);
}
deerma.humidifier.mjjsq has an issue: In "Humidity=Auto" mode the target_humidity attribute works fine, but in all other modes (Low, Medium, High) the target_humidity attribute equals 0 (automatically). So, I changed it with input_number and some automations (see for details)
But now I cannot change the value of the input_number via the mini-humidifier card. I try to change (e.g. from 50 to 40), but it becomes back 50 and nothing changes.