Shelly Binding

good job👍

Hi Markus,
In one of my shellys, I have the error:

15-Jun-2020 11:47:44.171 [TRACE] [.binding.shelly.internal.handler.ShellyBaseHandler] - shellyrgbw2-b0a4dc: Updating status
15-Jun-2020 11:47:44.173 [TRACE] [.openhab.binding.shelly.internal.api.ShellyHttpApi] - shellyrgbw2-b0a4dc: HTTP GET for http://172.16.12.35/status
15-Jun-2020 11:47:44.315 [TRACE] [.openhab.binding.shelly.internal.api.ShellyHttpApi] - shellyrgbw2-b0a4dc: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"IoT_EG_2G","ip":"172.16.12.35","rssi":-72},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"13:47","unixtime":1592228864,"serial":1,"has_update":false,"mac":"500291B0A4DC","mode":"white","input":0,"total_power":0.00,"lights":[{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":39}],"meters":[{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0}],"inputs":[{"input":0,"event":"","event_cnt":0}],"update":{"status":"idle","has_update":false,"new_version":"20200601-123254/v1.7.0@d7961837","old_version":"20200601-123254/v1.7.0@d7961837"},"ram_total":49416,"ram_free":37088,"ram_lwm":32488,"fs_size":233681,"fs_free":160389,"uptime":77}
15-Jun-2020 11:47:44.316 [TRACE] [.openhab.binding.shelly.internal.api.ShellyHttpApi] - shellyrgbw2-b0a4dc: HTTP GET for http://172.16.12.35/status
15-Jun-2020 11:47:44.476 [TRACE] [.openhab.binding.shelly.internal.api.ShellyHttpApi] - shellyrgbw2-b0a4dc: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"IoT_EG_2G","ip":"172.16.12.35","rssi":-73},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"13:47","unixtime":1592228864,"serial":1,"has_update":false,"mac":"500291B0A4DC","mode":"white","input":0,"total_power":0.00,"lights":[{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":50},{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":39}],"meters":[{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0},{"power":0.00,"is_valid":"true","overpower":"false","timestamp":1592228864,"counters":[0.000, 0.000, 0.000],"total":0}],"inputs":[{"input":0,"event":"","event_cnt":0}],"update":{"status":"idle","has_update":false,"new_version":"20200601-123254/v1.7.0@d7961837","old_version":"20200601-123254/v1.7.0@d7961837"},"ram_total":49416,"ram_free":37088,"ram_lwm":32488,"fs_size":233681,"fs_free":160389,"uptime":77}
15-Jun-2020 11:47:44.476 [TRACE] [binding.shelly.internal.handler.ShellyLightHandler] - shellyrgbw2-b0a4dc: Updating light status in white mode, 4 channel(s)
15-Jun-2020 11:47:44.477 [TRACE] [binding.shelly.internal.handler.ShellyLightHandler] - shellyrgbw2-b0a4dc: Colors loaded for lightId 0: power=OFF, RGBW=0/0/0/0, gain=0, brightness=50, color temp=0 (min=2700, max=6500
15-Jun-2020 11:47:44.477 [TRACE] [binding.shelly.internal.handler.ShellyLightHandler] - shellyrgbw2-b0a4dc: Colors loaded for lightId 1: power=OFF, RGBW=0/0/0/0, gain=0, brightness=50, color temp=0 (min=2700, max=6500
15-Jun-2020 11:47:44.477 [DEBUG] [.binding.shelly.internal.handler.ShellyBaseHandler] - shellyrgbw2-b0a4dc: Unable to update input, index is out of range (1/1
15-Jun-2020 11:47:44.478 [TRACE] [binding.shelly.internal.handler.ShellyLightHandler] - shellyrgbw2-b0a4dc: Colors loaded for lightId 2: power=OFF, RGBW=0/0/0/0, gain=0, brightness=50, color temp=0 (min=2700, max=6500
15-Jun-2020 11:47:44.479 [DEBUG] [.binding.shelly.internal.handler.ShellyBaseHandler] - shellyrgbw2-b0a4dc: Unable to update input, index is out of range (2/1
15-Jun-2020 11:47:44.479 [TRACE] [binding.shelly.internal.handler.ShellyLightHandler] - shellyrgbw2-b0a4dc: Colors loaded for lightId 3: power=ON, RGBW=0/0/0/0, gain=0, brightness=39, color temp=0 (min=2700, max=6500
15-Jun-2020 11:47:44.479 [DEBUG] [.binding.shelly.internal.handler.ShellyBaseHandler] - shellyrgbw2-b0a4dc: Unable to update input, index is out of range (3/1
15-Jun-2020 11:47:44.479 [TRACE] [.binding.shelly.internal.handler.ShellyBaseHandler] - shellyrgbw2-b0a4dc: Updating Meter (accumulated)

I found the error in the method updateInputs(https://github.com/openhab/openhab-addons/blob/2.5.x/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java) but cannot spot the problem. Is it the device or my openhab or something else?

I just reinstalled everything and it was working yesterday
 and not working today (no updates both ways)

The shelly is working in White mode, only channel 4 is connected to the light. I didn’t touch the hardware physically. I it was updated yesterday to the last firmware and currently, I am using the 2.5.5 milestone shelly binding.
A restart of the shelly did not help, but after a restart of openhab, it was working again. So maybe some kind of caching?
Anyway, problem gone, but maybe you can spot anything to improve :slight_smile:
PhiL

Dear markus,
i had a few day holiday, so my reply comes late.
I have disabled Auto.ColoT and the value changes not so often, 1-2 times per hour. I tryed also to create a log file. Please see attached, but I am not sure if this is correct, since I have done this the first time.
Peter

Since I am not allowed to upload a txt file, please see below:

2020-06-16 10:35:17.708 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyem3-68c63afb08a3: Updating status

2020-06-16 10:35:17.710 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for xxx

2020-06-16 10:35:17.807 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP Response 200: {“wifi_sta”:{“connected”:true,“ssid”:"-HOME-F",“ip”:“192.168.0.215”,“rssi”:-41},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“10:35”,“unixtime”:1592303717,“serial”:38272,“has_update”:false,“mac”:“68C63AFB08A3”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“is_valid”:true}],“emeters”:[{“power”:22.17,“pf”:0.44,“current”:0.21,“voltage”:234.55,“is_valid”:true,“total”:73973.6,“total_returned”:84.2},{“power”:126.57,“pf”:0.58,“current”:0.93,“voltage”:234.92,“is_valid”:true,“total”:33970.3,“total_returned”:78.7},{“power”:3.45,“pf”:0.05,“current”:0.28,“voltage”:235.32,“is_valid”:true,“total”:7232.1,“total_returned”:0.4}],“fs_mounted”:true,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123421/v1.7.0@d7961837”,“old_version”:“20200601-123421/v1.7.0@d7961837”},“ram_total”:48416,“ram_free”:31724,“ram_lwm”:23640,“fs_size”:233681,“fs_free”:158130,“uptime”:686690}

2020-06-16 10:35:17.809 [TRACE] [.internal.handler.ShellyRelayHandler] - shellyem3-68c63afb08a3: Updating 1 relay(s)

2020-06-16 10:35:17.810 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for xxx/status/relay/0

2020-06-16 10:35:17.907 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP Response 200: {“wifi_sta”:{“connected”:true,“ssid”:"-HOME-F",“ip”:“192.168.0.215”,“rssi”:-40},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“10:35”,“unixtime”:1592303717,“serial”:38272,“has_update”:false,“mac”:“68C63AFB08A3”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“is_valid”:true}],“emeters”:[{“power”:22.17,“pf”:0.44,“current”:0.21,“voltage”:234.55,“is_valid”:true,“total”:73973.6,“total_returned”:84.2},{“power”:126.57,“pf”:0.58,“current”:0.93,“voltage”:234.92,“is_valid”:true,“total”:33970.3,“total_returned”:78.7},{“power”:3.45,“pf”:0.05,“current”:0.28,“voltage”:235.32,“is_valid”:true,“total”:7232.1,“total_returned”:0.4}],“fs_mounted”:true,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123421/v1.7.0@d7961837”,“old_version”:“20200601-123421/v1.7.0@d7961837”},“ram_total”:48416,“ram_free”:31552,“ram_lwm”:23640,“fs_size”:233681,“fs_free”:158130,“uptime”:686690}

2020-06-16 10:35:17.909 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyem3-68c63afb08a3: Updating 3 e-meter(s)

2020-06-16 10:35:17.911 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter1#currentWatts updated with 22.2 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.917 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter1#totalKWH updated with 73.974 kWh (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.922 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter1#voltage updated with 234.6 V (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.929 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter2#totalKWH updated with 33.970 kWh (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.933 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter2#voltage updated with 234.9 V (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.938 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter3#currentWatts updated with 3.5 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.942 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter3#voltage updated with 235.3 V (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.946 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel device#accumulatedWatts updated with 152.2 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:17.950 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel device#accumulatedWTotal updated with 115.176 kWh (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:35:47.955 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyem3-68c63afb08a3: Updating status

2020-06-16 10:35:47.956 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for xxx/status

2020-06-16 10:35:48.076 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP Response 200: {“wifi_sta”:{“connected”:true,“ssid”:"-HOME-F",“ip”:“192.168.0.215”,“rssi”:-40},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“10:35”,“unixtime”:1592303747,“serial”:38272,“has_update”:false,“mac”:“68C63AFB08A3”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“is_valid”:true}],“emeters”:[{“power”:22.17,“pf”:0.44,“current”:0.22,“voltage”:233.91,“is_valid”:true,“total”:73973.6,“total_returned”:84.2},{“power”:125.85,“pf”:0.58,“current”:0.93,“voltage”:234.50,“is_valid”:true,“total”:33970.3,“total_returned”:78.7},{“power”:3.28,“pf”:0.05,“current”:0.28,“voltage”:234.79,“is_valid”:true,“total”:7232.1,“total_returned”:0.4}],“fs_mounted”:true,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123421/v1.7.0@d7961837”,“old_version”:“20200601-123421/v1.7.0@d7961837”},“ram_total”:48416,“ram_free”:31724,“ram_lwm”:23640,“fs_size”:233681,“fs_free”:158130,“uptime”:686720}

