Shelly Binding

Tags: #<Tag:0x00007f174b1a0720> #<Tag:0x00007f174b1a0630>

Hello, thanks for your answer.
There is no password protection and i can correctly act on the relay and turn on/off the light from the switch.
But if i change status from the physical input or from mqtt, this is not reflecting the status of the switch.
I tried also with UI built object but result is the same.
What is the way to debug this communication?
Thanks again

This looks for me that you are using an older binding version on firmware >= 1.8
Do an upgrade to the latest DEV build


Latest DEV build: 2.5.11 - 3.0.0 - README - Installation - Firmware Index - Firmware Archive - API Doc
fyi: The 3.0 release is behing 2.5.11. Let me know if someone needs a 3.0 build due to new device support etc.

open OH console
enter log:set DEBUG org.openhab.binding.shelly
this writes the output to openhab.log

Is the OH system and Shelly device on the same IP Subnet?
Is it never reflected or after 1min? (regular OH polling)
Please make sure to use the latest 1.9.x firmware. Just a few days ago we had a user with a 2.5 reporting a similar issues. After an upgrade to 1.9.2 it was gone.

Yes Shelly are on the same subnet
Yes after 1 min the the status is reflected
I also rebooted the Shelly, no changes.
Firmware is 1.9.0 on Shelly1 (Latest)

I have to add that i think it is something related to the specific device, because i copy/pasted the configuration to another Shelly1 (all the same, just different IP) and it works perfectly!
What can i do on Shelly side?
Any way to troubleshoot this CoAP protocol?

Edit:
tried also a factory reset of this device, behaviour is the same :frowning:
Actions on mqtt or physical switch are not reflected to Shelly Binding item immediately but only at next minute refresh.

Thanks!

I checked the firmware index and there is a 1.9.2 for SHSW-1

Did you tried the Web App and Mobile App to check if they offer an update to 1.9.2? Sometimes the detection of a new firmware doesn’t work.

You could also download the zip from the firmware repo and install it with curl

I expect 1.9.2 to fix the issue was we had it with the 2.5 (see above)

fyi: On 12/5 we’ll have a Virtual Teamup

The following topics will be presented:

  • The Past, the Present and the Future
  • A Tour of the New openHAB 3 UI
  • openHABian Update
  • Bayesian Presence Detection
  • Innovative input devices for openHAB

More information: openHAB Virtual Meetup December 5th (Updated)

Hey Basti,
as I have a few CCT LEDs I reworked your script (and simplified the formula for ww channel) and made it generic so that 1 .rules file works for all CCT LED things.
Just in case somebody else has this requirement

//Generic rule for CCT LEDs
//Usage & Requirements:
//Syntax of Items:
	//Prefix: needs to be constant per Thing.
	val String strSuffixSeparator = "_"				//Separator: 1 unique separator
	val String strSuffixBrightness = "brightness"			//Suffix: at your choice
	val String strSuffixTemperature = "temperature"			//Suffix: at your choice
//4 Items per thing required. Example:
	//Group	gCCT_LED		"All CCT LEDs"
	//Dimmer	LED1_brightness		"Brightness"	(gCCT_LED)
	//Dimmer	LED1_temperature	"Temperature"	(gCCT_LED)
	//Dimmer	LED1_cw			"cold white Channel"
	//Dimmer	LED1_ww			"warm white Channel"
//Items "LED1_brightness" and "LED1_temperature" are proxy items and to be used in sitemaps. Both have to be a member of group "gCCT_LED"
//Items "LED1_cw" and "LED_ww" are litems linked to thing channel. Not required in sitemaps. Do NOT include in this group

val String filename = "CCT_LED.rules"
rule "CCT_LED"
when
	Member of gCCT_LED changed
