Open ojohnny opened 3 years ago
I have exactly the same issue. The pyShelly debug logs suggest the correct information is exchanged, but I don't see any proper device added. For an SHCB-1 with updated firmware I see nothing. For a different bulb with outdated firmware I see the same firmware update switch, but no means to control the bulb or any other debug entities.
Here a long reply with more details.
When a Shelly Bulb RGBW (SHBC-1) with up-to-date firmware (Shelly 20201124-090732/v1.9.0@57ac4ad8) is added, nothing is seen. When a bulb with outdated firmware (Shelly 20201008-085327/master@a3d98bb0) is added, only a firmware update switch is added.
SHBC-1 inside the network, enable ShellyForHass, see either nothing (up-to-date firmware) or only a firmware update switch (outdated firmware) popping up.
ShellyForHass to detect the light capabilities of the device, i.e. RGB control / W.
Setup: Two Shelly RGBW Bulbs in the network, CoAP enabled via Shelly App.
Homeassistant running at 192.168.64.11
ShellyForHass already installed, then add the integration "Shelly smart home". Debug log for pyShelly enabled.
Results:
After pyShelly inits, it quickly detects two Shelly devices at the correct IPs via mDns. Then it sends out CoAP messages. First 192.168.64.51 responds with relevant information (lamp status basically) a few times. Then http://192.168.64.51/settings
is queried, this works (tested both on a computer on the network and on homeassistant itself using wget). Then the same dance happens but now for the other Shelly Bulb 192.168.64.125. And then the same sequence happens many more times, for both devices. After this, the device with the new firmware is not added at all, the device with old firmware is added with only a single entity.
Log:
2020-12-19 10:25:04 INFO (MainThread) [pyShelly] Init 0.2.12
2020-12-19 10:25:04 DEBUG (Update loop) [pyShelly] Start update loop, 0:01:00 sec
2020-12-19 10:25:04 DEBUG (Update loop) [pyShelly] Sending CoAP discover UDP
2020-12-19 10:25:04 DEBUG (zeroconf-ServiceBrowser__http._tcp.local._271) [pyShelly] Add device by host 192.168.64.51 mDns
2020-12-19 10:25:04 DEBUG (zeroconf-ServiceBrowser__http._tcp.local._271) [pyShelly] Add device by host 192.168.64.125 mDns
2020-12-19 10:25:04 DEBUG (MainThread) [pyShelly] Sending CoAP discover UDP
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.11 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 1 192.168.64.11 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.11 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 1 192.168.64.11 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.51 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928851, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] http://192.168.64.51/settings
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] http://192.168.64.51/settings - Ok
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.125 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928991, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] http://192.168.64.125/settings
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] http://192.168.64.125/settings - Ok
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.125 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928991, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.51 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928851, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x88\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x88\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:25:14 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:25:15 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xf7\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}'
2020-12-19 10:25:15 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xf7\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}')
2020-12-19 10:25:15 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}*
2020-12-19 10:25:19 DEBUG (Update loop) [pyShelly] Polling block, 483FDA928851 SHCB-1
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] Get status from 483FDA928851 SHCB-1 - 483FDA928851
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] http://192.168.64.51/status
2020-12-19 10:25:19 DEBUG (Update loop) [pyShelly] Polling block, 483FDA928991 SHCB-1
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] Get status from 483FDA928991 SHCB-1 - 483FDA928991
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] http://192.168.64.125/status
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] http://192.168.64.125/status - Ok
2020-12-19 10:25:19 DEBUG (Poll status) [pyShelly] http://192.168.64.51/status - Ok
2020-12-19 10:25:23 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x89\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:25:23 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x89\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:25:23 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:25:30 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xf8\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}'
2020-12-19 10:25:30 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xf8\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}')
2020-12-19 10:25:30 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}*
2020-12-19 10:25:38 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x8a\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:25:38 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x8a\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:25:38 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:25:45 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xf9\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}'
2020-12-19 10:25:45 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xf9\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}')
2020-12-19 10:25:45 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,49]]}*
2020-12-19 10:25:53 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x8b\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:25:53 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x8b\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:25:53 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:26:00 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xfa\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}'
2020-12-19 10:26:00 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xfa\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}')
2020-12-19 10:26:00 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}*
2020-12-19 10:26:04 DEBUG (Update loop) [pyShelly] Sending CoAP discover UDP
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.11 b'P\x01\x00\n\xb3cit\x01d\xff'
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 1 192.168.64.11 bytearray(b'P\x01\x00\n\xb3cit\x01d\xff')
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.51 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928851#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928851, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}'
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP msg: 69 192.168.64.125 bytearray(b'PE\x00\n\xed\x0b\xf7\x08SHCB-1#483FDA928991#2\xff{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}')
2020-12-19 10:26:04 DEBUG (CoAP) [pyShelly] CoAP Code: 69, Type SHCB-1, Id 483FDA928991, Payload *{"blk":[{"I":1,"D":"light_0"},{"I":2,"D":"device"}],"sen":[{"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}]}*
2020-12-19 10:26:08 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x8c\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:26:08 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x8c\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:26:08 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:26:15 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xfb\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}'
2020-12-19 10:26:15 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xfb\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}')
2020-12-19 10:26:15 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}*
2020-12-19 10:26:19 DEBUG (Update loop) [pyShelly] Polling block, 483FDA928851 SHCB-1
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] Get status from 483FDA928851 SHCB-1 - 483FDA928851
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] http://192.168.64.51/status
2020-12-19 10:26:19 DEBUG (Update loop) [pyShelly] Polling block, 483FDA928991 SHCB-1
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] Get status from 483FDA928991 SHCB-1 - 483FDA928991
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] http://192.168.64.125/status
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] http://192.168.64.51/status - Ok
2020-12-19 10:26:19 DEBUG (Poll status) [pyShelly] http://192.168.64.125/status - Ok
2020-12-19 10:26:23 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.51 b'P\x1e\xdd\x8d\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}'
2020-12-19 10:26:23 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.51 bytearray(b'P\x1e\xdd\x8d\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928851#2\xd2C\x96\x00\x82\x06\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}')
2020-12-19 10:26:23 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928851, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,255],[0,5107,0],[0,5108,0],[0,5102,36],[0,5101,8],[0,5103,3000],[0,9101,"color"],[0,4101,0.45],[0,4103,0]]}*
2020-12-19 10:26:30 DEBUG (CoAP) [pyShelly] CoAP msg: 192.168.64.125 b'P\x1eA\xfc\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}'
2020-12-19 10:26:30 DEBUG (CoAP) [pyShelly] CoAP msg: 30 192.168.64.125 bytearray(b'P\x1eA\xfc\xb3cit\x01s\xed\x0b\xec\x08SHCB-1#483FDA928991#2\xd2C\x96\x00\x82\x08\x00\xff{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}')
2020-12-19 10:26:30 DEBUG (CoAP) [pyShelly] CoAP Code: 30, Type SHCB-1, Id 483FDA928991, Payload *{"G":[[0,1101,1],[0,5105,0],[0,5106,0],[0,5107,255],[0,5108,0],[0,5102,56],[0,5101,100],[0,5103,4750],[0,9101,"color"],[0,4101,0.70],[0,4103,50]]}*
Shelly app works fine. Homeassistant Shelly integration works but can only control White, not the RGB colors, that's the reason why I'm trying ShellyForHass.
If you have any questions, please ask. I can provide more logs if needed.
I can also confirm that RGB bulb is missing light component part. But I hardly believe I was able to use it when first connected. Although I'm not sure what version I was using. I also had some MQTT setup but I doubt this had any affect.
I can also confirm that RGB bulb is missing light component part. But I hardly believe I was able to use it when first connected. Although I'm not sure what version I was using. I also had some MQTT setup but I doubt this had any affect.
Hi urosgruber, I'm sorry if that's not the way to ask that, but could you please share the MQTT configuration code you use for the bulbs? Thanks!
Hi urosgruber, I'm sorry if that's not the way to ask that, but could you please share the MQTT configuration code you use for the bulbs? Thanks!
I was using ha-shellies-discovery script where all devices are auto dicovered.
+1 same issue
I added the bulbs with mqtt for now, but I have lots of trouble to control a few of them a the same time.
just put me into the line of people with the same problem. have 4 of those GU10 RGB/White Shellys. With shellyforhass only FW Update Entity is present. Not tried the HA Shelly Integration cause as i saw so far there is not advantage in using this right now.
+1 same issue
I added the bulbs with mqtt for now, but I have lots of trouble to control a few of them a the same time.
I thought it's just me, but controlling group of lights via MQTT works on random. Sometimes all turn on, sometimes a few stays off etc.
Hey guys, the specification for the SHCB was missing in pyshelly and so also in shellyforhass. It's already merged, so it should be in the next (beta) release I guess. Just wait a little longer for @hakana to trigger the build.
+1 same issue I added the bulbs with mqtt for now, but I have lots of trouble to control a few of them a the same time.
I thought it's just me, but controlling group of lights via MQTT works on random. Sometimes all turn on, sometimes a few stays off etc.
Hi @urosgruber and @Mitsch333,
I have the same issue with the Shelly RGBW Bulbs, sometimes they become temporarily unresponsive. I'm controlling them via MQTT now using the shellies discovery script. However, I have seen the same behaviour using the Shelly Android App. If you change color of the bulb quickly in succession, sometimes it freezes. After some time it becomes responsive again. Have you guys seen this behaviour outside MQTT and also in for example the Shelly App?
Hello @sjoerdos92. I have the same problems with two GU10 RGBW lights, both via MQTT and via APP, it is the same. Technical support replied that it is correct that they work this way (???) and that the problems are due to too frequent color / configuration changes. I replied that I don't agree at all, but that's how it ended.
Try adding your opinion to some complaining message you find in the facebook support group, maybe they understand that they need to fix something.
@sjoerdos92 a user of the support group told me there is a new firmware that fixes the problem. I'll try it soon.
@sjoerdos92 a user of the support group told me there is a new firmware that fixes the problem. I'll try it soon.
When was this firmware update released?
@sjoerdos92 a user of the support group told me there is a new firmware that fixes the problem. I'll try it soon.
installed the FW Update, restarted HomeAssistant. Still no GU10 RGBW Entities available. Or should this FW fix the above availability behavior?
@sjoerdos92 I don't know for sure, maybe 5 days ago, for what I can suppose from the firmware version: 20210107-122133/1.9_GU10_RGBW@07531e29
@magicbenny sorry for the misunderstanding, but I was referring to the problem of frequent disconnection of the lights when changing the setting, not the automatic light detection via ShellyForHASS.
Hi - Has there been any update on this - Exact same with a Shelly GU10 RGBW @sjoerdos92 - the debug info you pasted - do you have any guide how to do that - looks very useful?
I'm also unable to get the RGBW E27 lights to be detected. FW 20201008-085327/master@a3d98bb0
Hi - Has there been any update on this - Exact same with a Shelly GU10 RGBW @sjoerdos92 - the debug info you pasted - do you have any guide how to do that - looks very useful?
@jzeeman01 I switched to MQTT and the Shellies discovery script. Debugging is easy by setting the specific module (Pyshelly) to a lower log level:
logger:
default: error
logs:
pyShelly: debug
Hi, same here. switched to mqtt. I can control the colours (colour plus white) effects and brightness. However, I cannot switch them on/off. That has to do with the command topics of the shelly API. (set, command and status) configuration.yaml:
- platform: mqtt
schema: template
name: "TV ColorBulb 2"
command_topic: "shellies/shellycolorbulb-<id>/color/0/set"
state_topic: "shellies/shellycolorbulb-<id>/color/0/status"
effect_list:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
command_on_template: >
{"turn": "on"
{%- if brightness is defined -%}
, "gain": {{brightness | float | multiply(0.3922) | round(0)}}
{%- endif -%}
{%- if red is defined and green is defined and blue is defined -%}
, "red": {{ red }}, "green": {{ green }}, "blue": {{ blue }}
{%- endif -%}
{%- if white_value is defined -%}
, "white": {{ white_value }}
{%- endif -%}
{%- if effect is defined -%}
, "effect": {{ effect }}
{%- endif -%}
}
command_off_template: '{"turn":"off"}'
state_template: "{% if value_json.ison %}on{% else %}off{% endif %}"
brightness_template: "{{ value_json.gain | float | multiply(2.55) | round(0) }}"
red_template: "{{ value_json.red }}"
green_template: "{{ value_json.green }}"
blue_template: "{{ value_json.blue }}"
white_value_template: "{{ value_json.white }}"
effect_template: "{{ value_json.effect }}"
qos: 2
@Houdoe just try the Shellies discovery script on HACS. No need to set those things in your config yourself
@Houdoe just try the Shellies discovery script on HACS. No need to set those things in your config yourself
Thanks for your help. The Shelly4hass discovers the bulbs as device (which is good!) but there are no entities added, except for the firmware upgrade. I did a discovery on IP
GU10 RGBW Bulbs are now available in HA via SFH but without color picker wheel for me.
The latest working version of the firmware seems to be 1.10.4 for the SHCB-1, you can use http://archive.shelly-tools.de/ to generate a link to manually flash a specific firmware version.
However, this still doesn't allow switching of the color/white mode which has been a hanging issue #140 for quite some time and the workaround with a template/rest switch isn't a good option as it scales poorly, clutters up the dashboard, and also doesn't work with scenes anymore.
Environment
Describe the bug
I just bought a Shelly Bulb RGBW (SHCB-1), and after plugging it in I can only see a "firmware update" entity in Home Assistant. I can't find a way to actually control the lights from Home Assistant.
I don't remember what the firmware version was when I got the device, but it seems the device wants to update between 1.9.0 and the latest 1.9.3 beta release. I have also tried 1.9.2, but it has the same behaviour.
Steps to Reproduce
Have a Shelly Bulb RGBW on the network.
Expected behavior
I would expect a
light.shelly_shcb_*
entity show up in Home Assistant.Screenshots
Traceback/Error logs
Additional context