howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

Add support eve #4

Open netRunner0 opened 5 years ago

netRunner0 commented 5 years ago

Hello! Can you make support for voltage mapping and other options available for the EVE program? I see in the console that the plugin gets these parameters ...

howanghk commented 5 years ago

Hi netRunner0, I personally don't have a ewelink device with voltage and other options. If you can provide the logging for them I might be able to implement it.

However, I believe those information are not part of the HomeKit standard and not guarantee to work.

netRunner0 commented 5 years ago

Yes, maybe someday this will become the standard)

https://i106.fastpic.ru/big/2019/0106/a1/_13cc3ac96985f732b0695500725232a1.png

https://i108.fastpic.ru/big/2019/0106/1c/_f57962bf6954d247562194c5c2c5d31c.png

Params - Voltage and Power

howanghk commented 5 years ago

Hi netRunner0, would you mind please copy the logs as text here instead of screenshots? Thanks!

netRunner0 commented 5 years ago

[1/6/2019, 3:17:10 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100050ff0a","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"power":"2440"},"from":"device"} [1/6/2019, 3:17:16 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100050ff0a","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"power":"2441"},"from":"device"} [1/6/2019, 3:17:18 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10004c7420","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"voltage":"230.26","switch":"off"},"from":"device"}

howanghk commented 5 years ago

Hi netRunner0, do you know what does {"power":"2440"} means? Is your device consuming 2440W power? That's quite a lot.

netRunner0 commented 5 years ago

howanghk, yes)

howanghk commented 5 years ago

OK, thanks for the info, I can try to implement that when I have free time.

netRunner0 commented 5 years ago

Thanks!

netRunner0 commented 5 years ago

Does the plugin get the humidity and temperature parameters from TH16? Today I added a sensor to this sonoff, but the temperature and humidity is only displayed in the Ewelink app.

[1/6/2019, 10:59:04 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"10004b1cbe","apikey":"26951b0e-a2ac-4a20-b230-e42c1b14f7a7","userAgent":"device","ts":0,"params":{"currentHumidity":"69"},"from":"device"}