2020-06-16 10:35:48.079 [TRACE] [.internal.handler.ShellyRelayHandler] - shellyem3-68c63afb08a3: Updating 1 relay(s)

2020-06-16 10:35:48.081 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for xxx/status/relay/0

2020-06-16 10:35:48.177 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP Response 200: {“wifi_sta”:{“connected”:true,“ssid”:"-HOME-F",“ip”:“192.168.0.215”,“rssi”:-40},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“10:35”,“unixtime”:1592303747,“serial”:38272,“has_update”:false,“mac”:“68C63AFB08A3”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“is_valid”:true}],“emeters”:[{“power”:22.17,“pf”:0.44,“current”:0.22,“voltage”:233.91,“is_valid”:true,“total”:73973.6,“total_returned”:84.2},{“power”:125.85,“pf”:0.58,“current”:0.93,“voltage”:234.50,“is_valid”:true,“total”:33970.3,“total_returned”:78.7},{“power”:3.28,“pf”:0.05,“current”:0.28,“voltage”:234.79,“is_valid”:true,“total”:7232.1,“total_returned”:0.4}],“fs_mounted”:true,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123421/v1.7.0@d7961837”,“old_version”:“20200601-123421/v1.7.0@d7961837”},“ram_total”:48416,“ram_free”:31548,“ram_lwm”:23640,“fs_size”:233681,“fs_free”:158130,“uptime”:686721}

