jghaanstra/com.xiaomi-miio

Please add support for Smartmi Smart Fan

krl691 opened this issue · 10 comments

krl691 commented

I would be very grateful if you could add support for Smartmi Smart Fan Heater model: zhimi.heater.nb1.

https://eu.smartmiglobal.com/pages/fan-heater

https://www.openhab.org/addons/bindings/miio/

krl691 commented

I installed the latest version but get "unknown model", see screendump below. The fan responds when you access it in Homey and press the slider, but only a beep from the fan and nothing else. The on/off switch does not work. This model does not have stepless speed/heat, only warm or hot and off or on.
Skjermbilde 2023-06-30 115917

Send a diagnostic report from the app settings. But if you device is identified as unknown model it might not be of the model you requested support for.

krl691 commented

As the device does not identify itself through Homey I'm not sure the Homey app will work for this device. I'll fix some issues in the log where the device seems to behave differently than the documentation I found on this device but if it will ever work properly I cant tell.

For reference

[Driver:heater_zhimi_heater_miot] [Device:7a3db1fd-23f0-4237-8454-2dc73c516762] Error: onoff InvalidTypeError: 0 is of type number but expected boolean (invalid_type)
    at Remote Process
    at HomeyClient.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/HomeyClient.js:1:312)
    at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/manager/drivers.js:78:54)
    at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Driver.js:1:1668)
    at /opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:6481
    at ZhimiHeaterMiotDevice.setCapabilityValue (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:6267)
    at ZhimiHeaterMiotDevice.updateCapabilityValue (/drivers/wifi_device.js:190:22)
    at ZhimiHeaterMiotDevice.retrieveDeviceData (/drivers/heater_zhimi_heater_miot/device.js:183:18)
2023-06-30T09:34:43.598Z [err] [ManagerDrivers] [Driver:heater_zhimi_heater_miot] [Device:7a3db1fd-23f0-4237-8454-2dc73c516762] Trying to update or add capability heater_zhimi_heater_target_temperature with value 30 for device Unknown model (undefined) with device id 3a60b96e25ce3f393c9ca35040d67b5b
2023-06-30T09:34:43.599Z [err] [ManagerDrivers] [Driver:heater_zhimi_heater_miot] [Device:7a3db1fd-23f0-4237-8454-2dc73c516762] Error: heater_zhimi_heater_target_temperature OutOfRangeError: 30 is greater than 28 (out_of_range)
    at Remote Process
    at HomeyClient.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/HomeyClient.js:1:312)
    at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/manager/drivers.js:78:54)
    at Object.emit (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Driver.js:1:1668)
    at /opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:6481
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at ZhimiHeaterMiotDevice.setCapabilityValue (/opt/homey-client/system/manager/ManagerApps/AppProcess/node_modules/@athombv/homey-apps-sdk-v3/lib/Device.js:1:6267)
    at ZhimiHeaterMiotDevice.updateCapabilityValue (/drivers/wifi_device.js:190:22)
    at ZhimiHeaterMiotDevice.retrieveDeviceData (/drivers/heater_zhimi_heater_miot/device.js:184:18)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-06-30T09:35:43.403Z [err] [ManagerDrivers] 
krl691 commented

You cant send attachments to Github over email. Add it on Github itself.

krl691 commented

Attached is what Xiaomi's app shows in terms of functionality on the fan itself.
Skjermbilde 2023-06-30 130414
Skjermbilde 2023-06-30 130456

Could you re-test this with release 3.2.12 which is currently pending approval in the test channel.

https://homey.app/a/com.xiaomi-miio/test/

krl691 commented

Please submit a new feature request if you want that added. It's functionality which isnt available for other heaters and requires extra work. Such features have less priority over bugs.