merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
397 stars 64 forks source link

Fan control not appear for Smart Air Purifier 4 Compact #615

Closed lirik44 closed 4 months ago

lirik44 commented 4 months ago

Tile work's only like a switch for Smart Air Purifier 4 Compact (xiaomi.airp.cpa4) IMG_7022

All settings correct, my config for this device:

{
            "name": "Air Purifier Mini",
            "ip": "192.168.1.132",
            "token": "XXXXXXXXXXXXXX", 
            "deviceId": "xiaomi.airp.cpa4",
            "pollingInterval": 10,
            "deepDebugLog": false,
            "silentLog": false,
            "deviceEnabled": true,
            "buzzerControl": false,
            "childLockControl": false,
            "modeControl": true,
            "fanLevelControl": true,
            "screenControl": false
        }

Trying to force micloud connection, and there is no result.

Want this look like my another Smart Air Purifier 4 Pro (zhimi.airp.vb4) IMG_7024

merdok commented 4 months ago

The provided device model is incorrect. The correct one is zhimi.airp.cpa4

lirik44 commented 4 months ago

The provided device model is incorrect. The correct one is zhimi.airp.cpa4

Already try this, same result, only switcher, no fan control

merdok commented 4 months ago

You put the model info in the deviceid field! This is also wrong! If you are unsure where to put the values then just leave them away and plugin will retrieve those automatically!