I found one dataset with the wrong calculation in the logfile:
In the below dataset the device#accumulatedWTotal is calculated wrong; Channel 1 value is missing. Instead of 41.202 kWh it should be 115.176 kWh

2020-06-16 10:37:18.965 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP Response 200: {“wifi_sta”:{“connected”:true,“ssid”:"-HOME-F",“ip”:“192.168.0.215”,“rssi”:-40},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“10:37”,“unixtime”:1592303838,“serial”:38272,“has_update”:false,“mac”:“68C63AFB08A3”,“relays”:[{“ison”:false,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“is_valid”:true}],“emeters”:[{“power”:21.90,“pf”:0.44,“current”:0.21,“voltage”:233.70,“is_valid”:true,“total”:73973.6,“total_returned”:84.2},{“power”:125.44,“pf”:0.57,“current”:0.93,“voltage”:234.27,“is_valid”:true,“total”:33970.3,“total_returned”:78.7},{“power”:3.31,“pf”:0.05,“current”:0.28,“voltage”:234.54,“is_valid”:true,“total”:7232.1,“total_returned”:0.4}],“fs_mounted”:true,“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20200601-123421/v1.7.0@d7961837”,“old_version”:“20200601-123421/v1.7.0@d7961837”},“ram_total”:48416,“ram_free”:31720,“ram_lwm”:23640,“fs_size”:233681,“fs_free”:158130,“uptime”:686811}

2020-06-16 10:37:18.968 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyem3-68c63afb08a3: Updating 3 e-meter(s)

