al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.5k stars 636 forks source link

please add support for leshow.humidifier.jsq3 #1479

Open jangshik opened 9 months ago

jangshik commented 9 months ago

Device model / 设备型号

leshow.humidifier.jsq3

Component version / 插件版本

0.7.15

HA core version / HA版本

2023.12.3

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

it only exposes the humidifier switch and filter life

can it expose more entities? thanks in advance.

https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:humidifier:0000A00E:leshow-jsq3:2

#configuration.yaml
xiaomi_miot:
  device_customizes:
    leshow.humidifier.jsq3:
      exclude_miot_services: null
      binary_sensor_properties: water_lack,water-over,wash-need
      switch_properties: alarm,heater-turn,screen,device,brightness
#      number_properties:

Entity attributes / 实体属性

min_humidity: 40
max_humidity: 70
available_modes:
  - "Off"
  - Const Humidity
  - Strong
  - Sleep
  - Dry
  - Wash
current_humidity: 59
humidity: 57
mode: Const Humidity
model: leshow.humidifier.jsq3
lan_ip: 192.168.29.187
mac_address: DC:ED:83:3B:EB:6C
entity_class: MiotHumidifierEntity
home_room: 1576400520's home Living room
miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:leshow-jsq3:2
humidifier.on: 1
humidifier.fault: 0
humidifier.mode: 0
humidifier.target_humidity: 57
humidifier.water_level: 60
push.humidify_fault: 0
push.pb_com_fault: 0
push.pump_fault: 0
push.dump: 0
push.water_over: 0
push.water_lack: 0
push.ptc_fault: 0
push.wash_need: 0
push.filter_life: 0
device.heater_turn: 0
device.auto_turn: 1
device.ovp_turn: 2
device.ovp_state: 0
device.cd_turn_off: 0
device.cd_dry: 0
device.cd_wash: 0
device.water_flowmeter: 85
device.water_level_sensor: 12
filter.filter_left_time: 1155
filter.filter_life_level: 96
screen.on: 1
screen.brightness: 0
alarm: 0
environment.relative_humidity: 59
state_updater: lan
sub_entities:
  - push-12.water_lack-6
  - alarm-5.alarm-1
  - environment-3.relative_humidity-1
  - filter-11.filter_left_time-2
  - filter-11.filter_life_level-3
device_class: humidifier
friendly_name: Mijia Smart Evaporative Humidifier Pro+ Humidifier
supported_features: 1

Home Assistant Logs / 系统日志

No response

zhaoyibo commented 8 months ago

need water_level