Edge Shelly drivers for Gen1 and Gen2 Devices

Thank you for the log! I think I found the problem and pushed the fix out. Confirm you have driver version: 2023-03-15T22:05:23.188992175 and retest.

Yea, it seem to me that it would be simpler just to use the built-in Shelly app triggers to flip the relay.

Nevertheless, I’ll be looking into what it would take to implement a webhook to get the updates. As always, not having a device to test with will be the challenge…

1 Like

I was looking at using a temperature sensor similar to JDRoberts although have not purchased one yet.

1 Like

Just a quick thanks for your efforts here. The Shelly cloud and SmartThings integration wasn’t functioning properly for my rgb led setup. Colour switching was a bust. Your edge driver works perfectly. Thank you v much!!!

2 Likes

It works well now. Thanks for the quick support!

2 Likes

Hi all - dropping back in to ask if there is any known issue with the White Channel dimming on the RGBW2? I can control the three colour channels just fine. I can turn all four channels on/off. The white brightness level isn’t responding to the inputs though. :disappointed:

Are you using the RGBW2 color or RGBW2 white device? Which one you use will have to align with however you have the Shelly device itself configured.

I’m using the Colour driver and a 4 channel led strip. I believe that’s the right setup.

Do you have the CLI? We may need to get some logs to see what’s happening.

Voila!

