howanghk / homebridge-ewelink

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

Dimmer dosen't work #28

Open stevanrosic opened 5 years ago

stevanrosic commented 5 years ago

KING-M4 dimmer (PSF-BTA-GL) does not work as dimmer (I can only turn on/off). In Ewelink application everything is ok.

Console error:

[5/29/2019, 9:16:56 PM] [eWeLink] Updating recorded Characteristic.On for [Kvadrat dnevna soba] to [true]. No request will be sent to the device.
[5/29/2019, 9:16:56 PM] [eWeLink] Setting power state to [on] for device [Kvadrat dnevna soba]
[5/29/2019, 9:16:57 PM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"xxx","apikey":"xxx","sequence":"xxx"}
[5/29/2019, 9:16:57 PM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"xxx","apikey":"xxx","userAgent":"device","ts":0,"params":{" switch":"on","bright":75},"from":"device"}

howanghk commented 5 years ago

Hi @stevanrosic, as written in the README, this plugin only works for Sonoff basic relay (only 1 on/off switch). As I do not have other ewelink device except the basic switch one, it is very hard (if not impossible) for me to implement support for those devices. It seems ByronTudhope is working on adding dimmer support to the ewelink plugin, you can find his fork here: https://github.com/ByronTudhope/homebridge-ewelink-max

psysfaction commented 4 years ago

Happy to donate money for a dimmer because I would love to have that added functionality. I'm using two dimmers at my place as well as the LED light strip