Closed ahmadnazirafiq closed 7 months ago
The device type is not supported so the plugin does not know how to map the properties and actions. You can set your device as customAccessory and then use propertyControl to manually map which properties you want to have control off.
I did tried adding some on propertyControl but the device is not responding to my commands at all. Not sure what else is needed to make this work. Being able to control just as on/off switch is more than enough for me.
You would need to enable deepDebugLog and try to use the switch and then post the log here so we can see why it fails.
Enabled deepDebugLog and here's what I've got. Not sure if this is helpful:
[28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Initializing device services [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Device services: [ "mosquito-dispeller", "repellent-liquid", "dakuo-mosq-dispeller" ] [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Initializing device properties [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Device properties: [ "mosquito-dispeller:on", "repellent-liquid:liquid-left", "dakuo-mosq-dispeller:status", "dakuo-mosq-dispeller:workmode", "dakuo-mosq-dispeller:schedules" ] [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Initializing device actions [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Device actions: [ "repellent-liquid:reset-liquid" ] [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Successfully created a Generic device! It is a Mosquito Dispeller. [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Initializing accessory! [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Accessory successfully initialized! [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Registering 1 accessories! [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Everything looks good! Initiating property polling! [28/07/2023, 15:07:31] [homebridge-miot] [Liquid Repeller] Log in to MiCloud! [28/07/2023, 15:07:34] [homebridge-miot] [Liquid Repeller] Connected to device: ateai.mosq.dakuo [28/07/2023, 15:07:34] [homebridge-miot] [Liquid Repeller] Doing initial property fetch.
You need to use the created property switch afterwards extra log will appear when deepDebugLog is enabled. You need to post that. The one you posted is the startup log.
I did, but nothing came up on the logs when those custom switches were triggered. Here's my config:
{ "name": "Liquid Repeller", "ip": "192.168.X.XXX", "token": "XXXXXXXXXXXX, "deviceId": "XXXXXXXXX", "model": "ateai.mosq.dakuo", "pollingInterval": 10, "deepDebugLog": true, "micloud": { "username": "XXXXXXX@XXXXX", "password": "XXXXXXX", "country": "cn", "forceMiCloud": true }, "customAccessory": false, "buzzerControl": false, "ledControl": false, "childLockControl": false, "modeControl": true, "actionButtons": [ { "action": "repellent-liquid:reset-liquid", "name": "reset-liquid" } ], "propertyControl": [ { "property": "mosquito-dispeller:on", "name": "Switch", "value": "1" } ] }
Then you are doing something wrong. You would need to double check that everything is set correctly.
Device model ateai.mosq.dakuo
Device name Dakuo Mosquito Repellent
Does the device require a MiCloud connection? Do not know, tried either but its not responding to my commands
Anything special about the device?
Logs [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Initializing device services [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Device services: [ "mosquito-dispeller", "repellent-liquid", "dakuo-mosq-dispeller" ] [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Initializing device properties [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Device properties: [ "mosquito-dispeller:on", "repellent-liquid:liquid-left", "dakuo-mosq-dispeller:status", "dakuo-mosq-dispeller:workmode", "dakuo-mosq-dispeller:schedules" ] [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Initializing device actions [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Device actions: [ "repellent-liquid:reset-liquid" ] [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Successfully created a Generic device! It is a Mosquito Dispeller. [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Initializing accessory! [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Accessory successfully initialized! [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Registering 1 accessories! [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Everything looks good! Initiating property polling! [7/27/2023, 4:56:24 AM] [homebridge-miot] [Liquid Repeller] Log in to MiCloud!