2023-03-17T21:56:15.159333871+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:56:15.182359538+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{“level”:45},“capability”:“switchLevel”,“command”:“setLevel”,“component”:“color”,“positional_args”:[45]}
2023-03-17T21:56:15.183733871+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:56:15.184955204+00:00 INFO Shelly Device Driver V1.8b Switch level changed to >> 45 <<
2023-03-17T21:56:15.186140204+00:00 DEBUG Shelly Device Driver V1.8b Mode: color
2023-03-17T21:56:15.187314871+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:45}}
2023-03-17T21:56:15.204595871+00:00 DEBUG Shelly Device Driver V1.8b generating RGB values from hue, sat, level = 99.470899470899 98.823529411765 45
2023-03-17T21:56:15.205469204+00:00 DEBUG Shelly Device Driver V1.8b Computed RGB values= 255/3/11
2023-03-17T21:56:15.206656538+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.68.109/color/0/?red=255&green=3&blue=11&gain=45
2023-03-17T21:56:15.444278871+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-17T21:56:15.445237204+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-17T21:56:15.446527871+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“ison”:true,“source”:“http”,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“mode”:“color”,“red”:255,“green”:3,“blue”:11,“white”:8,“gain”:45,“effect”:0,“transition”:0,“power”:7.18,“overpower”:false}
2023-03-17T21:56:15.453859871+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2023-03-17T21:56:15.464685871+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“meter”,“state”:{“unit”:“W”,“value”:7.18}}
2023-03-17T21:56:15.483404204+00:00 DEBUG Shelly Device Driver V1.8b Device-provided gain = 45
2023-03-17T21:56:15.492396871+00:00 DEBUG Shelly Device Driver V1.8b Computed color: hue / saturation / level: 99.470899470899 / 98.823529411765 / 100.0
2023-03-17T21:56:15.493700538+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“hue”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:99.47089947089947}}
2023-03-17T21:56:15.506266204+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“saturation”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:98.82352941176471}}
2023-03-17T21:56:15.522345204+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:45}}
2023-03-17T21:56:15.533073204+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:56:18.529631206+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:56:18.561962872+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{“level”:0},“capability”:“switchLevel”,“command”:“setLevel”,“component”:“color”,“positional_args”:[0]}
2023-03-17T21:56:18.567642206+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:56:18.568993872+00:00 INFO Shelly Device Driver V1.8b Switch level changed to >> 0 <<
2023-03-17T21:56:18.570180539+00:00 DEBUG Shelly Device Driver V1.8b Mode: color
2023-03-17T21:56:18.571367872+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:1}}
2023-03-17T21:56:18.583793206+00:00 DEBUG Shelly Device Driver V1.8b generating RGB values from hue, sat, level = 99.470899470899 98.823529411765 1
2023-03-17T21:56:18.584706539+00:00 DEBUG Shelly Device Driver V1.8b Computed RGB values= 255/3/11
2023-03-17T21:56:18.586802873+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.68.109/color/0/?red=255&green=3&blue=11&gain=1
2023-03-17T21:56:18.726048206+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-17T21:56:18.727018539+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-17T21:56:18.729218539+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“ison”:true,“source”:“http”,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“mode”:“color”,“red”:255,“green”:3,“blue”:11,“white”:8,“gain”:1,“effect”:0,“transition”:0,“power”:30.24,“overpower”:false}
2023-03-17T21:56:18.730529206+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2023-03-17T21:56:18.738380539+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“meter”,“state”:{“unit”:“W”,“value”:30.24}}
2023-03-17T21:56:18.761232873+00:00 DEBUG Shelly Device Driver V1.8b Device-provided gain = 1
2023-03-17T21:56:18.768947206+00:00 DEBUG Shelly Device Driver V1.8b Computed color: hue / saturation / level: 99.470899470899 / 98.823529411765 / 100.0
2023-03-17T21:56:18.770230206+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“hue”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:99.47089947089947}}
2023-03-17T21:56:18.780758206+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“saturation”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:98.82352941176471}}
2023-03-17T21:56:18.800136873+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:1}}
2023-03-17T21:56:18.809993539+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:56:25.029846542+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:56:25.067152876+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{“level”:0},“capability”:“switchLevel”,“command”:“setLevel”,“component”:“white”,“positional_args”:[0]}
2023-03-17T21:56:25.068771876+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:56:25.070928542+00:00 INFO Shelly Device Driver V1.8b Switch level changed to >> 0 <<
2023-03-17T21:56:25.073078542+00:00 DEBUG Shelly Device Driver V1.8b Mode: color
2023-03-17T21:56:25.075213542+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“white”,“state”:{“value”:0}}
2023-03-17T21:56:25.078125209+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:56:43.249380884+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:56:43.265721884+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{“level”:0},“capability”:“switchLevel”,“command”:“setLevel”,“component”:“white”,“positional_args”:[0]}
2023-03-17T21:56:43.275208884+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:56:43.276437884+00:00 INFO Shelly Device Driver V1.8b Switch level changed to >> 0 <<
2023-03-17T21:56:43.277618551+00:00 DEBUG Shelly Device Driver V1.8b Mode: color
2023-03-17T21:56:43.278924218+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“white”,“state”:{“value”:0}}
2023-03-17T21:56:43.292894551+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:57:01.430835226+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:57:01.435622226+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{“level”:50},“capability”:“switchLevel”,“command”:“setLevel”,“component”:“white”,“positional_args”:[50]}
2023-03-17T21:57:01.451690893+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:57:01.452957893+00:00 INFO Shelly Device Driver V1.8b Switch level changed to >> 50 <<
2023-03-17T21:57:01.457758226+00:00 DEBUG Shelly Device Driver V1.8b Mode: color
2023-03-17T21:57:01.458599226+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“white”,“state”:{“value”:50}}
2023-03-17T21:57:01.468805893+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:57:15.440813233+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-17T21:57:15.445643566+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> received command: {“args”:{},“capability”:“switch”,“command”:“off”,“component”:“main”,“positional_args”:{}}
2023-03-17T21:57:15.455770566+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-17T21:57:15.457092566+00:00 INFO Shelly Device Driver V1.8b main switch turned off
2023-03-17T21:57:15.465304233+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-17T21:57:15.469518900+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.68.109/color/0/?turn=off
2023-03-17T21:57:15.718020566+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-17T21:57:15.718999900+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-17T21:57:15.720297566+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“ison”:false,“source”:“http”,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“mode”:“color”,“red”:255,“green”:3,“blue”:11,“white”:8,“gain”:1,“effect”:0,“transition”:0,“power”:11.98,“overpower”:false}
2023-03-17T21:57:15.721557233+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-17T21:57:15.735258233+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“meter”,“state”:{“unit”:“W”,“value”:11.98}}
2023-03-17T21:57:15.754169900+00:00 DEBUG Shelly Device Driver V1.8b Device-provided gain = 1
2023-03-17T21:57:15.761615566+00:00 DEBUG Shelly Device Driver V1.8b Computed color: hue / saturation / level: 99.470899470899 / 98.823529411765 / 100.0
2023-03-17T21:57:15.762906900+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“hue”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:99.47089947089947}}
2023-03-17T21:57:15.777971233+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“saturation”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:98.82352941176471}}
2023-03-17T21:57:15.793752566+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:1}}
2023-03-17T21:57:15.813694566+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:57:15.828749233+00:00 DEBUG Shelly Device Driver V1.8b Accepted connection from 192.168.68.109:4657
2023-03-17T21:57:15.837751566+00:00 DEBUG Shelly Device Driver V1.8b Received header: GET /15e0f4f3-e7cf-4264-a55d-cd31f792665c/rgbw/0/off HTTP/1.1
2023-03-17T21:57:15.854918233+00:00 INFO Shelly Device Driver V1.8b Message for Shelly RGBW2C 4: endpoint=/15e0f4f3-e7cf-4264-a55d-cd31f792665c/rgbw/0/off
2023-03-17T21:57:15.868657566+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled
2023-03-17T21:57:16.872306567+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.68.109/status
2023-03-17T21:57:17.258652900+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-17T21:57:17.259631567+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-17T21:57:17.268418234+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“wifi_sta”:{“connected”:true,“ssid”:“Home Fast”,“ip”:“192.168.68.109”,“rssi”:-48},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“21:57”,“unixtime”:1679090237,“serial”:732,“has_update”:false,“mac”:“483FDA2C3C7E”,“cfg_changed_cnt”:0,“actions_stats”:{“skipped”:0},“mode”:“color”,“input”:0,“lights”:[{“ison”:false,“source”:“http”,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“mode”:“color”,“red”:255,“green”:3,“blue”:11,“white”:8,“gain”:1,“effect”:0,“transition”:0,“power”:0.00,“overpower”:false}],“meters”:[{“power”:0.00,“is_valid”:true,“overpower”:false,“timestamp”:1679090237,“counters”:[9.982, 6.492, 5.916],“total”:894}],“inputs”:[{“input”:0,“event”:“”,“event_cnt”:0}],“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20221027-095909/v1.12.1-ga9117d3”,“old_version”:“20221027-095909/v1.12.1-ga9117d3”},“ram_total”:51688,“ram_free”:39436,“fs_size”:233681,“fs_free”:151102,“uptime”:5377}
2023-03-17T21:57:17.270063234+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-17T21:57:17.339611901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“meter”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-17T21:57:17.433728234+00:00 DEBUG Shelly Device Driver V1.8b Device-provided gain = 1
2023-03-17T21:57:17.459073901+00:00 DEBUG Shelly Device Driver V1.8b Computed color: hue / saturation / level: 99.470899470899 / 98.823529411765 / 100.0
2023-03-17T21:57:17.498832901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“hue”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:99.47089947089947}}
2023-03-17T21:57:17.595438901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“saturation”,“capability_id”:“colorControl”,“component_id”:“color”,“state”:{“value”:98.82352941176471}}
2023-03-17T21:57:17.716783901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“level”,“capability_id”:“switchLevel”,“component_id”:“color”,“state”:{“value”:1}}
2023-03-17T21:57:17.769915901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“meter”,“state”:{“unit”:“Wh”,“value”:14.9}}
2023-03-17T21:57:17.806726567+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield”,“component_id”:“input”,“state”:{“value”:“off”}}
2023-03-17T21:57:17.846280901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“rssi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:-48}}
2023-03-17T21:57:17.883424901+00:00 INFO Shelly Device Driver V1.8b <Device: 15e0f4f3-e7cf-4264-a55d-cd31f792665c (Shelly RGBW2C 4)> emitting event: {“attribute_id”:“lqi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:0},“visibility”:{“displayed”:false}}
2023-03-17T21:57:17.896815567+00:00 DEBUG Shelly Device Driver V1.8b Shelly RGBW2C 4 device thread event handled

