HASS-sonoff-ewelink
HASS-sonoff-ewelink copied to clipboard
New feature/device Kingart-M4 - Wifi Touch Switch/Dimmer
Actually, the switch part works, I can turn the lights on or off. The only thing that is missing, is the brightness part, it would be nice to also have this implemented.
Thanks!
Device debug information:
[
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"brandName": "KingArt",
"createdAt": "xxxx-xx-xxxxx:xx:xx.xxx",
"deviceUrl": "",
"deviceid": "[hidden]",
"devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"extra": {
"_id": "[hidden]",
"extra": {
"apmac": "xx:xx:xx:xx:xx:xx",
"brandId": "59ba53ad86b3ab5e3ae68596",
"description": "20181212007",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u5e02\u5f6a\u738b\u79d1\u6280\u6709\u9650\u516c\u53f8",
"model": "PSF-BTA-GL",
"modelInfo": "5b1642ec957beabc3b65e29a",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u5355\u8def\u8c03\u5149\u5f00\u5173",
"uiid": 36
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"bright": 28,
"fwVersion": "2.7.0",
"rssi": -67,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"switch": "on"
},
"productModel": "KING-M4",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 36
}
]
```
is this device the same as the ones mentioned here https://github.com/peterbuga/HASS-sonoff-ewelink/issues/44 ? i assume they are
thank you for posting the output!!! if you follow the above thread you'll see that no one was able to provide one till now :(
out of curiosity, does this device has incremental values only or you can set anything that goes from darker to brighter as specified by this entry above "bright": 28,
(basically like a slider)?
Hello. i think it is not the same...if you tell me how can i test i will test it. should i copy the code above? is yes where to? thanks
ah ok, my bad! one is cover switch this one is dimmer 😄 this one looks easy-ish to implement. i don't have an ETA as currently i'm experiencing some personal problems, but i'll post more details here while i resume the work on the component!
no need for you to anything more, just let me know if inside the eWeLink app you a slider for the dimmer or you have incremental steps (a screenshot will do too) thanks again!
hi ! it appears like in this link http://userguide.kingartsc.com/a/gongsidongtai/73.html
I think if you could also send the debug output with 0 brightness but switched on, as well as full brightness so that we can be sure that the brightness levels are 0-100 not some absolute values.
Thanks.
On Thu, Mar 21, 2019 at 4:10 PM mclaudiopt [email protected] wrote:
hi ! it appears like in this link http://userguide.kingartsc.com/a/gongsidongtai/73.html
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/72#issuecomment-475181647, or mute the thread https://github.com/notifications/unsubscribe-auth/AqJgbBNQVsrT5wdG_SD7_eOBfFRAr--Gks5vY2GngaJpZM4cAgSm .
hi ! it appears like in this link http://userguide.kingartsc.com/a/gongsidongtai/73.html
now i'm confused, cuz the one you mentioned it's a Q4 and you have a M4, double check please.
also, if not too much trouble, do also what @2016for asked 👍
It looks the same indeed but it is not the Q4, this one is the M4 a Led Wifi Light dimmer.
The brightness is indeed a Slider, this is also in the eWeLink app. The debug logs shows (seen below) that the slider has a output from 10 to 100. But this can be 0 to 100 in my opinion cause the light is fully dimmed (no light output) when the slider is at "0".
Turned on with slider "0":
[
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"brandName": "KingArt",
"createdAt": "xxxx-xx-xxxxx:xx:xx.xxx",
"deviceUrl": "",
"deviceid": "[hidden]",
"devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"extra": {
"_id": "[hidden]",
"extra": {
"apmac": "xx:xx:xx:xx:xx:xx",
"brandId": "59ba53ad86b3ab5e3ae68596",
"description": "20181212007",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u5e02\u5f6a\u738b\u79d1\u6280\u6709\u9650\u516c\u53f8",
"model": "PSF-BTA-GL",
"modelInfo": "5b1642ec957beabc3b65e29a",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u5355\u8def\u8c03\u5149\u5f00\u5173",
"uiid": 36
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"bright": 10,
"fwVersion": "2.7.0",
"rssi": -67,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"switch": "on"
},
"productModel": "KING-M4",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 36
}
]
Turned on with slider "100":
[
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"brandName": "KingArt",
"createdAt": "xxxx-xx-xxxxx:xx:xx.xxx",
"deviceUrl": "",
"deviceid": "[hidden]",
"devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"extra": {
"_id": "[hidden]",
"extra": {
"apmac": "xx:xx:xx:xx:xx:xx",
"brandId": "59ba53ad86b3ab5e3ae68596",
"description": "20181212007",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u5e02\u5f6a\u738b\u79d1\u6280\u6709\u9650\u516c\u53f8",
"model": "PSF-BTA-GL",
"modelInfo": "5b1642ec957beabc3b65e29a",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u5355\u8def\u8c03\u5149\u5f00\u5173",
"uiid": 36
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"bright": 100,
"fwVersion": "2.7.0",
"rssi": -71,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"switch": "on"
},
"productModel": "KING-M4",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 36
}
]
I HAVE the Q4 FOR courtain control... but i cannot even put you code working on configuration.yaml :-( can you please help?
good news. my Q4 is now working...but only on-off...on the app i can pause any time so eventually a slider can work...the question is how?
@mclaudiopt there's the other thread with the details https://github.com/peterbuga/HASS-sonoff-ewelink/issues/44 please don't mix the issues