2020-06-16 10:37:18.975 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter2#currentWatts updated with 125.4 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:37:18.980 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter2#powerFactor updated with 0.57 (type class org.eclipse.smarthome.core.library.types.DecimalType).

2020-06-16 10:37:18.983 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter3#currentWatts updated with 3.3 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:37:18.987 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel meter3#voltage updated with 234.5 V (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:37:18.993 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel device#accumulatedWatts updated with 128.8 W (type class org.eclipse.smarthome.core.library.types.QuantityType).

2020-06-16 10:37:18.999 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellyem3-68c63afb08a3: Channel device#accumulatedWTotal updated with 41.202 kWh (type class org.eclipse.smarthome.core.library.types.QuantityType).

There might be one reason: please provide an output of /status
each emeter has a flag “is_valid”, only data from emeters with state is_valid = true is processed. So if the status indicates is_valid = false the processing of this meter is skipped. Unfortunately there is no output in this situation, but that would explain the behavior.

I have locked into the log file (also above) and can see that the is_valid was true for all three meters.

If I understand it right the plugin send a http get command and get a reply, but the get command is sent twice:
2020-06-16 10:37:18.769 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for http://192.168.0.215/status
a a few milliseconds later with additional /relay/0.
2020-06-16 10:37:18.871 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shellyem3-68c63afb08a3: HTTP GET for http://192.168.0.215/status/relay/0
The reply look for me with both commands similar.
Also in the reply is no sum value. It look for me that the sum is calculated by the plugin.
Maybe the twice reply within a few milliseconds cause this problem?

nope /status is the device status and the other one the status for the specific delay
yes, the binding sums up the values
what I saw last time was that the counter started with 2 rather than 1

Hi Markus, first of all: Thanx for your work.

I have a new Shelly Button1 that is shown as “Unknown” by your binding. I already checked your source code at github and think there are just few adjustments for the device to be recognized. Do you want me to try to add it to github myself or would you like to do it yourself and I just give you the settings- json?

Thank you in advance.

please open the browser and provide the output of
/settings and
/status

I currently finishing up the GREE and MagentaTV bindings and will then come back to Shelly adding support for i3, Button 1 and Gas. I receive those devices next week.

Here is the requested information:

