Shelly Binding

Thanks for the quick reply. All dw2 are on firmware v1.9.4/20210115 as proposed by the Shelly Manager (btw. thanks for this great diagnosis tool).
I’ll check with the new firmware as soon as its published.

**New firmware 1.10 *

Allterco is release 1.10. This includes a lot of fixes and new features for all devices, details could be found here: API Reference. The description is technical / on the API level. Nevertheless I could say that many things have fixed, WiFi connectivity has been improved, Dimmer2 setup became easier etc.

Be careful upgrading your devices. A new major release could always create some backward compatibility issues working together with the binding. I didn’t had the time to do intense testing, there where various release candidates last week and it was hard to catch-up.

Please help on getting a status of 1.10+latest DEV build, include device type and firmware version details (Shown in Shelly Manager) on bug reports.

There are also some new features I’ll integrate into the binding during the next days, but first focus on compatibility.

Have fun :slight_smile:

I’m not sure how to switch between this… It should be multicast, correct?

I have the devices configured as below using the defaults whereever its possible:

Thing shelly:shellydw2:xxxxxxxxxxxxxx    "Eingangstür" @ "Hallway" 	[deviceIp="192.168.178.80", userId="xxxxxxx", password="xxxxxxxxxx"]

I was currious and I updated the FW of the device to Beta 1.10 RC5. After a reboot of OH and door open & close I had the following lines in the log:

2021-03-18 09:48:28.681 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellydw2-xxxxx: Shelly device discovered: IP-Adress=192.168.178.80, type=shellydw2
2021-03-18 09:48:28.715 [INFO ] [discovery.ShellyDiscoveryParticipant] - shellydw2-xxxxx: Das Gerät mit der IP-Adresse 192.168.178.80 ist zugriffsgeschützt und keine Zugangsdaten konfiguriert.
2021-03-18 09:48:28.715 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellydw2-xxxxx: Adding Shelly , UID=shelly:shellydevice:xxxxx

The hint regarding the credentials is something that appears for all dw2 devices and doesn’t seem to be something specific for this device.

Additionally I have this:

2021-03-18 09:50:41.633 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@425747360 name: 'shellydw2-xxxxx._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.178.54 [/192.168.178.54] state: probing 1 task: null', has NO data, empty]
2021-03-18 09:50:41.636 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@567779247 name: 'shellydw2-xxxxx._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.178.87 [/192.168.178.87] state: probing 1 task: null', has NO data, empty]

…which is little bit different from my other dw2 where I receive the following:

2021-03-18 09:50:21.635 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@1402420286 name: 'shellydw2-yyyyy._http._tcp.local.' address: '(null):0' status: 'DNS: JmDNS-/192.168.178.87 [/192.168.178.87] state: probing 1 task: null', has NO data shellydw2-yyyyy._http._tcp.local.: ]

I recognized that the device xxxxx has entries with two different JmDNS addresses 87 & 54 while the functional device yyyyy has 87 only.
“192.168.178.87” is the Wi-Fi address of NUC where OH is located and 54 is the LAN IP of the NUC…
Could it be that:

  • The other dw2 are communicating with my OH using the Wi-Fi as they are close enough
  • The dw2 with the issue is using the mesh AP and thus communicates via LAN and in parallel with Wi-Fi

Please let me know if this helps or if I should try something else…

Edited:

These appeared at the log:

2021-03-18 10:39:36.868 [DEBUG] [nternal.manager.ShellyManagerServlet] - ShellyManagerServlet: HTTP/1.1 Request from 192.168.178.43:54706/shelly/manager/overview?{uid=[shelly:shellydw2:xxxxx],action=[refresh]}
2021-03-18 10:39:37.719 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxx: Status update triggered thing initialization
2021-03-18 10:39:37.719 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxx: Start initializing thing Eingangstür, type shellydw2, ip address 192.168.178.80, CoIoT: true
2021-03-18 10:39:37.719 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxx: Stopping CoAP Listener
2021-03-18 10:39:37.720 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxx: CoAP Request was canceled
2021-03-18 10:39:37.720 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxx: Starting CoAP Listener

Ok, so I’ve updated to the dev binding, and the device is added via paper ui (rather than thing file). I should probably figure our if CoIot/Coap is getting through as openhab is docker, and shelly in in a different vlan for iot devices.

