alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
301 stars 45 forks source link

[New device] Shelly Duo - WiFi Cool White / Warm White Bulb E26 #363

Open slambert opened 2 years ago

slambert commented 2 years ago

This is probably similar to #245 (and maybe #233), but adding just in case.

I'm seeing the same issue where turning this light on with homekit uses the RGB light instead of the White channel. In fact, I'm only able to change to the white channel by logging into the bulb via http.

Bulb came from here: https://ameridroid.com/products/shelly-duo-wifi-rgbw-bulb-e26

Type: SHCB-1
CoAP description: {"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":5105,"T":"S","D":"red","R":"0/255","L":1},{"I":5106,"T":"S","D":"green","R":"0/255","L":1},{"I":5107,"T":"S","D":"blue","R":"0/255","L":1},{"I":5108,"T":"S","D":"white","R":"0/255","L":1},{"I":5102,"T":"S","D":"gain","R":"0/100","L":1},{"I":5101,"T":"S","D":"brightness","R":"0/100","L":1},{"I":5103,"T":"S","D":"colorTemp","U":"K","R":"3000/6500","L":1},{"I":9101,"T":"S","D":"mode","R":"color/white","L":1},{"I":5109,"T":"S","D":"effect","R":"0/3","L":1},{"I":4101,"T":"P","D":"power","U":"W","R":["0/9","-1"],"L":1},{"I":4103,"T":"E","D":"energy","U":"Wmin","R":["U32","-1"],"L":1}]}
CoAP status: {"G":[[0,9103,3],[0,1101,1],[0,5105,1],[0,5106,255],[0,5107,237],[0,5108,0],[0,5102,100],[0,5101,45],[0,5103,4750],[0,9101,"color"],[0,5109,0],[0,4101,4.09],[0,4103,28]]}
HTTP Settings:: {"device":{"type":"SHCB-1","mac":"E8DB84D30E65","hostname":"shellycolorbulb-E8DB84D30E65","submodel":1,"num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shellycolorbulb-E8DB84D30E65","key":""},"wifi_sta":{"enabled":true,"ssid":"THEINTERNET","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":false,"threshold":-70},"mqtt":{"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellycolorbulb-E8DB84D30E65","reconnect_timeout_max":60,"reconnect_timeout_min":2,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot":{"enabled":true,"update_period":15,"peer":"","execute_enable":false},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"@Bl6<+","name":"Bed Lamp","fw":"20211109-124527/v1.11.7-g682a0db","discoverable":true,"build_info":{"build_id":"20211109-124527/v1.11.7-g682a0db","build_timestamp":"2021-11-09T12:45:27Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"America/New_York","lat":40.754181,"lng":-73.503548,"tzautodetect":true,"tz_utc_offset":-18000,"tz_dst":false,"tz_dst_auto":true,"time":"16:51","unixtime":1642197060,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["out_on_url","out_off_url"]},"hwinfo":{"hw_revision":"prod-102020","batch_id":0},"mode":"color","lights":[{"ison":true,"red":1,"green":255,"blue":237,"white":0,"gain":100,"temp":4750,"brightness":45,"transition":2000,"effect":0,"default_state":"on","auto_on":0,"auto_off":0,"schedule":true,"schedule_rules":["0820-0123456-100%","0810-0123456-10%","0815-0123456-40%","0045-0123456-off"]}],"night_mode":{"enabled":false,"start_time":"00:00","end_time":"00:00","brightness":0}}
HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"THEINTERNET","ip":"192.168.1.51","rssi":-52},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"16:51","unixtime":1642197060,"serial":11,"has_update":false,"mac":"E8DB84D30E65","cfg_changed_cnt":3,"actions_stats":{"skipped":0},"lights":[{"ison":true,"source":"http","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"color","red":1,"green":255,"blue":237,"white":0,"gain":100,"temp":4750,"brightness":45,"effect":0,"transition":0}],"meters":[{"power":4.09,"is_valid":true,"timestamp":1642179060,"counters":[4.09,4.09,4.09],"total":28}],"update":{"status":"idle","has_update":false,"new_version":"20211109-124527/v1.11.7-g682a0db","old_version":"20211109-124527/v1.11.7-g682a0db"},"ram_total":50824,"ram_free":38508,"fs_size":233681,"fs_free":158883,"uptime":429}

Or:

Type: SHCB-1 CoAP description: {"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":5105,"T":"S","D":"red","R":"0/255","L":1},{"I":5106,"T":"S","D":"green","R":"0/255","L":1},{"I":5107,"T":"S","D":"blue","R":"0/255","L":1},{"I":5108,"T":"S","D":"white","R":"0/255","L":1},{"I":5102,"T":"S","D":"gain","R":"0/100","L":1},{"I":5101,"T":"S","D":"brightness","R":"0/100","L":1},{"I":5103,"T":"S","D":"colorTemp","U":"K","R":"3000/6500","L":1},{"I":9101,"T":"S","D":"mode","R":"color/white","L":1},{"I":5109,"T":"S","D":"effect","R":"0/3","L":1},{"I":4101,"T":"P","D":"power","U":"W","R":["0/9","-1"],"L":1},{"I":4103,"T":"E","D":"energy","U":"Wmin","R":["U32","-1"],"L":1}]} CoAP status: {"G":[[0,9103,3],[0,1101,1],[0,5105,1],[0,5106,255],[0,5107,237],[0,5108,0],[0,5102,100],[0,5101,45],[0,5103,4750],[0,9101,"color"],[0,5109,0],[0,4101,4.09],[0,4103,28]]} HTTP Settings:: {"device":{"type":"SHCB-1","mac":"E8DB84D30E65","hostname":"shellycolorbulb-E8DB84D30E65","submodel":1,"num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shellycolorbulb-E8DB84D30E65","key":""},"wifi_sta":{"enabled":true,"ssid":"THEINTERNET","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":false,"threshold":-70},"mqtt":{"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellycolorbulb-E8DB84D30E65","reconnect_timeout_max":60,"reconnect_timeout_min":2,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot":{"enabled":true,"update_period":15,"peer":"","execute_enable":false},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"@Bl6<+","name":"Bed Lamp","fw":"20211109-124527/v1.11.7-g682a0db","discoverable":true,"build_info":{"build_id":"20211109-124527/v1.11.7-g682a0db","build_timestamp":"2021-11-09T12:45:27Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"America/New_York","lat":40.754181,"lng":-73.503548,"tzautodetect":true,"tz_utc_offset":-18000,"tz_dst":false,"tz_dst_auto":true,"time":"16:51","unixtime":1642197060,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["out_on_url","out_off_url"]},"hwinfo":{"hw_revision":"prod-102020","batch_id":0},"mode":"color","lights":[{"ison":true,"red":1,"green":255,"blue":237,"white":0,"gain":100,"temp":4750,"brightness":45,"transition":2000,"effect":0,"default_state":"on","auto_on":0,"auto_off":0,"schedule":true,"schedule_rules":["0820-0123456-100%","0810-0123456-10%","0815-0123456-40%","0045-0123456-off"]}],"night_mode":{"enabled":false,"start_time":"00:00","end_time":"00:00","brightness":0}} HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"THEINTERNET","ip":"192.168.1.51","rssi":-52},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"16:51","unixtime":1642197060,"serial":11,"has_update":false,"mac":"E8DB84D30E65","cfg_changed_cnt":3,"actions_stats":{"skipped":0},"lights":[{"ison":true,"source":"http","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"color","red":1,"green":255,"blue":237,"white":0,"gain":100,"temp":4750,"brightness":45,"effect":0,"transition":0}],"meters":[{"power":4.09,"is_valid":true,"timestamp":1642179060,"counters":[4.09,4.09,4.09],"total":28}],"update":{"status":"idle","has_update":false,"new_version":"20211109-124527/v1.11.7-g682a0db","old_version":"20211109-124527/v1.11.7-g682a0db"},"ram_total":50824,"ram_free":38508,"fs_size":233681,"fs_free":158883,"uptime":429}

tkaudioservices commented 2 years ago

Did you get anywhere with this issue?

flobxy commented 2 years ago

Having the same issue.