Closed netRunner0 closed 5 years ago
Hi @netRunner0, I don't personally own such device. This plugin has been tested with the Sonoff basic relays only. If you can provide the homebridge logs with information of that device, I might be able to support it.
I click on the buttons on the device:
[1/19/2019, 11:54:52 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100046a031","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"on"},{"outlet":2,"switch":"on"},{"outlet":3,"switch":"on"}]},"from":"device"}
[1/19/2019, 11:54:53 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100046a031","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"off"},{"outlet":2,"switch":"on"},{"outlet":3,"switch":"on"}]},"from":"device"}
[1/19/2019, 11:54:55 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100046a031","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"off"},{"outlet":2,"switch":"off"},{"outlet":3,"switch":"on"}]},"from":"device"}
[1/19/2019, 11:54:55 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100050ff2d","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"power":"42"},"from":"device"}
[1/19/2019, 11:54:56 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100046a031","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"switches":[{"outlet":0,"switch":"off"},{"outlet":1,"switch":"off"},{"outlet":2,"switch":"off"},{"outlet":3,"switch":"off"}]},"from":"device"}
In the HOME application, only 3 switches are displayed. However, they do not update the status when you click on the device. Can I add a type of outlet?
Hi @netRunner0, would you please let me know what is your device model? You can find it on the device settings page in the Home App.
Hi @netRunner0, I have published a new version of the plugin (0.1.11) which should handle channel counts correctly and should update the status properly. Please let me know if this version works for you.
@howanghk Great job. Thank you very much.
Could you add a type of "socket" for the switch?
Hi @netRunner0, as far as I know the type is defined by Apple, we cannot modify the list of types from homebridge plugin.
Would you please confirm if the new version works for you? Is the number of channel correct? Does the status update as expected?
Channels are displayed correctly.
Sometimes it happens that when you turn on the button (on the device), it turns on / off / on.
I will try to shoot a video for demonstration. There is no problem in the rest.
Hi @netRunner0, I suspect the on / off / on pattern is a HomeKit problem. I have encountered similar behaviour on native HomeKit accessories too.
I am glad to hear that the plugin now display channels correctly!
https://sonoff.itead.cc/en/products/sonoff/sonoff-4ch-pro
Hey. Is this device and all its modes supported?