i cycled it through a few colour brightness changes along with a few white light brightness changes and on/offs.

Thank you! Can you please capture one more log of the following sequence:

  • Start logging
  • Use the Shelly app on your mobile device to set levels set to 0 and turn off the device.
  • Tap the Refresh button on the SmartThings device.
  • Return to the Shelly app on your mobile device and turn up the white channel and turn power on. Adjust the brightness level if needed to have the white lights come on.
  • Tap the Refresh button on the SmartThings device again.

Please send me the log output in a direct message and prefix and postfix the log text with 3 back-ticks (```) to help with formatting.

Thank you for your help to diagnose this!

@TAustin about 4 days ago or so all my 2.5 relays stopped working in ST. It appears that coincides with a driver update. I tried deleting and re-adding one but that didnt fix anything. I also tried reinitializing by changing the IP then changing it back. The relays work in the shelly app but arent changing state in ST.

Can you be more specific? For example:

  • Can you turn the relays on and off via the app?
  • Or is the SmartThings device not getting updated when the relays change from some other source (e.g. the Shelly app or button)

Is it possible the IP address changed?

What I would suggest trying is to temporarily change the Device Address to something else (unused) in the device Setting screen; waiting several seconds; then change it back to the correct address. This will force a re-initialization with the device.

The relays were working via the Shelly App and the wall switch that each channel is wired to but the state would not update in ST. I tried reinitializing by changing the IP then changing it back a bit later but that didnt help. Note that I have static IPs set for the relays in my router so the IP should not be changing.
I also confirmed in both apps that they matched. I deleted the devices and recreated them and now they seem to be connected but the only way the state updates in ST is if I hit the refresh button within the device in ST. Ive tried with the autorefresh option both on and off. The refresh frequency says its in minutes so even if I change that to 1 it would be too slow to work for my use case. These were working fine until the last driver update on 3/18.

If you try to turn on or off the relay from the SmartThings device, does it work?

Really sorry for the trouble you’re having.

Do you have the SmartThings CLI?

If I try turning the relay on or off from Smartthings I get a similar end result. I have to hit the refresh button to get the state to update similar to if I flip the wall switch or hit the button in the Shelly app.

No worries, I appreciate all the help and the time you’ve spent creating/maintaining the drivers.

I muddled through the instructions for the CLI and believe I was able to get what you want. The info below is from me changing the state of the relay from within smartthings then hitting the refresh button. I then went to the Shelly app and changed the relay state from withing the Shelly app. Then I switched back to Smartthings and hit refresh to get the device to show the state change in Smartthings. Hopefully this helps. If you would like logs for other actions please let me know and I’ll see what I can do.

────────────────────────────────────────────────────────────────────────────────────────────

Driver Id Name

────────────────────────────────────────────────────────────────────────────────────────────
1 6342be70-6da0-4535-afc1-ff6378d6c650 Aplicaciones Virtuales Mc
2 b0cfcce3-b1a2-4a63-8147-94f7bee88359 Aplicaciones Virtuales Mc-(SOS)
3 e120daf2-8000-4a9d-93fa-653214ce70d1 GE Z-Wave Motion Switch/Dimmer
4 5ad2cc83-5503-4040-a98b-b0fc9931b9fe GE Z-Wave Switch/Dimmer/Fan/Outlet
5 6a90f7a0-e275-4366-bbf2-2e8a502efc5d GE Zigbee Switch
────────────────────────────────────────────────────────────────────────────────────────────
6 603f77d9-ba4c-4b3f-a74c-7e1d631e0a07 King of Fans
7 b2558628-f657-4bab-9024-de32bfb10984 MyQ Connector
8 67f66970-8a64-4a96-90e1-81fa85885708 MyQ Door
9 9c6482f4-9b67-4357-b343-2aa12e4199ff Sense Connector
10 8f390da7-c66d-4245-9ba9-e431f95c78ec Shelly Device Driver V1.8b
────────────────────────────────────────────────────────────────────────────────────────────
11 f3258c1d-b6e9-424d-8b3f-b1e8fe51c4ca Shelly Gen2 Device Driver V1.2
12 c411db9e-a042-459a-a145-f005c65412ee ST Zigbee Button Mc
13 8307c33f-1e12-4cc7-98ed-8fe01b6666ec Z-Wave Bulb Mc-(OLD)
14 ba2e6153-ff84-4921-b57a-bb19d4dc9387 Z-Wave Button Mc
15 7ca45ba9-7cfe-4547-b752-fe41a0efb848 Z-Wave Device Config Mc
────────────────────────────────────────────────────────────────────────────────────────────
16 351974e8-d7de-46cb-a34f-92cc1371f80e Z-Wave Sensor and Child Thermostat Mc
17 b88307ad-ed36-42fb-81b0-c9875e1bd25f Z-Wave Sensor and Child Thermostat Mc-(OLD)
18 19ff222f-b4b3-426d-ab68-79b07da57d65 Z-Wave Smoke Alarm-Mc
19 17c05c19-f008-42e2-aa12-f12f1aae5612 Z-Wave Switch and Child Mc
20 5d3423d1-ce62-4ec6-bf21-53d3fe78284d Z-Wave Switch and Child Mc-(OLD)
────────────────────────────────────────────────────────────────────────────────────────────
21 5197249e-95aa-4a27-a08f-2232d193e13b Z-Wave Thing Mc
22 79679b70-6c89-4efa-a711-e5f6fa6f657e Z-Wave Window Treatment Mc
23 8a5a5586-aa12-4cbb-b7ed-fa3ad735df0d Zigbee Aqara Water Leak Sensor Mc
24 b1504ded-efa4-4ef0-acd5-ae24e7a92e6e Zigbee Contact Mc
25 bb1b3fd4-dcba-4d55-8d85-58ed7f1979fb Zigbee Light Multifunction Mc
────────────────────────────────────────────────────────────────────────────────────────────
26 0f94b869-baf2-4e6c-b4b7-96f30222e80a Zigbee Lock Mc-(OLD)
27 12e71b3b-184d-4b78-a0e4-679c02ca43dd Zigbee Moisture Sensor Mc
28 00425c55-0932-416f-a1ba-78fae98ab614 Zigbee Motion Sensor Mc
29 1eef4c45-5c94-4442-a771-0edfe41c8f4a Zigbee Multi Sensor Mc
30 e9bfd289-1d51-499e-8c64-d564d1868ad2 Zigbee Multi Switch and Child Mc
────────────────────────────────────────────────────────────────────────────────────────────
31 540ae948-6fcc-4137-809c-875c3e186071 Zigbee Multi Switch and Child Mc-(OLD)
32 8ca2e99f-1c2e-46bb-b30f-cdff87ffbeb3 Zigbee Power/Meter Mc
33 dc04dad1-b981-4578-88c2-922df6ae6a6b Zigbee Range Extender Mc
34 324f189f-f73b-4493-98e3-170fdd621b44 Zigbee Siren Mc
35 a2f7ec78-14c8-492d-9965-7544b0fc3b68 Zigbee Smoke/CO Detector Mc
────────────────────────────────────────────────────────────────────────────────────────────
36 40308d12-a2f0-4178-a574-70102c9d0fa9 Zigbee Sound Sensor Ecolink Mc
37 f2e891c6-00cc-446c-9192-8ebda63d9898 Zigbee Switch
38 bc53adfe-d18f-4ea4-9610-6aade6696b7a Zigbee Switch Mc
39 7fee6e41-26cc-49ef-b1f4-b30a43e02fe6 Zigbee Switch Power Mc
40 ab2e2ae4-d39b-4864-abe9-db36b6b018be Zigbee Switch Solar Panel
────────────────────────────────────────────────────────────────────────────────────────────
41 3aa0ccf2-8ed9-48c1-8ec3-e6a28db0aae4 Zigbee Temp Sensor and Child Thermostat Mc
42 6b656485-8237-41fa-bb46-7c928a97dd13 Zigbee Temp Sensor and Child Thermostat Mc-(OLD)
43 8ee1471c-81d3-44ca-8f9d-8292cb900c86 Zigbee Temp Sensor with Thermostat GROUPS
44 2198462e-a429-4d4c-8973-991a9ed1b9c8 Zigbee Temp Sensor with Thermostat Mc
45 870b62a4-9d4b-4eec-8d92-9c2e1077d6ad Zigbee Thermostat Mc
────────────────────────────────────────────────────────────────────────────────────────────
46 d692640b-402a-4d91-9151-d643ad4771f0 Zigbee Thing Mc
47 a6994e70-93de-4a76-8b5d-42971a3427c9 Zigbee Valve Mc
48 7333473f-722c-465d-9e5d-f3a6ca760489 Zooz Multichannel Switch
49 af6a9a6b-063e-440b-92ea-91289b740455 Zooz Multisensor
50 e9d4548f-0f0d-4e82-9db2-2e94d6c97d9e Zooz Switch
────────────────────────────────────────────────────────────────────────────────────────────
51 b98c2867-bd57-4a06-a4df-358646204e43 Zooz ZAC36 Valve Controller
52 7b81ba0f-d5d2-45e7-9add-92e894cbe37a Zooz ZEN32 Scene Controller
53 849b8885-df8b-4c9a-8019-38b1925ca578 Zooz ZEN34 Remote Switch
54 06e27965-fc57-49ae-984d-764f2d0a7961 Zooz ZSE41 XS Open Close Sensor
55 2b2a0ff7-033d-49a1-8142-b79f358f5624 Zooz ZSE42 XS Water Leak Sensor
────────────────────────────────────────────────────────────────────────────────────────────
? Select a driver. 10
connecting… connected
2023-03-23T11:27:58.870051876+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-23T11:27:58.870916792+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> received command: {“args”:{},“capability”:“switch”,“command”:“off”,“component”:“main”,“positional_args”:{}}
2023-03-23T11:27:58.871919084+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-23T11:27:58.872587292+00:00 INFO Shelly Device Driver V1.8b main switch turned off
2023-03-23T11:27:58.879985126+00:00 DEBUG Shelly Device Driver V1.8b Parent device address: 192.168.1.9
2023-03-23T11:27:58.880447542+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.1.9/relay/1/?turn=off
2023-03-23T11:27:59.038863334+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-23T11:27:59.040878459+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-23T11:27:59.042549834+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“overtemperature”:false,“is_valid”:true,“source”:“http”}
2023-03-23T11:27:59.045267876+00:00 INFO Shelly Device Driver V1.8b Switch command sent
2023-03-23T11:27:59.045705334+00:00 DEBUG Shelly Device Driver V1.8b Shelly R25CH2 2 device thread event handled
2023-03-23T11:28:06.860326754+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-23T11:28:06.861293754+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“main”,“positional_args”:{}}
2023-03-23T11:28:06.869425088+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-23T11:28:06.870102171+00:00 INFO Shelly Device Driver V1.8b Refresh requested
2023-03-23T11:28:06.872044004+00:00 DEBUG Shelly Device Driver V1.8b Shelly R25CH2 2 device thread event handled
2023-03-23T11:28:06.872763963+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.1.9/status
2023-03-23T11:28:07.146722630+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-23T11:28:07.147295630+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-23T11:28:07.147982213+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“wifi_sta”:{“connected”:true,“ssid”:“UNIVERSITY_OF_WIfiSCONSIN”,“ip”:“192.168.1.9”,“rssi”:-63},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“06:28”,“unixtime”:1679570887,“serial”:1294,“has_update”:false,“mac”:“48551902B4C3”,“cfg_changed_cnt”:0,“actions_stats”:{“skipped”:0},“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“overtemperature”:false,“is_valid”:true,“source”:“http”},{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“overtemperature”:false,“is_valid”:true,“source”:“http”}],“meters”:[{“power”:0.00,“overpower”:0.00,“is_valid”:true,“timestamp”:1679552887,“counters”:[0.000, 0.000, 0.000],“total”:0},{“power”:0.00,“overpower”:0.00,“is_valid”:true,“timestamp”:1679552887,“counters”:[0.000, 0.000, 0.000],“total”:0}],“inputs”:[{“input”:0,“event”:“”,“event_cnt”:0},{“input”:1,“event”:“”,“event_cnt”:0}],“temperature”:53.66,“overtemperature”:false,“tmp”:{“tC”:53.66,“tF”:128.59, “is_valid”:true},“temperature_status”:“Normal”,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20221027-092056/v1.12.1-ga9117d3”,“old_version”:“20221027-092056/v1.12.1-ga9117d3”},“ram_total”:50728,“ram_free”:36128,“fs_size”:233681,“fs_free”:142066,“voltage”:123.13,“uptime”:58763}
2023-03-23T11:28:07.149005921+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“rssi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:-63}}
2023-03-23T11:28:07.153586421+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“lqi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:0},“visibility”:{“displayed”:false}}
2023-03-23T11:28:07.162677046+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:07.185200380+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“relay2”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:07.193756005+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:07.203915380+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“relay2”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:07.212170213+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:53.66}}
2023-03-23T11:28:07.222441630+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-23T11:28:07.231060463+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“relay2”,“state”:{“value”:“off”}}
2023-03-23T11:28:07.241055505+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“input0”,“state”:{“value”:“off”}}
2023-03-23T11:28:07.248840796+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“input1”,“state”:{“value”:“on”}}
2023-03-23T11:28:07.260938671+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-23T11:28:07.270185713+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:07.278877213+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:07.288297005+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“main”,“state”:{“value”:“on”}}
2023-03-23T11:28:07.294691005+00:00 DEBUG Shelly Device Driver V1.8b Shelly R25 2 device thread event handled
2023-03-23T11:28:29.372754484+00:00 TRACE Shelly Device Driver V1.8b Received event with handler capability
2023-03-23T11:28:29.373611734+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> received command: {“args”:{},“capability”:“partyvoice23922.refresh”,“command”:“push”,“component”:“main”,“positional_args”:{}}
2023-03-23T11:28:29.376727525+00:00 TRACE Shelly Device Driver V1.8b Found CapabilityCommandDispatcher handler in thisDriver
2023-03-23T11:28:29.377433817+00:00 INFO Shelly Device Driver V1.8b Refresh requested
2023-03-23T11:28:29.381965525+00:00 DEBUG Shelly Device Driver V1.8b Shelly R25CH2 2 device thread event handled
2023-03-23T11:28:29.382685984+00:00 INFO Shelly Device Driver V1.8b Sending HTTP request: http://192.168.1.9/status
2023-03-23T11:28:29.510939067+00:00 DEBUG Shelly Device Driver V1.8b HTTP ret: 1
2023-03-23T11:28:29.519746317+00:00 DEBUG Shelly Device Driver V1.8b HTTP code: 200
2023-03-23T11:28:29.520215650+00:00 DEBUG Shelly Device Driver V1.8b HTTP response: {“wifi_sta”:{“connected”:true,“ssid”:“UNIVERSITY_OF_WIfiSCONSIN”,“ip”:“192.168.1.9”,“rssi”:-67},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“06:28”,“unixtime”:1679570910,“serial”:1295,“has_update”:false,“mac”:“48551902B4C3”,“cfg_changed_cnt”:0,“actions_stats”:{“skipped”:0},“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“overtemperature”:false,“is_valid”:true,“source”:“http”},{“ison”:true,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“overtemperature”:false,“is_valid”:true,“source”:“http”}],“meters”:[{“power”:0.00,“overpower”:0.00,“is_valid”:true,“timestamp”:1679552910,“counters”:[0.000, 0.000, 0.000],“total”:0},{“power”:0.00,“overpower”:0.00,“is_valid”:true,“timestamp”:1679552910,“counters”:[0.000, 0.000, 0.000],“total”:0}],“inputs”:[{“input”:0,“event”:“”,“event_cnt”:0},{“input”:1,“event”:“”,“event_cnt”:0}],“temperature”:53.56,“overtemperature”:false,“tmp”:{“tC”:53.56,“tF”:128.41, “is_valid”:true},“temperature_status”:“Normal”,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20221027-092056/v1.12.1-ga9117d3”,“old_version”:“20221027-092056/v1.12.1-ga9117d3”},“ram_total”:50728,“ram_free”:35768,“fs_size”:233681,“fs_free”:142066,“voltage”:123.13,“uptime”:58785}
2023-03-23T11:28:29.521180734+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“rssi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:-67}}
2023-03-23T11:28:29.527210275+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“lqi”,“capability_id”:“signalStrength”,“component_id”:“main”,“state”:{“value”:0},“visibility”:{“displayed”:false}}
2023-03-23T11:28:29.535474234+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:29.544153734+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“relay2”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:29.553920234+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:29.569432525+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“relay2”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:29.572542525+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“temperature”,“capability_id”:“temperatureMeasurement”,“component_id”:“main”,“state”:{“unit”:“C”,“value”:53.56}}
2023-03-23T11:28:29.581425734+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“off”}}
2023-03-23T11:28:29.591180567+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“relay2”,“state”:{“value”:“on”}}
2023-03-23T11:28:29.599770692+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“input0”,“state”:{“value”:“off”}}
2023-03-23T11:28:29.609097400+00:00 INFO Shelly Device Driver V1.8b <Device: f9761f23-cb36-45dd-ad49-a9aa0d8fb59a (Shelly R25 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“input1”,“state”:{“value”:“on”}}
2023-03-23T11:28:29.620326567+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”,“state”:{“value”:“on”}}
2023-03-23T11:28:29.628913817+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“power”,“capability_id”:“powerMeter”,“component_id”:“main”,“state”:{“unit”:“W”,“value”:0.0}}
2023-03-23T11:28:29.638932317+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“energy”,“capability_id”:“energyMeter”,“component_id”:“main”,“state”:{“unit”:“Wh”,“value”:0.0}}
2023-03-23T11:28:29.647517775+00:00 INFO Shelly Device Driver V1.8b <Device: 58df282d-308d-4d72-8079-9d3961ae0d96 (Shelly R25CH2 2)> emitting event: {“attribute_id”:“text”,“capability_id”:“partyvoice23922.statefield2”,“component_id”:“main”,“state”:{“value”:“on”}}
2023-03-23T11:28:29.655699275+00:00 DEBUG Shelly Device Driver V1.8b Shelly R25 2 device thread event handled

First of all, great job getting the CLI installed and running logs!

What you captured here is a sequence where I see you turned OFF the switch in the SmartThings app, and everything looks to be working fine there in that case. I don’t see you turning it ON, and I don’t see anything coming in from the device where you used the Shelly app to turn it on or off.

This also helps me see that you are using a separate device for channel 2, so that’s good for me to know. So this leads me to another question: are you seeing this problem just with that channel 2 device or with both the channel 1+2 and channel 2 devices?

What I’d like you to do is this: start up logging again and this time, don’t do anything but let it run for at least 30 minutes. Every 30 minutes there should be a routine that kicks off to check that the Shelly device itself is still properly configured to send the Edge driver updates. If it is not, then it tries to re-initialize it.

It might be helpful for you to know some background details for how this is supposed to be working. (This is for the GEN1 driver only): During initialization, the Edge driver sends some commands to the Shelly device to tell it to notify the Edge driver at a specific URL whenever there are state changes. If the Shelly device for any reason loses this configuration then the Edge driver won’t get notified. You can actually examine these URLs by using the Shelly app and going into Settings and then I/O Actions. Here you should see the URLs configured for Button on, Button off, Output on, and Output off. If these are blank, or have an old address, then this would be one reason why the SmartThings device isn’t getting updated.

Those URLs change (because the port number changes) any time the Edge driver is restarted (hub reboot, driver reinstall, driver restart), so they need to be updated to the Shelly device. If this isn’t happening for whatever reason, then that could be the cause of the issue you are seeing.

Do me a favor, and send me a direct message with the 30-minute log text so we don’t fill up the main topic here. Also please prefix and postfix the log text with 3 back-ticks (```), which will help in formatting.

Thanks.

I’m pretty confused how the logs show that the status updated properly and also didn’t show the other actions that I did while the logging was active. I definitely had to hit the refresh button within the device in Smartthings to get the state to update.

Correct, I’m running a seperate switch on each channel of the relay. Both channels are requiring the manual refresh to update and this is across 3 different Shelly 2.5 devices. To elaborate on the use case, I have the harbor breeze zigbee light/fans in these rooms. I used to have the wall mounted IR remotes but my wife wanted them to function locally with normal toggle switches to make it easier for our young children. I use the relay attached to the switches to trigger a routine that toggles the state of the fan and light. This was the only way I could come up with to have local(wall) toggle switch control, maintain app control, and also maintain IR remote control functionality all at the same time.

I appreciate the explanation of the background. I’ve seen the I/O actions section but have not done anything with it yet and wasn’t exactly sure how it was or would be utilized.

Hopefully the log I sent helps decipher the issue. I really appreciate the help.

Ive done a bit more tinkering and I believe the devices are functioning but they only seem to update their state once every minute unless I manually refresh. This is much slower than before the last driver update and also slower than the pre-edge driver when they relied on the cloud. If I set auto refresh to off in the device settings within ST then they dont work at all or if they are working its so slow I cant monitor it.