Settings:
{
“device”: {
“type”: “SHBTN-1”,
“mac”: “XXXXX2F4554D”,
“hostname”: “shellybutton1-XXXXX2F4554D”,
“sleep_mode”: true
},
“wifi_ap”: {
“enabled”: false,
“ssid”: “shellybutton1-XXXXX2F4554D”,
“key”: “”
},
“wifi_sta”: {
“enabled”: true,
“ssid”: “mySSID”,
“ipv4_method”: “static”,
“ip”: “192.168.192.21”,
“gw”: “192.168.192.77”,
“mask”: “255.255.255.0”,
“dns”: “192.168.192.77”
},
“wifi_sta1”: {
“enabled”: true,
“ssid”: “mySSID2”,
“ipv4_method”: “static”,
“ip”: “192.168.192.21”,
“gw”: “192.168.192.77”,
“mask”: “255.255.255.0”,
“dns”: “192.168.192.77”
},
“mqtt”: {
“enable”: false,
“server”: “192.168.33.3:1883”,
“user”: “”,
“id”: “shellybutton1-XXXXX2F4554D”,
“reconnect_timeout_max”: 60,
“reconnect_timeout_min”: 2,
“clean_session”: true,
“keep_alive”: 60,
“max_qos”: 0,
“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”: “”,
“fw”: “20200601-123213/v1.7.0@d7961837”,
“discoverable”: true,
“build_info”: {
“build_id”: “20200601-123213/v1.7.0@d7961837”,
“build_timestamp”: “2020-06-01T12:32:13Z”,
“build_version”: “1.0”
},
“cloud”: {
“enabled”: false,
“connected”: false
},
“timezone”: “Europe/Berlin”,
“lat”: 50.110901,
“lng”: 8.68213,
“tzautodetect”: true,
“tz_utc_offset”: 7200,
“tz_dst”: true,
“tz_dst_auto”: true,
“time”: “09:33”,
“unixtime”: 1592472838,
“hwinfo”: {
“hw_revision”: “prod-2020-04”,
“batch_id”: 1
},
“sleep_mode”: {
“period”: 12,
“unit”: “h”
},
“led_status_disable”: true,
“longpush_duration_ms”: {
“max”: 800
},
“multipush_time_between_pushes_ms”: {
“max”: 500
},
“remain_awake”: 0,
“inputs”: [
{
“shortpush_url”: “http://192.168.192.20/relay/0?turn=toggle”,
“double_shortpush_url”: “”,
“triple_shortpush_url”: “”,
“longpush_url”: “”
}
]
}

Status:
{
“wifi_sta”: {
“connected”: true,
“ssid”: “mySSID”,
“ip”: “192.168.192.21”,
“rssi”: -68
},
“cloud”: {
“enabled”: false,
“connected”: false
},
“mqtt”: {
“connected”: false
},
“time”: “09:35”,
“unixtime”: 1592472902,
“serial”: 1,
“has_update”: false,
“mac”: “XXXXXF4554D”,
“inputs”: [
{
“input”: 0,
“event”: “S”,
“event_cnt”: 1
}
],
“is_valid”: true,
“bat”: {
“value”: 100,
“voltage”: 4.02
},
“charger”: false,
“act_reasons”: [
“button”
],
“connect_retries”: 0,
“update”: {
“status”: “idle”,
“has_update”: false,
“new_version”: “20200601-123213/v1.7.0@d7961837”,
“old_version”: “20200601-123213/v1.7.0@d7961837”
},
“ram_total”: 50312,
“ram_free”: 39444,
“ram_lwm”: 33928,
“fs_size”: 233681,
“fs_free”: 161644,
“uptime”: 80
}

I’m using OH 2.5.5 with two Shelly’s. Yesterday I’ve decided to delete all my devices from PaperUI and define things manually. But in the case of the Shelly’s PaperUI decides to include them in the inbox again. How can I disable this ?

This has nothing to do with shelly specially, this is “working as designed”: When you delete a thing from Paper UI Inbox it is simply “forgotten”. As soon as it is discovered again it will be back. If you want to “exclude” things from the inbox and make them not reappear you need to use the button with the eye to hide them. This decision is permanent and the things will not come back unless you click on “show ignored” at the bottom of the inbox (only there if at least one thing is ignored) and “unignore” the thing.

Thanks, but I’ve tried that already. I’ve ignored the things, but minutes later they disappear from the ignored list and return to the inbox. The only way is to accept and disable them afterwards (not a problem, but not that elegant). I’ve ignored some things in the Astro binding and they remain in the ignored list, so probably the shelly binding is assigning a TTL (time to leave) to discovered devices.

Here is my thing definition for shelly devices:

Thing shelly:shelly1:luz_quintal "Luz Quintal" @ "Aveiro" [deviceIp="192.168.129.80"]
Thing shelly:shelly1pm:painel_solar "Painel Solar" @ "Aveiro" [deviceIp="192.168.129.81"]

I also use the Daikin binding. It also discovers things automatically. But when I code things manually it does not auto create them again.

I suspect that this is the problem The binding uses mDNS to discover the Shelly devices. They periodically announce their presence, which is used by the binding to find them on the local network. and the check “are they already discovered ?” does not probably consider manually coded things.

If you use the last 6 digits of Shellys MAC instead of a name for Thing definition, they will not appear in inbox.

Thanks, but it doesn’t work. It simply doesn’t show in things in PaperUI.

If I use any character sequence (except the mac address) I have the things working, but auto discovery creates duplicates.

It definitely works.
For example, I have a Shelly 2.5 showing up in inbox as
shellyswitch25-68eb50, according Thing definition would be

shelly:shelly25-relay:68eb50 "Name" @ "Location" [deviceIp=xxx.xxx.xxx.xxx]

hi,
this is not a good answer, because on many zwave device the only way for example setting up “location” to seperate in paperui “Control” is using habmin (if paperui does not work, which often happens!)
I hope the team change its approach! otherwisecwe will seevsame nightmare as we have in 2.5 

Cheers

This conversation is about Shelly Binding, not Zwave. Textual Thing definition in general is defined like my example.

In my case they are discovered as shelly1-8caab505429f and shelly1pm-8caab50569bd. When I delete and define them manually they don’t show up.

Thing shelly:shelly1:8caab505429f "Luz Quintal" @ "Aveiro" [deviceIp="192.168.129.80"]
Thing shelly:shelly1pm:8caab50569bd "Painel Solar" @ "Aveiro" [deviceIp="192.168.129.81"]

As I wrote before and what the docs say, please use only the last 6 digits of the MAC address, in your case 05429f and 0569bd