then
	logInfo(filename, "Item '{}' received command {}",triggeringItem.name,triggeringItem.state)
	var Number iNewCwState										//New value for cold white channel
	var Number iNewWwState										//New value for warm white channel
	val String strThing = triggeringItem.name.toString.split(strSuffixSeparator).get(0)		//Get Name of "Thing", i.e. LED1 or LED2 or...
	val String strType = triggeringItem.name.toString.split(strSuffixSeparator).get(1)		//Get Type (brightness oder temperature)

	if ((strType == strSuffixBrightness) && (triggeringItem.state as Number) == 0) {		//no math required. just switch off
		iNewCwState = 0
		iNewWwState = 0
	}
	else {
		var iBrightness = gCCT_LED.members.findFirst[ t | t.name == strThing+strSuffixSeparator+strSuffixBrightness ].state as Number
		var iColor = gCCT_LED.members.findFirst[ t | t.name == strThing+strSuffixSeparator+strSuffixTemperature ].state as Number
		logInfo(filename, "Setting 'Brightness' to {} and 'White Color' to {}",iBrightness,iColor)
		iNewWwState = Math::round ((iColor / 100 * iBrightness).intValue)
		iNewCwState = iBrightness - iNewWwState
	}
	logInfo(filename, "Changing channel 'Cold White' to {} and 'Warm White' to {}",iNewCwState,iNewWwState)
	sendCommand(strThing + "_cw", iNewCwState.toString)
	sendCommand(strThing + "_ww", iNewWwState.toString)
end

Nice :blush::ok_hand:

Updated to 20201202-135844/v1.9.3-rc3 (just released, according to Support FB improving also this problem) and still not solved :frowning:

Please provide the log as requested above

I would like to add this to the README is this is fine for you. Could you also provide an introductory paragraph explaining the purpose / use case.

Markus,
sure it is ok.
Here we go - Use Case:
CCT LED Stripes (or tunable white LED) allow users to adjust the white color (temperature) between “cold white (cw)” and “warm white (ww)”. These LED Stripes have only 3 cables: DC, ww and cw. By dimming these two channels independantly from each other results in the desired white color.
However, Shelly RGBW2 dimmer do not support CCT LEDs.

This is how we can integrate it in openHAB anyway:

  1. Put your Shelly RGBW2 dimmer into “white mode” (“Settings” - “Device Type”)
  2. Connect cw cable and ww cable to any of the 4 output channels
  3. Add thing to shelly binding, create 2 items and link them to the 2 channels, create 2 slider in sitemap

Problem now is, that controling these two channels is uncomfortable:

  • to set the desired color you need to work with 2 sliders and you need to pay attention that both sliders in sum do not exceed 100%. Setting both channels to 100% will damage your LED CCT
  • Switching off means to separately set both channels to 0

With the following rule you can control CCT LEDs as usual:

  • 1 slider for brightness
  • 1 slider for color temperature

This rule requires two proxy items

on the long run, do you think it is possible to include this functionality into your binding, maybe as 2 more thing channels (after they are activated in things settings)?

I have another rule for not going over 100 percent for both led stripes. :wink:
But with the cct rule you don’t need it.

rule "panelcheck"
when
Item thpkwhelligkeit changed or
Item thpwwhelligkeit changed
then
var brightness = (thpkwhelligkeit.state as Number) + (thpwwhelligkeit.state as Number)
if (brightness > 100) {
	if ((thpkwhelligkeit.state as Number) > (thpwwhelligkeit.state as Number)) {
	var tmp = 100 - (thpkwhelligkeit.state as Number)
	thpwwhelligkeit.sendCommand (tmp)
	}
		else {
		var tmp = 100 - (thpwwhelligkeit.state as Number)
		thpkwhelligkeit.sendCommand (tmp)
		}
}

end

BETA firmware 1.9.3_RC3 are released. It’s stable to be used for anyone who has a these issues:

All devices (excluding battery powered)

  • Slow reaction from cloud, Alexa or Google home. Frequently cloud disconnecting.
  • HomeAssitant, OpenHab, Homey and other 3-th party integration: Unstable connection and delay responses over CoAP

Shelly 2.5

  • Special test script is added which should fix disconnecting issue. To see the result you can check: http://deviceIP/status
    The result should look:
    “arpchk_resets”: 3,“arpchk_results”:0
    arpchk_resets: how much time device detect that is disconnected
    arpchk_results: how much time successfully restore connection
    If this is work we will push the fix to official release.

  • Shelly Bulb
    Sunrise and Sunset scheduling do not change brightness is fixed

  • Shelly Dimmer1 and Dimmer2
    Light is switched off and overpower message appear or there is no error message - fixed.

How to update:
Open device by IP. Update it from Settings -> Firmware update->Bera. You can revert it anytime.

Please note: THIS IS A BETA I would just install it when you are affected by one of the the fixed issues. Please provide feedback if the CoAP issues is fixed or not (as I understood it didn’t solved @rickitaly’s Shelly 1 problem). I’m in direct contact with the Alterco/Shelly QA and could forward the information.

