merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
390 stars 61 forks source link

deerma.humidifier.jsq4 mode control service #190

Closed louliangsheng closed 2 years ago

louliangsheng commented 2 years ago

Describe the bug deerma.humidifier.jsq4 mode control service:When I disable the mode control service, the mode switch still exists

Expected behavior When I disable the mode control service, the mode switch should disappear, the fan level can adjust the humidifier mode, and the mode control service of the air purifier is normal

Your config.json { "name": "纯净式加湿器", "ip": "192.168.31.254", "token": "d9dacd3f8e9c7d3a5216fb79aec2d3cf", "deviceId": "338228296", "model": "deerma.humidifier.jsq4", "pollingInterval": 10, "deepDebugLog": false, "buzzerControl": false, "ledControl": false, "childLockControl": false, "modeControl": false, "fanLevelControl": true }

Debug log no log

Screenshots image

merdok commented 2 years ago

Based on the spec, your device does not support modes, so the switch will not do anything in your case. I also do not see modes on the screenshoot. What switches do you want hide?

louliangsheng commented 2 years ago

Fan level mode.

Marcin @.***>于2022年2月2日 周三16:21写道:

Based on the spec, your device does not support modes, so the switch will not do anything in your case. I also do not see modes on the screenshoot. What switches do you want hide?

— Reply to this email directly, view it on GitHub https://github.com/merdok/homebridge-miot/issues/190#issuecomment-1027688507, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI6YKTUI444W6WTRI4I7L7DUZDSPBANCNFSM5NLFTHRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

merdok commented 2 years ago

Just set the fanLevelControl property to false and they should disappear.