Here’s a trace from when I woke up the device:

08:21:39.482 [DEBUG] [.discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly device discovered: IP-Adress=192.168.100.38, type=shellyht
08:21:39.488 [TRACE] [ing.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/settings
08:21:39.586 [TRACE] [ing.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP Response 200: {"device":{"type":"SHHT-1","mac":"8C2131313132","hostname":"shellyht-74E3D3","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-74E3D3","key":""},"wifi_sta":{"enabled":true,"ssid":"IOT","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"mqtt.domain.com:1883","user":"","id":"ht-01","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":">B/eeV","name":"SHELLY-HT-01","fw":"20210318-140427/v1.10.0-geba262d","discoverable":false,"build_info":{"build_id":"20210318-140427/v1.10.0-geba262d","build_timestamp":"2021-03-18T14:04:27Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":false},"timezone":"Pacific/Auckland","lat":-313.123123,"lng":1.22213,"tzautodetect":true,"tz_utc_offset":46800,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["report_url","temp_over_url","temp_under_url","hum_over_url","hum_under_url"]},"sensors":{"temperature_threshold":0.5,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"external_power":0,"temperature_offset":0.0,"humidity_offset":0.0}
08:21:39.591 [DEBUG] [.discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly settings : {"device":{"type":"SHHT-1","mac":"8C2131313132","hostname":"shellyht-74E3D3","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-74E3D3","key":""},"wifi_sta":{"enabled":true,"ssid":"IOT","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"mqtt.domain.com:1883","user":"","id":"ht-01","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":">B/eeV","name":"SHELLY-HT-01","fw":"20210318-140427/v1.10.0-geba262d","discoverable":false,"build_info":{"build_id":"20210318-140427/v1.10.0-geba262d","build_timestamp":"2021-03-18T14:04:27Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":false},"timezone":"Pacific/Auckland","lat":-11231.1741,"lng":1.2123132,"tzautodetect":true,"tz_utc_offset":46800,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["report_url","temp_over_url","temp_under_url","hum_over_url","hum_under_url"]},"sensors":{"temperature_threshold":0.5,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"external_power":0,"temperature_offset":0.0,"humidity_offset":0.0}
08:21:39.594 [TRACE] [.discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: thingType=shellyht, deviceType=SHHT-1, mode=<standard>, symbolic name=SHELLY-HT-01
08:21:39.595 [DEBUG] [.discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Adding Shelly SHELLY-HT-01, UID=shelly:shellyht:74e3d3
08:26:13.697 [DEBUG] [.discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@289879515 name: 'shellyht-74E3D3._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.10.27 [/192.168.10.27] state: probing 1 task: null', has NO data, empty]

But nothing seems to get into openhab.

Should the shelly manager work in my normal openahb instance on port 8080, or do I need to change it’s port (and recreate the container) to set another port for it? as I get a 404 to http://openhab:8080/shelly/manager, with my openhab dashboard being http://openhab:8080/start/index

Oh…I may have just got updates working…I went into paper ui to the thing defintion and turned on Enable Sensor Events, I guess I assumed this might have been turned on by default

Hello,
I have added Shelly1PM to Shelly network, upgraded the firmware and now I can add it to OH3. I cant see it in the Inbox. all other Shellys, which I added earlier (1+ months) are working fine.
What should I do to add it to OH3?
Tried:
OH Reboot
Shelly reboot
ColoT on/off in the binding
Autodiscovery on on Shelly

Thanks!

And no, agan it doesn’t seem to be updating when the sensor is triggered.

2021-03-19 12:55:25.932 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly settings : {"device":{"type":"SHHT-1","mac":"8C2131313132","hostname":"shellyht-74E3D3","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-74E3D3","key":""},"wifi_sta":{"enabled":true,"ssid":"IOT","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"mqtt.domain.com:1883","user":"","id":"ht-01","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":">B/eeV","name":"SHELLY-HT-01","fw":"20210318-140427/v1.10.0-geba262d","discoverable":false,"build_info":{"build_id":"20210318-140427/v1.10.0-geba262d","build_timestamp":"2021-03-18T14:04:27Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":false},"timezone":"Pacific/Auckland","lat":-313.123123,"lng":1.22213,,"tzautodetect":true,"tz_utc_offset":46800,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["report_url","temp_over_url","temp_under_url","hum_over_url","hum_under_url"]},"sensors":{"temperature_threshold":0.5,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"external_power":0,"temperature_offset":0.0,"humidity_offset":0.0}
2021-03-19 12:55:25.933 [TRACE] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: thingType=shellyht, deviceType=SHHT-1, mode=<standard>, symbolic name=SHELLY-HT-01
2021-03-19 12:55:25.934 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Adding Shelly SHELLY-HT-01, UID=shelly:shellyht:74e3d3
2021-03-19 12:57:40.958 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@1342503849 name: 'shellyht-74E3D3._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.10.27 [/192.168.10.27] state: probing 1 task: null', has NO data, empty]
2021-03-19 13:00:15.538 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-19 13:00:15.539 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-19 13:00:16.363 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device

So the device wakes up and gets discovered by openhab, but then nothing else seem to happen. And the temperature in openhab hasn’t updated since I forcilbly woke the device up earlier.

If if turn on mqtt, will it turn of the coap/coIot updates?

Please update to 1.10rc7 or 1.10 final

Go to the OH Network Settings and select the interface you want to use. Having both interfaces active might cause issues (just an assumption).

Open the device UP, there is a section Settings->COAP

  • enter the OH ip address → sets unicast
  • leave empty → sets Multicast
    You should prefer Unicast if there is no reason for Multicast

This is not just a hint. I would expect that you activated password protection for the device. 2nd indicator is the device name incl. shellydevice rather than the device type.
Please check device UI. You could set the credentials in the binding settings (default) or thing config (per thing). When using binding settings you should delete and re-discover the thing(s).

Are you using the DEV build?


Latest DEV builds: 2.5.13 - 3.1.0 - README - Installation - Avdanced Users - Shelly Manager - Bugs/Features - Firmware Index - Firmware Archive - API Doc
Note: The DEV build is always newer than the version in the official Distro or the Milestone builds (SNAPSHOTs); OH Distro 2.5 will not receive updates anymore, so you have to switch to DEV build when running OH 2.5, see installation notes.

I don’t see a wakeup. This shows regular initialization.

The binding does not process any mqqt traffic

Use Shelly Manager to check if you see CoIoT packets for the device.
If you are using firmware 1.10 try to set Settings->COAP to OH ip, this activates CoIoT Unicast and might bypass issues with network routing when using Multicast.

Those log entries are what the binding puts out when the device come back online…even though openhab has a thing entry already. And then the device goes back to sleep without any item updates

Yes I understand that, I would make an mqtt item to get the temperature. Just wanting to confirm if the device would still work with the binding as well?

See my previous replies re: shelly manager. With the .13 Dev snapshot, should I be able to see something at http://openhab:8080/shelly/manager? Or do I have to something or install something to get shelly manager working? If I go to that link I get a 404 not found error.

Yes, Shelly H&T as well as DW2 are fully supported

Please provide a full DEBUG log incl. initialization & wakeup, no sniplets

Initialisation of the binding? I can show that, but if the device it not awake to report a value, it just sits as unknown.

So I have a longer log here…I have a ping running as well and just moved the device to a warm spot, so it should wake up every 0.5 degree to report it’s temperature. But you can see from this log snipping a long period of nothing, then when I moved it to a warm spot it woke up to report a sensor reading…this is NOT from pressing the action button…is there a different method for a sensor report?

It was awake for about 20 seconds (I can see from teh ping) then went offline again.

2021-03-20 08:30:07.345 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:30:07.346 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:30:10.338 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:31:13.344 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:31:13.346 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:31:16.338 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:32:19.345 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:32:19.346 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:32:22.338 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:33:25.346 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:33:25.347 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:33:28.338 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:34:31.345 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:34:31.368 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:34:34.345 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:35:37.352 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:35:37.353 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:35:40.344 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:36:43.353 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:36:43.355 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:36:48.357 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:37:51.395 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:37:51.396 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:37:52.349 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:38:55.356 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:38:55.357 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:38:58.349 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:40:01.356 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:40:01.358 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:40:04.348 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:41:07.414 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:41:07.415 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:41:10.359 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:42:13.365 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:42:13.366 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:42:16.359 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:43:19.366 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:43:19.367 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:43:22.362 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:44:25.542 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:44:25.543 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:44:28.359 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:45:31.365 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:45:31.366 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:45:36.368 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:46:39.378 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:46:39.400 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:46:40.368 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:47:43.375 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:47:43.376 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:47:46.371 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:48:49.397 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:48:49.399 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:48:52.369 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:49:55.377 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:49:55.378 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:49:58.369 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:51:01.375 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:51:01.376 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:51:04.378 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:52:07.386 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:52:07.387 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:52:10.379 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:53:13.385 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:53:13.386 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:53:13.393 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:54:16.401 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:54:16.402 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:54:19.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:55:22.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:55:22.397 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:55:25.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:56:28.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:56:28.397 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:56:31.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:57:34.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:57:34.397 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:57:37.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:58:40.395 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:58:40.414 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:58:43.391 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 08:59:46.417 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 08:59:46.418 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 08:59:49.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:00:52.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:00:52.397 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:00:55.389 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:01:58.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:01:58.397 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:02:01.388 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:03:04.396 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:03:04.398 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:03:04.408 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:04:07.416 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:04:07.435 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:04:10.424 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:05:13.432 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:05:13.434 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:05:16.425 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:06:19.435 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:06:19.436 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:06:22.419 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:07:25.426 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:07:25.427 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:07:28.428 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:08:31.438 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:08:31.449 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:08:34.432 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:09:37.438 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:09:37.439 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:09:40.429 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:10:43.436 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:10:43.437 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:10:46.432 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:10:52.084 [TRACE] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly device discovered with empty IP address (service-name=[ServiceInfoImpl@1773926315 name: 'shellyht-74E3D3._http._tcp.local.' address: '(null):0' status: 'DNS: JmDNS-/192.168.10.27 [/192.168.10.27] state: probing 1 task: null', has NO data
        shellyht-74E3D3._http._tcp.local.: ])
2021-03-20 09:10:52.093 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly device discovered: IP-Adress=192.168.100.38, type=shellyht
2021-03-20 09:10:52.121 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/settings
2021-03-20 09:10:52.220 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP Response 200: {"device":{"type":"SHHT-1","mac":"242424","hostname":"shellyht-74E3D3","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-74E3D3","key":""},"wifi_sta":{"enabled":true,"ssid":"IOT","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"mqtt:1883","user":"","id":"ht-01","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":">B/eeV","name":"SHELLY-HT-01","fw":"20210318-140427/v1.10.0-geba262d","discoverable":false,"build_info":{"build_id":"20210318-140427/v1.10.0-geba262d","build_timestamp":"2021-03-18T14:04:27Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":false},"timezone":"Pacific/Auckland","lat":999,"lng":999,"tzautodetect":true,"tz_utc_offset":46800,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["report_url","temp_over_url","temp_under_url","hum_over_url","hum_under_url"]},"sensors":{"temperature_threshold":0.5,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"external_power":0,"temperature_offset":0.0,"humidity_offset":0.0}
2021-03-20 09:10:52.231 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Shelly settings : {"device":{"type":"SHHT-1","mac":"242423424","hostname":"shellyht-74E3D3","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-74E3D3","key":""},"wifi_sta":{"enabled":true,"ssid":"IOT","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"mqtt:1883","user":"","id":"ht-01","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":">B/eeV","name":"SHELLY-HT-01","fw":"20210318-140427/v1.10.0-geba262d","discoverable":false,"build_info":{"build_id":"20210318-140427/v1.10.0-geba262d","build_timestamp":"2021-03-18T14:04:27Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":false},"timezone":"Pacific/Auckland","lat":0999,"lng":999,"tzautodetect":true,"tz_utc_offset":46800,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["report_url","temp_over_url","temp_under_url","hum_over_url","hum_under_url"]},"sensors":{"temperature_threshold":0.5,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"external_power":0,"temperature_offset":0.0,"humidity_offset":0.0}
2021-03-20 09:10:52.232 [TRACE] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: thingType=shellyht, deviceType=SHHT-1, mode=<standard>, symbolic name=SHELLY-HT-01
2021-03-20 09:10:52.233 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyht-74e3d3: Adding Shelly SHELLY-HT-01, UID=shelly:shellyht:74e3d3
2021-03-20 09:11:50.111 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:11:50.112 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:11:50.282 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:12:53.294 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@1302362264 name: 'shellyht-74E3D3._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.10.27 [/192.168.10.27] state: probing 1 task: null', has NO data, empty]
2021-03-20 09:12:53.308 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:12:53.309 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:12:56.281 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device
2021-03-20 09:13:59.363 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Updating status
2021-03-20 09:13:59.364 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyht-74e3d3: HTTP GET for http://192.168.100.38/status
2021-03-20 09:14:02.279 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-74e3d3: Ignore API Timeout for battery powered device

I had set openhab to Update internal of 65 seconds and enable CoIot Events and Enable sensor events.

I just had a look through the thing json and saw:

"properties": {
        "deviceType": "shellyht",
        "coapDeviceDescr": "{\"blk\":[{\"I\":1,\"D\":\"sensor_0\"},{\"I\":2,\"D\":\"device\"}],\"sen\":[{\"I\":9103,\"T\":\"EVC\",\"D\":\"cfgChanged\",\"R\":\"U16\",\"L\":2>        "statsTimeoutsRecovered": "0",
        "modelId": "SHHT-1",
        "updateNewVersion": "",
        "statsTimeoutErrors": "3",
        "numberMeters": "0",
        "serviceName": "shellyht-74e3d3",
        "deviceName": "SHELLY-HT-01",
        "numberRollers": "0",
        "coiotAutoRefresh": "false",
        "wifiNetwork": "IOT",
        "macAddress": "87687686",
        "updateCurrentVersion": "20210318-140427/v1.10.0-geba262d",
        "deviceMode": "",
        "numberRelays": "0",
        "coapVersion": "2",
        "devUpdatePeriod": "43800",
        "vendor": "Shelly",
        "updateStatus": "unknown",
        "coiotAutoEnable": "false",
        "firmwareVersion": "/20210318-140427()",
        "updateAvailable": "no"

the coiotAutoRefresh and coiotAutoEnable being false, is that right? I’m just looking for anything here.

So further to this…finally after 24 hours the device seemed to be awake for that reporting period when openhab was polling for a value. Does that mean I should have the update internal to less that 65 seconds. Does that have any impact on the openhab machine?

After changing it to 10 seconds (and having moved device to somewhere warm where it’s triggering a sensor report), it’s now working. But if the device is only going to report temps say every hour, openhab it trying to hit it every 10 seconds, seems a little inefficient.

I see no CoIoT evens, make sure

  • AutoCoIoT is enabed in binding settings
    you need to to Coap initialization in the log

No need for playing with the refresh interval. CoIoT has to work

I see that you are not running the latest DEV buid

Latest DEV builds: 2.5.13 - 3.1.0 - README - Installation - Avdanced Users - Shelly Manager - Bugs/Features - Firmware Index - Firmware Archive - API Doc
Note: The DEV build is always newer than the version in the official Distro or the Milestone builds (SNAPSHOTs); OH Distro 2.5 will not receive updates anymore, so you have to switch to DEV build when running OH 2.5, see installation notes.

I asked this a couple of weeks ago but since this is still not working for me I’m wondering why this only seems to be an issue for me: I always get 0 from the total power and last minute power channels. I’m on the latest DEV build and I see the same behaviour for Shelly 1, 2.5, Dimmer 2 and Plug-S. Has anyone got any ideas what could be wrong?

OH3.0.1 and Shelly 1PM 20210318-141402/v1.10.0-geba262d
So no beta/devs I hope.

EDIT: Solved. I have entered name for device type and it works now!

Hi, I controlled a dimmer2 with an I3.
I3 trigger is going well
I have pinned the button directly on the dimmer2 and the triggers of the dimmer2 do not work. Neither ‘button’ nor ‘button1’ or ‘button2’.
What’s wrong? The i3 trigger is shown in the log… From Dimmer2 buttons nothing is shown

In the webui is set detached.
When I set one button mode, the switch works.

could you a bit more clear, because as far as i know the dimmer doesn’t really have ‘buttons’ it has readable input and controllable outputs :slight_smile: not controllable inputs :slight_smile:

Switch inputs… :thinking:
Dimmer2 has 2 input channels
The brightness slider works in openhab