1 Like

Info from Alterco: “We now add 2xCCD leds support to RGBW2 … should be ready in January.”

2 Likes

Could you please provide a TRACE log (ideally Shelly 1 only) with firmware 1.9.3rc3. I’m in contact with Alterco. From their point of view the problem should be fixed with this beta, if not we need additional information.

Since 20:55:00.000 i’v been continuously switching the relay from mqtt and from phisical switch, this is all i have in the log TRACE for that specific Shelly1

2020-12-03 20:55:16.949 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-03 20:55:16.952 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-03 20:55:17.057 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"20:55","unixtime":1607028917,"serial":57,"has_update":true,"mac":"xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":39188,"fs_size":233681,"fs_free":145580,"uptime":94470}
2020-12-03 20:55:17.060 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-03 20:55:17.063 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-03 20:55:17.210 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"20:55","unixtime":1607028917,"serial":57,"has_update":true,"mac":"xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38980,"fs_size":233681,"fs_free":145580,"uptime":94470}

I need the complete initialization

Since reboot this is it.
I tried to switch lights from both mqtt and switch.

2020-12-04 07:51:02.335 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Paris'.
2020-12-04 07:51:02.387 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'it_IT'.
2020-12-04 07:51:14.323 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'studio.items'
2020-12-04 07:51:16.279 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'shelly.things'
2020-12-04 07:51:16.419 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'brokers.things'
2020-12-04 07:51:19.559 [INFO ] [.core.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2020-12-04 07:51:19.962 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.rules'
2020-12-04 07:51:24.289 [INFO ] [org.openhab.ui.internal.UIService   ] - Started UI on port 8080
2020-12-04 07:51:25.487 [INFO ] [ab.ui.habpanel.internal.HABPanelTile] - Started HABPanel at /habpanel
2020-12-04 07:51:25.736 [DEBUG] [shelly.internal.ShellyHandlerFactory] - Activate Shelly HandlerFactory
2020-12-04 07:51:25.906 [DEBUG] [shelly.internal.ShellyHandlerFactory] - Using OH HTTP port 8080
2020-12-04 07:51:26.440 [DEBUG] [shelly.internal.ShellyHandlerFactory] - Shelly 1 Studio: Create new thing of type shelly:shelly1 using ShellyRelayHandler
2020-12-04 07:51:26.774 [DEBUG] [elly.internal.api.ShellyEventServlet] - ShellyEventServlet started at '/shelly/event'
2020-12-04 07:51:26.795 [DEBUG] [discovery.ShellyDiscoveryParticipant] - Activating ShellyDiscovery service
2020-12-04 07:51:27.099 [TRACE] [discovery.ShellyDiscoveryParticipant] - shelly1-xxxxxx: Shelly device discovered with empty IP address (service-name=[ServiceInfoImpl@6238859 name: 'shelly1-xxxxxx._http._tcp.local.' address: '(null):0' status: 'DNS: raspberrypi-lan.local. [raspberrypi.lan/192.168.1.192] state: probing 1 task: null', has NO data
	shelly1-xxxxxx._http._tcp.local.: ])
2020-12-04 07:51:27.111 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shelly1-xxxxxx: Shelly device discovered: IP-Adress=192.168.1.86, type=shelly1
2020-12-04 07:51:27.161 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/settings
2020-12-04 07:51:27.465 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.221' with clientid fa1ceca3-1387-4a89-9b1b-8701d0ef0d0f
2020-12-04 07:51:27.890 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"device":{"type":"SHSW-1","mac":"CC50E3xxxxxx","hostname":"shelly1-xxxxxx","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-xxxxxx","key":""},"wifi_sta":{"enabled":true,"ssid":"xxxxxx-xxxxxx","ipv4_method":"static","ip":"192.168.1.86","gw":"192.168.1.254","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":true,"server":"192.168.1.221:1883","user":"rick","id":"shelly1-xxxxxx","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":2,"retain":false,"update_period":30},"coiot": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":null,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","factory_reset_from_switch":true,"discoverable":true,"build_info":{"build_id":"20201202-135844/v1.9.3-rc3@50c6ab57","build_timestamp":"2020-12-02T13:58:44Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":xx.xxxxxx,"lng":yy.yyyyyy,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"07:51","unixtime":1607068288,"ext_switch_enable":false,"ext_switch_reverse":false,"ext_switch":{"0":{"relay_num":-1}},"actions":{"active":false,"names":["btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","lp_on_url","lp_off_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-2018-08", "batch_id":2},"mode" :"relay","longpush_time":800,"relays":[{"name":null,"appliance_type":"General","ison":true,"has_timer":false,"default_state":"last","btn_type":"edge","btn_reverse":0,"auto_on":0.00,"auto_off":0.00,"power":0.00,"schedule":false,"schedule_rules":[]}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{}}
2020-12-04 07:51:27.922 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shelly1-xxxxxx: Shelly settings : {"device":{"type":"SHSW-1","mac":"CC50E3xxxxxx","hostname":"shelly1-xxxxxx","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-xxxxxx","key":""},"wifi_sta":{"enabled":true,"ssid":"xxxxxx-xxxxxx","ipv4_method":"static","ip":"192.168.1.86","gw":"192.168.1.254","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":true,"server":"192.168.1.221:1883","user":"rick","id":"shelly1-xxxxxx","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":2,"retain":false,"update_period":30},"coiot": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":null,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","factory_reset_from_switch":true,"discoverable":true,"build_info":{"build_id":"20201202-135844/v1.9.3-rc3@50c6ab57","build_timestamp":"2020-12-02T13:58:44Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":xx.xxxxxx,"lng":yy.yyyyyy,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"07:51","unixtime":1607068288,"ext_switch_enable":false,"ext_switch_reverse":false,"ext_switch":{"0":{"relay_num":-1}},"actions":{"active":false,"names":["btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","lp_on_url","lp_off_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-2018-08", "batch_id":2},"mode" :"relay","longpush_time":800,"relays":[{"name":null,"appliance_type":"General","ison":true,"has_timer":false,"default_state":"last","btn_type":"edge","btn_reverse":0,"auto_on":0.00,"auto_off":0.00,"power":0.00,"schedule":false,"schedule_rules":[]}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{}}
2020-12-04 07:51:27.925 [TRACE] [discovery.ShellyDiscoveryParticipant] - shelly1-xxxxxx: thingType=shelly1, deviceType=SHSW-1, mode=relay, symbolic name=
2020-12-04 07:51:27.929 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shelly1-xxxxxx: Adding Shelly , UID=shelly:shelly1:xxxxxx
2020-12-04 07:51:28.515 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Thing name derived from UID shelly:shelly1:xxxxxx
2020-12-04 07:51:28.519 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Device config: IP address=192.168.1.86, HTTP user/password=<non>/<none>, update interval=60
2020-12-04 07:51:28.521 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Configured Events: Button: false, Switch (on/off): false, Push: false, Roller: true, Sensor: true, CoIoT: true, Enable AutoCoIoT: true
2020-12-04 07:51:28.529 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Start initializing thing Shelly 1 Studio, type shelly1, ip address 192.168.1.86, CoIoT: true
2020-12-04 07:51:28.534 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/shelly
2020-12-04 07:51:28.561 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"type":"SHSW-1","mac":"CC50E3xxxxxx","auth":false,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","num_outputs":1}
2020-12-04 07:51:28.564 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/settings
2020-12-04 07:51:28.797 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"device":{"type":"SHSW-1","mac":"CC50E3xxxxxx","hostname":"shelly1-xxxxxx","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-xxxxxx","key":""},"wifi_sta":{"enabled":true,"ssid":"xxxxxx-xxxxxx","ipv4_method":"static","ip":"192.168.1.86","gw":"192.168.1.254","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":true,"server":"192.168.1.221:1883","user":"rick","id":"shelly1-xxxxxx","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":2,"retain":false,"update_period":30},"coiot": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":null,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","factory_reset_from_switch":true,"discoverable":true,"build_info":{"build_id":"20201202-135844/v1.9.3-rc3@50c6ab57","build_timestamp":"2020-12-02T13:58:44Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":xx.xxxxxx,"lng":yy.yyyyyy,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"07:51","unixtime":1607068289,"ext_switch_enable":false,"ext_switch_reverse":false,"ext_switch":{"0":{"relay_num":-1}},"actions":{"active":false,"names":["btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","lp_on_url","lp_off_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-2018-08", "batch_id":2},"mode" :"relay","longpush_time":800,"relays":[{"name":null,"appliance_type":"General","ison":true,"has_timer":false,"default_state":"last","btn_type":"edge","btn_reverse":0,"auto_on":0.00,"auto_off":0.00,"power":0.00,"schedule":false,"schedule_rules":[]}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{}}
2020-12-04 07:51:28.814 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Initializing device shelly1-xxxxxx, type SHSW-1, Hardware: Rev: prod-2018-08, batch 2; Firmware: v1.9.3-rc3 / 20201202-135844 (50c6ab57)
2020-12-04 07:51:28.816 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Shelly settings info for shelly1-xxxxxx: {"device":{"type":"SHSW-1","mac":"CC50E3xxxxxx","hostname":"shelly1-xxxxxx","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-xxxxxx","key":""},"wifi_sta":{"enabled":true,"ssid":"xxxxxx-xxxxxx","ipv4_method":"static","ip":"192.168.1.86","gw":"192.168.1.254","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":true,"server":"192.168.1.221:1883","user":"rick","id":"shelly1-xxxxxx","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":2,"retain":false,"update_period":30},"coiot": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":null,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","factory_reset_from_switch":true,"discoverable":true,"build_info":{"build_id":"20201202-135844/v1.9.3-rc3@50c6ab57","build_timestamp":"2020-12-02T13:58:44Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":xx.xxxxxx,"lng":yy.yyyyyy,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"07:51","unixtime":1607068289,"ext_switch_enable":false,"ext_switch_reverse":false,"ext_switch":{"0":{"relay_num":-1}},"actions":{"active":false,"names":["btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","lp_on_url","lp_off_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-2018-08", "batch_id":2},"mode" :"relay","longpush_time":800,"relays":[{"name":null,"appliance_type":"General","ison":true,"has_timer":false,"default_state":"last","btn_type":"edge","btn_reverse":0,"auto_on":0.00,"auto_off":0.00,"power":0.00,"schedule":false,"schedule_rules":[]}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{}}
2020-12-04 07:51:28.819 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Device hasRelays:true (numRelays=1),isRoller:false (numRoller=0),isDimmer:false,numMeter=0,isEMeter:false),isSensor:false,isDS:false,hasBattery:false,isSense:false,isLight:false,isBulb:false,isDuo:false,isRGBW2:false,inColor:false,updatePeriod:70sec
2020-12-04 07:51:28.821 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:51:28.929 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updated serrviceName to shelly1-xxxxxx
2020-12-04 07:51:28.953 [INFO ] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Device is running a Beta version: v1.9.3-rc3/20201202-135844 (50c6ab57),make sure this is newer than v1.5.7 release build.
2020-12-04 07:51:28.957 [INFO ] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: INFO: New firmware available: current version: 20201202-135844/v1.9.3-rc3@50c6ab57, new version: 20201124-091217/v1.9.0@57ac4ad8
2020-12-04 07:51:28.959 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Auto-CoIoT is enabled, disabling action urls
2020-12-04 07:51:28.963 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating channel definitions, 2 channels
2020-12-04 07:51:28.966 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Adding channel device#updateAvailable
2020-12-04 07:51:28.969 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Adding channel device#heartBeat
2020-12-04 07:51:28.987 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Channel definitions updated
2020-12-04 07:51:29.012 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-xxxxxx: Channel device#alarm updated with NONE (type class org.openhab.core.library.types.StringType).
2020-12-04 07:51:29.016 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Starting CoIoT (autoCoIoT=true/true)
2020-12-04 07:51:29.019 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: Starting CoAP Listener
2020-12-04 07:51:29.021 [DEBUG] [helly.internal.coap.ShellyCoapServer] - Initializing CoIoT listener (local IP=192.168.1.192:5683)
2020-12-04 07:51:29.140 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Thing successfully initialized.
2020-12-04 07:51:29.170 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Update status job started, interval=20*3=60sec.
2020-12-04 07:51:29.217 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: CoIoT Message from /192.168.1.86:5683 (MID=13052): {"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"sensor_0"},{"I":3,"D":"sensor_1"},{"I":4,"D":"sensor_2"},{"I":5,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":5},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":2101,"T":"S","D":"input","R":"0/1","L":1},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":2},{"I":3102,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":2},{"I":3201,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":3},{"I":3202,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":3},{"I":3301,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":4},{"I":3302,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":4},{"I":3103,"T":"H","D":"humidity","R":["0/100","999"],"L":2},{"I":3117,"T":"S","D":"extInput","R":"0/1","L":2}]}
2020-12-04 07:51:29.227 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Properties updated
2020-12-04 07:51:29.231 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: CoIoT Version 2 detected
2020-12-04 07:51:29.236 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: CoIoT Device Description for SHSW-1#xxxxxx#2: {"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"sensor_0"},{"I":3,"D":"sensor_1"},{"I":4,"D":"sensor_2"},{"I":5,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":5},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":2101,"T":"S","D":"input","R":"0/1","L":1},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":2},{"I":3102,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":2},{"I":3201,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":3},{"I":3202,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":3},{"I":3301,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":4},{"I":3302,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":4},{"I":3103,"T":"H","D":"humidity","R":["0/100","999"],"L":2},{"I":3117,"T":"S","D":"extInput","R":"0/1","L":2}]}
2020-12-04 07:51:29.240 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id=1: relay_0
2020-12-04 07:51:29.241 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id=2: sensor_0
2020-12-04 07:51:29.243 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id=3: sensor_1
2020-12-04 07:51:29.244 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id=4: sensor_2
2020-12-04 07:51:29.245 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id=5: device
2020-12-04 07:51:29.253 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Properties updated
2020-12-04 07:51:29.254 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: Adding 13 sensor definitions
2020-12-04 07:51:29.255 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=5
2020-12-04 07:51:29.256 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 1101: output, Type=S, Range=0/1, Links=1
2020-12-04 07:51:29.257 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 2101: input, Type=S, Range=0/1, Links=1
2020-12-04 07:51:29.259 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 2102: inputEvent, Type=EV, Range=S/L;, Links=1
2020-12-04 07:51:29.260 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2020-12-04 07:51:29.261 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3101: extTemp, Type=T, Range=-55/125;999, Links=2
2020-12-04 07:51:29.262 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3102: extTemp, Type=T, Range=-67/257;999, Links=2
2020-12-04 07:51:29.263 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3201: extTemp, Type=T, Range=-55/125;999, Links=3
2020-12-04 07:51:29.264 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3202: extTemp, Type=T, Range=-67/257;999, Links=3
2020-12-04 07:51:29.265 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3301: extTemp, Type=T, Range=-55/125;999, Links=4
2020-12-04 07:51:29.266 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3302: extTemp, Type=T, Range=-67/257;999, Links=4
2020-12-04 07:51:29.267 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3103: humidity, Type=H, Range=0/100;999, Links=2
2020-12-04 07:51:29.268 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:    id 3117: extInput, Type=S, Range=0/1, Links=2
2020-12-04 07:51:29.439 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: CoIoT Message from /192.168.1.86:5683 (MID=13053): {"G":[[0,9103,1],[0,1101,1],[0,2101,0],[0,2102,""],[0,2103,0]]}
2020-12-04 07:51:29.441 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: CoIoT Sensor data {"G":[[0,9103,1],[0,1101,1],[0,2101,0],[0,2102,""],[0,2103,0]]} (serial=15872)
2020-12-04 07:51:29.442 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: 5 CoAP sensor updates received
2020-12-04 07:51:29.443 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:  Sensor value[0]: id=9103, Value=1.0 (cfgChanged, Type=EVC, Range=U16, Link=5: device)
2020-12-04 07:51:29.445 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:  Sensor value[1]: id=1101, Value=1.0 (output, Type=S, Range=0/1, Link=1: relay_0)
2020-12-04 07:51:29.446 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:  Sensor value[2]: id=2101, Value=0.0 (input, Type=S, Range=0/1, Link=1: relay_0)
2020-12-04 07:51:29.447 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:  Sensor value[3]: id=2102, Value=-1.0 (inputEvent, Type=EV, Range=S/L;, Link=1: relay_0)
2020-12-04 07:51:29.449 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx:  Sensor value[4]: id=2103, Value=0.0 (inputEventCnt, Type=EVC, Range=U16, Link=1: relay_0)
2020-12-04 07:51:29.459 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-xxxxxx: Channel relay#output updated with ON (type class org.openhab.core.library.types.OnOffType).
2020-12-04 07:51:29.460 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-xxxxxx: 1 channels updated from CoIoT status, serial=15872
2020-12-04 07:51:31.167 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/settings
2020-12-04 07:51:31.401 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"device":{"type":"SHSW-1","mac":"CC50E3xxxxxx","hostname":"shelly1-xxxxxx","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-xxxxxx","key":""},"wifi_sta":{"enabled":true,"ssid":"xxxxxx-xxxxxx","ipv4_method":"static","ip":"192.168.1.86","gw":"192.168.1.254","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":true,"server":"192.168.1.221:1883","user":"rick","id":"shelly1-xxxxxx","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":2,"retain":false,"update_period":30},"coiot": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":null,"fw":"20201202-135844/v1.9.3-rc3@50c6ab57","factory_reset_from_switch":true,"discoverable":true,"build_info":{"build_id":"20201202-135844/v1.9.3-rc3@50c6ab57","build_timestamp":"2020-12-02T13:58:44Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Rome","lat":xx.xxxxxx,"lng":yy.yyyyyy,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"07:51","unixtime":1607068292,"ext_switch_enable":false,"ext_switch_reverse":false,"ext_switch":{"0":{"relay_num":-1}},"actions":{"active":false,"names":["btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","lp_on_url","lp_off_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-2018-08", "batch_id":2},"mode" :"relay","longpush_time":800,"relays":[{"name":null,"appliance_type":"General","ison":true,"has_timer":false,"default_state":"last","btn_type":"edge","btn_reverse":0,"auto_on":0.00,"auto_off":0.00,"power":0.00,"schedule":false,"schedule_rules":[]}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{}}
2020-12-04 07:51:31.426 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-04 07:51:31.438 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:51:31.532 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068292,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38652,"fs_size":233681,"fs_free":145580,"uptime":133843}
2020-12-04 07:51:31.537 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-04 07:51:31.540 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-04 07:51:31.691 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-59},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068292,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38652,"fs_size":233681,"fs_free":145580,"uptime":133843}
2020-12-04 07:51:31.710 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: 3 more updates requested
2020-12-04 07:51:34.712 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-04 07:51:34.714 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:51:34.818 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068295,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38616,"fs_size":233681,"fs_free":145580,"uptime":133847}
2020-12-04 07:51:34.822 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-04 07:51:34.824 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-04 07:51:34.968 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068295,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38648,"fs_size":233681,"fs_free":145580,"uptime":133847}
2020-12-04 07:51:34.971 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: 2 more updates requested
2020-12-04 07:51:37.973 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-04 07:51:37.975 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:51:38.079 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-59},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068298,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38656,"fs_size":233681,"fs_free":145580,"uptime":133850}
2020-12-04 07:51:38.083 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-04 07:51:38.086 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-04 07:51:38.209 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-60},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068298,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38640,"fs_size":233681,"fs_free":145580,"uptime":133850}
2020-12-04 07:51:38.215 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: 1 more updates requested
2020-12-04 07:51:41.217 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-04 07:51:41.218 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:51:41.318 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-62},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068302,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38652,"fs_size":233681,"fs_free":145580,"uptime":133853}
2020-12-04 07:51:41.320 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-04 07:51:41.322 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-04 07:51:41.431 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-62},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:51","unixtime":1607068302,"serial":62,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":38636,"fs_size":233681,"fs_free":145580,"uptime":133853}
2020-12-04 07:51:41.442 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: 0 more updates requested
2020-12-04 07:52:29.451 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Updating status
2020-12-04 07:52:29.453 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status
2020-12-04 07:52:29.553 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-67},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:52","unixtime":1607068350,"serial":66,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":39228,"fs_size":233681,"fs_free":145580,"uptime":133901}
2020-12-04 07:52:29.558 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-xxxxxx: Updating 1 relay(s)
2020-12-04 07:52:29.560 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP GET for http://192.168.1.86/status/relay/0
2020-12-04 07:52:29.720 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-xxxxxx: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"xxxxxx-xxxxxx","ip":"192.168.1.86","rssi":-66},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":true},"time":"07:52","unixtime":1607068350,"serial":66,"has_update":true,"mac":"CC50E3xxxxxx","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"mqtt"}],"meters":[{"power":0.00,"is_valid":true}],"inputs":[{"input":0,"event":"","event_cnt":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"pending","has_update":true,"new_version":"20201124-091217/v1.9.0@57ac4ad8","old_version":"20201202-135844/v1.9.3-rc3@50c6ab57","beta_version":"20201202-135844/v1.9.3-rc3@50c6ab57"},"ram_total":50736,"ram_free":39028,"fs_size":233681,"fs_free":145580,"uptime":133901}
2020-12-04 07:52:29.727 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shelly1-xxxxxx: Enabling channel cache (20 updates / 60s)