openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.6k forks source link

[shelly] [shellyht] No updates of state via GET #7075

Closed madiTG closed 4 years ago

madiTG commented 4 years ago

Shelly HT device is calling openhab properly, items are not being update with new values.

Expected Behavior

Item state is update every device request

Current Behavior

shelly is sending GET requests, items not updating their state

Possible Solution

REFRESH state after call?

Steps to Reproduce (for Bugs)

  1. registered shelly thing
  2. created items manually
  3. tcpdump on host for device driven communication

16:52:01.628728 IP 192.168.1.202.46659 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 16:52:01.633740 IP 192.168.1.202.46659 > host.http-alt: Flags [.], ack 76914955, win 5840, length 0 16:52:01.636956 IP 192.168.1.202.46659 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=40&temp=23.25 HTTP/1.1 16:52:01.688946 IP 192.168.1.202.46659 > host.http-alt: Flags [.], ack 72, win 5769, length 0 16:52:31.659237 IP 192.168.1.202.46659 > host.http-alt: Flags [.], ack 73, win 5768, length 0 16:52:31.660797 IP 192.168.1.202.46659 > host.http-alt: Flags [F.], seq 120, ack 73, win 5768, length 0 16:59:20.113238 IP 192.168.1.202.7887 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 16:59:20.122912 IP 192.168.1.202.7887 > host.http-alt: Flags [.], ack 27443965, win 5840, length 0 16:59:20.125811 IP 192.168.1.202.7887 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=40&temp=14.88 HTTP/1.1 16:59:20.206905 IP 192.168.1.202.7887 > host.http-alt: Flags [.], ack 72, win 5769, length 0 17:04:00.487376 IP 192.168.1.202.32428 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 17:04:00.495389 IP 192.168.1.202.32428 > host.http-alt: Flags [.], ack 146515865, win 5840, length 0 17:04:00.498728 IP 192.168.1.202.32428 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=45&temp=19.12 HTTP/1.1 17:04:00.616863 IP 192.168.1.202.32428 > host.http-alt: Flags [.], ack 72, win 5769, length 0 17:08:39.616369 IP 192.168.1.202.14604 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 17:08:39.621582 IP 192.168.1.202.14604 > host.http-alt: Flags [.], ack 2815186, win 5840, length 0 17:08:39.624612 IP 192.168.1.202.14604 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=46&temp=20.12 HTTP/1.1 17:08:39.721555 IP 192.168.1.202.14604 > host.http-alt: Flags [.], ack 72, win 5769, length 0 18:17:27.858776 IP 192.168.1.202.22851 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 18:17:27.866776 IP 192.168.1.202.22851 > host.http-alt: Flags [.], ack 1964596012, win 5840, length 0 18:17:27.870777 IP 192.168.1.202.22851 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=38&temp=18.75 HTTP/1.1 18:17:27.910779 IP 192.168.1.202.22851 > host.http-alt: Flags [.], ack 72, win 5769, length 0 18:22:08.840092 IP 192.168.1.202.57170 > host.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 18:22:08.848116 IP 192.168.1.202.57170 > host.http-alt: Flags [.], ack 4055253679, win 5840, length 0 18:22:08.850283 IP 192.168.1.202.57170 > host.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=37&temp=10.00 HTTP/1.1 18:22:08.973875 IP 192.168.1.202.57170 > host.http-alt: Flags [.], ack 72, win 5769, length 0

logs of state every minute:

2020-02-27 18:01:00.069 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:02:00.005 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:03:00.008 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:04:00.008 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:05:00.007 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:06:00.004 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:07:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:08:00.004 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:09:00.003 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:10:00.013 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:11:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:12:00.009 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:13:00.008 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:14:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:15:00.007 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:16:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:17:00.003 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:18:00.005 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:19:00.009 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:20:00.007 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:21:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:22:00.007 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:23:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:24:00.006 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text]) 2020-02-27 18:25:00.009 [INFO ] [marthome.model.script.SENSOR STATE] - temp (Type=NumberItem, State=23.25 °C, Label=label1, Category=null, Tags=[Text]) - humid (Type=NumberItem, State=40.00 %, Label=label2, Category=null, Tags=[Text])

Context

Want to get updates

Your Environment

everything updated as of 27.02.20 openhab 2.5.2 shellyht The current Firmware version of your Shelly device is 20191216-090428/v1.5.7@c30657ba No newer firmware available.

hmerk commented 4 years ago

Please post your thing and item config. I believe it is not a bug, as it is working perfectly in my environment.

madiTG commented 4 years ago

@hmerk Real log:

18:51:08.654809 IP 192.168.1.202.63031 > bilard.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=50&temp=19.25 HTTP/1.1 18:51:08.798846 IP 192.168.1.202.63031 > bilard.http-alt: Flags [.], ack 72, win 5769, length 0 18:55:48.921027 IP 192.168.1.202.37957 > bilard.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 18:55:48.927843 IP 192.168.1.202.37957 > bilard.http-alt: Flags [.], ack 1506550748, win 5840, length 0 18:55:48.931494 IP 192.168.1.202.37957 > bilard.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=50&temp=19.62 HTTP/1.1 18:55:49.150497 IP 192.168.1.202.37957 > bilard.http-alt: Flags [.], ack 72, win 5769, length 0 19:05:58.139410 IP 192.168.1.202.56466 > bilard.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 19:05:58.147331 IP 192.168.1.202.56466 > bilard.http-alt: Flags [.], ack 1041950144, win 5840, length 0 19:05:58.151337 IP 192.168.1.202.56466 > bilard.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET

2020-02-27 20:59:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 21:00:00.013 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 21:01:00.004 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 21:02:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 21:03:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 21:04:00.008 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=23.25 °C, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=40.00 %, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text])

/shelly/event/shellyht-f38fc8/sensordata?hum=47&temp=20.25 HTTP/1.1 19:05:58.179328 IP 192.168.1.202.56466 > bilard.http-alt: Flags [.], ack 72, win 5769, length 0 19:34:55.143016 IP 192.168.1.202.40182 > bilard.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 19:34:55.148175 IP 192.168.1.202.40182 > bilard.http-alt: Flags [.], ack 3814105931, win 5840, length 0 19:34:55.151016 IP 192.168.1.202.40182 > bilard.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=45&temp=20.62 HTTP/1.1 19:34:55.353879 IP 192.168.1.202.40182 > bilard.http-alt: Flags [.], ack 72, win 5769, length 0

Item conf:

Number:Temperature lazienka_glowna_temp "Łazienka Główna Temperatura" ["Text"] { channel="shelly:shellyht:f38fc8:sensors#temperature" } Number:Dimensionless lazienka_glowna_humid "Łazienka Główna Wilgotność" ["Text"] { channel="shelly:shellyht:f38fc8:sensors#humidity" } DateTime lazienka_glowna_last_update "Łazienka Główna Last Update" ["Date"] { channel="shelly:shellyht:f38fc8:sensors#lastUpdate" } Number lazienka_glowna_battery_level "Łazienka Główna Poziom Baterii Czujnika" ["Text"] { channel="shelly:shellyht:f38fc8:battery#batteryLevel" } Switch lazienka_glowna_low_battery "Łazienka Główna Słaba Bateria" ["Switchable"] { channel="shelly:shellyht:f38fc8:battery#lowBattery" } Number lazienka_glown_poziom_sygnalu "Łazienka Główna Poziom Sygnału" ["Text"] { channel="shelly:shellyht:f38fc8:device#wifiSignal" }

Thing conf:

UID: shelly:shellyht:f38fc8 Type: shelly:shellyht Label: shellyht-f38fc8 - 192.168.1.202 Status: ONLINE

Properties: deviceType : coapDeviceDescr : {"blk":[{"I":1, "D":"sensors"}],"sen":[{"I":33, "D":"temperature", "T":"T", "R":"-40/125", "L":1},{"I":44, "D":"humidity", "T":"H", "R":"0/100", "L":1},{"I":77, "D":"battery", "T":"B", "R":"0/100", "L":1}]} statsTimeoutsRecovered : 0 modelId : SHHT-1 updateNewVersion : 20191216-090428/v1.5.7@c30657ba networkIP : 192.168.1.202 statsTimeoutErrors : 0 numberMeters : 0 devHwRev : serviceName : shellyht-f38fc8 numberRollers : 0 hardwareBatch : wifiNetwork : 3Com macAddress : 98F4ABF38FC8 updateCurrentVersion : 20191216-090428/v1.5.7@c30657ba deviceMode : numberRelays : 0 vendor : Shelly updateStatus : idle firmwareVersion : v1.5.7/20191216-090428(c30657ba) updateAvailable : no

Configuration parameters: eventsCoIoT : true deviceIp : 192.168.1.202 password : null updateInterval : 3600 lowBattery : 20 eventsSensorReport : true userId : null

Channels: ID: sensors#temperature Label: Temperature Type: shelly:sensorTemp Description: Temperature from the sensor

    ID: sensors#humidity
    Label: Humidity
    Type: shelly:sensorHumidity
    Description: Relative humidity in % (0..100%)

    ID: sensors#lastUpdate
    Label: Last Update
    Type: shelly:timestamp
    Description: Timestamp of last measurement

    ID: battery#batteryLevel
    Label: Battery Level
    Type: system:battery-level

    ID: battery#voltage
    Label: Battery voltage
    Type: shelly:batVoltage
    Description: Battery voltage in V

    ID: battery#lowBattery
    Label: Low Battery
    Type: system:low-battery

    ID: device#uptime
    Label: Uptime
    Type: shelly:uptime
    Description: Number of seconds since the device was powered up

    ID: device#wifiSignal
    Label: Signal Strength
    Type: system:signal-strength

    ID: device#alarm
    Label: Alarm
    Type: shelly:alarmTrigger
    Description: Alarm Trigger, e.g. weak WiFi Signal detected or over heating.

screenshot of thing config ( I https://ibb.co/9nbZMBS

hmerk commented 4 years ago

Thanks for your config, did not see anything suspicious. Could you please set the bindings log level to TRACE and post the trace log together with your tcpdump.

madiTG commented 4 years ago

@hmerk

22:40:00.379894 IP 192.168.1.202.29823 > bilard.http-alt: Flags [S], seq 6511, win 5840, options [mss 1460], length 0 22:40:00.389672 IP 192.168.1.202.29823 > bilard.http-alt: Flags [.], ack 1993304846, win 5840, length 0 22:40:00.391957 IP 192.168.1.202.29823 > bilard.http-alt: Flags [P.], seq 0:120, ack 1, win 5840, length 120: HTTP: GET /shelly/event/shellyht-f38fc8/sensordata?hum=39&temp=18.25 HTTP/1.1 22:40:00.478540 IP 192.168.1.202.29823 > bilard.http-alt: Flags [.], ack 72, win 5769, length 0

2019-11-28 22:40:06.536 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'front.rules' 2019-11-28 22:40:07.582 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'front.rules' 2020-02-27 22:40:00.020 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:40:00.403 [DEBUG] [elly.internal.api.ShellyEventServlet] - CallbackServlet: HTTP/1.1 Request from 192.168.1.202:29823/shelly/event/shellyht-f38fc8/sensordata?{hum=[39],temp=[18.25]} 2020-02-27 22:40:00.404 [TRACE] [elly.internal.api.ShellyEventServlet] - Process event of type type=sensordata for device shellyht-f38fc8, index= 2020-02-27 22:40:00.404 [TRACE] [shelly.internal.ShellyHandlerFactory] - Dispatch event to device handler shellyht-f38fc8 2020-02-27 22:40:00.405 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=39, temp=18.25} 2020-02-27 22:40:00.405 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Device is not yet initialized, event triggers initialization 2020-02-27 22:40:00.405 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh 2020-02-27 22:40:00.406 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh 2020-02-27 22:40:02.444 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Status update triggered thing initialization 2020-02-27 22:40:02.446 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Start initializing thing shellyht-f38fc8 - 192.168.1.202, type shellyht, ip address 192.168.1.202, CoIoT: true 2020-02-27 22:40:02.447 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.202/settings 2020-02-27 22:40:02.768 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"device":{"type":"SHHT-1","mac":"98F4ABF38FC8","hostname":"shellyht-F38FC8","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-F38FC8","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.202","gw":"192.168.1.1","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":false,"server":"192.168.33.3:1883","user":"","id":"shellyht-F38FC8","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","name":"","fw":"20191216-090428/v1.5.7@c30657ba","build_info":{"build_id":"20191216-090428/v1.5.7@c30657ba","build_timestamp":"2019-12-16T09:04:28Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Warsaw","lat":500.000000,"lng":500.000000,"tzautodetect":true,"time":"","sensors":{"temperature_threshold":1.0,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"report_url":"http://192.168.1.122:8080/shelly/event/shellyht-f38fc8/sensordata","external_power":0,"temperature_offset":0.0,"humidity_offset":0.0} 2020-02-27 22:40:02.771 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Initializing device shellyht-f38fc8, type SHHT-1, Hardware: Rev: , batch ; Firmware: v1.5.7 / 20191216-090428 (c30657ba) 2020-02-27 22:40:02.772 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Shelly settings info: {"device":{"type":"SHHT-1","mac":"98F4ABF38FC8","hostname":"shellyht-F38FC8","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-F38FC8","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.202","gw":"192.168.1.1","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":false,"server":"192.168.33.3:1883","user":"","id":"shellyht-F38FC8","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","name":"","fw":"20191216-090428/v1.5.7@c30657ba","build_info":{"build_id":"20191216-090428/v1.5.7@c30657ba","build_timestamp":"2019-12-16T09:04:28Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Warsaw","lat":500.000000,"lng":500.000000,"tzautodetect":true,"time":"","sensors":{"temperature_threshold":1.0,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"report_url":"http://192.168.1.122:8080/shelly/event/shellyht-f38fc8/sensordata","external_power":0,"temperature_offset":0.0,"humidity_offset":0.0} 2020-02-27 22:40:02.773 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Device has relays: false (numRelays=0, is roller: false (numRoller=0), is Plug S: false, is Dimmer: false, has LEDs: false, is Light: false, has Meter: false (numMeter=0, EMeter: false), is Sensor: true, is Sense: false, has Battery: true (low battery threshold=20%), event urls: btn:false,out:false,pushfalse,roller:false,sensor:true 2020-02-27 22:40:02.774 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.202/status 2020-02-27 22:40:02.825 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"wifi_sta":{"connected":true,"ssid":"3Com","ip":"192.168.1.202","rssi":-49},"cloud":{"enabled":true,"connected":true},"mqtt":{"connected":false},"time":"","serial":1,"has_update":false,"mac":"98F4ABF38FC8","is_valid":true,"tmp":{"value":18.25,"units":"C","tC":18.25,"tF":64.85, "is_valid":true},"hum":{"value":39.0, "is_valid":true},"bat":{"value":100,"voltage":2.98},"act_reasons":["sensor"],"connect_retries":0,"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20191216-090428/v1.5.7@c30657ba"},"ram_total":50600,"ram_free":39576,"fs_size":233681,"fs_free":160640,"uptime":4} 2020-02-27 22:40:02.844 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Properties updated 2020-02-27 22:40:02.845 [DEBUG] [ng.shelly.internal.api.ShellyHttpApi] - Check/set Sensor Reporting URL 2020-02-27 22:40:02.847 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.202/settings?report_url=http%3A%2F%2F192.168.1.122%3A8080%2Fshelly%2Fevent%2Fshellyht-f38fc8%2Fsensordata 2020-02-27 22:40:07.848 [DEBUG] [ng.shelly.internal.api.ShellyHttpApi] - : Shelly API timeout (TimeoutException: Total timeout 5000 ms elapsed), retry 2020-02-27 22:40:07.958 [DEBUG] [helly.internal.coap.ShellyCoapServer] - Initializing CoIoT listener (local IP=192.168.1.122 2020-02-27 22:40:07.973 [DEBUG] [helly.internal.coap.ShellyCoapServer] - Start CoIoT Listener 2020-02-27 22:40:07.974 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel device#uptime updated with 4 s (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:07.975 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel device#wifiSignal updated with 4 (type class org.eclipse.smarthome.core.library.types.DecimalType). 2020-02-27 22:40:07.977 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Properties updated 2020-02-27 22:40:07.988 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Thing successfully initialized. 2020-02-27 22:40:07.989 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating status 2020-02-27 22:40:07.990 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.202/status 2020-02-27 22:40:12.991 [DEBUG] [ng.shelly.internal.api.ShellyHttpApi] - : Shelly API timeout (TimeoutException: Total timeout 5000 ms elapsed), retry 2020-02-27 22:40:12.992 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: 3 more updates requested 2020-02-27 22:40:12.993 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 2020-02-27 22:40:30.470 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Refresh settings 2020-02-27 22:40:30.471 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.201/settings 2020-02-27 22:40:30.556 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-02057d: Refresh settings 2020-02-27 22:40:30.556 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.200/settings 2020-02-27 22:40:30.603 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"device":{"type":"SHPLG-S","mac":"807D3A0216A8","hostname":"shellyplug-s-0216A8","num_outputs":1,"num_meters":1},"wifi_ap":{"enabled":false,"ssid":"shellyplug-s-0216A8","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.201","gw":"192.168.1.1","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":false,"server":"192.168.33.3:1883","user":"","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"will_topic":"shellies/shellyplug-s-0216A8/online","will_message":"false","max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","coiot_execute_enable":false,"name":"","fw":"20190516-073020/master@ea1b23db","build_info":{"build_id":"20190516-073020/master@ea1b23db","build_timestamp":"2019-05-16T07:30:20Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Warsaw","lat":52.390999,"lng":16.896999,"tzautodetect":true,"time":"22:40","hwinfo":{"hw_revision":"prod-190516","batch_id":1},"max_power":2500,"led_status_disable":false,"led_power_disable":false,"relays":[{"ison":true,"has_timer":false,"overpower":false,"default_state":"off","auto_on":0.00,"auto_off":0.00,"btn_on_url":null,"out_on_url":null,"out_off_url":null,"schedule":false,"schedule_rules":[]}],"meters":[{"power":114.08,"is_valid":true,"timestamp":1582843230,"counters":[113.968, 113.971, 114.001],"total":26837}]} 2020-02-27 22:40:30.604 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Updating status 2020-02-27 22:40:30.605 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.201/status 2020-02-27 22:40:30.661 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"wifi_sta":{"connected":true,"ssid":"3Com","ip":"192.168.1.201","rssi":-66},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"22:40","serial":1,"has_update":true,"mac":"807D3A0216A8","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":114.08,"is_valid":true,"timestamp":1582843230,"counters":[113.968, 113.971, 114.001],"total":26837}],"temperature":34.95,"overtemperature":false,"update":{"status":"pending","has_update":true,"new_version":"20200206-083538/v1.5.10@e6a4205e","old_version":"20190516-073020/master@ea1b23db"},"ram_total":50832,"ram_free":40632,"fs_size":233681,"fs_free":171182,"uptime":21512} 2020-02-27 22:40:30.663 [TRACE] [.internal.handler.ShellyRelayHandler] - shellyplug-s-0216a8: Updating 1 relay(s) 2020-02-27 22:40:30.663 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.201/status/relay/0 2020-02-27 22:40:30.712 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"device":{"type":"SHPLG-S","mac":"807D3A02057D","hostname":"shellyplug-s-02057D","num_outputs":1,"num_meters":1},"wifi_ap":{"enabled":false,"ssid":"shellyplug-s-02057D","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.200","gw":"192.168.1.1","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":false,"server":"192.168.33.3:1883","user":"","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"will_topic":"shellies/shellyplug-s-02057D/online","will_message":"false","max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","coiot_execute_enable":false,"name":"","fw":"20190516-073020/master@ea1b23db","build_info":{"build_id":"20190516-073020/master@ea1b23db","build_timestamp":"2019-05-16T07:30:20Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Warsaw","lat":52.390999,"lng":16.896999,"tzautodetect":true,"time":"22:40","hwinfo":{"hw_revision":"prod-190516","batch_id":1},"max_power":2500,"led_status_disable":false,"led_power_disable":false,"relays":[{"ison":true,"has_timer":false,"overpower":false,"default_state":"last","auto_on":0.00,"auto_off":0.00,"btn_on_url":null,"out_on_url":null,"out_off_url":null,"schedule":false,"schedule_rules":[]}],"meters":[{"power":0.00,"is_valid":true,"timestamp":1582843231,"counters":[0.000, 0.000, 0.000],"total":153237}]} 2020-02-27 22:40:30.714 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-02057d: Updating status 2020-02-27 22:40:30.714 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.200/status 2020-02-27 22:40:30.724 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"wifi_sta":{"connected":true,"ssid":"3Com","ip":"192.168.1.201","rssi":-66},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"22:40","serial":1,"has_update":true,"mac":"807D3A0216A8","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":114.08,"is_valid":true,"timestamp":1582843230,"counters":[113.968, 113.971, 114.001],"total":26837}],"temperature":34.95,"overtemperature":false,"update":{"status":"pending","has_update":true,"new_version":"20200206-083538/v1.5.10@e6a4205e","old_version":"20190516-073020/master@ea1b23db"},"ram_total":50832,"ram_free":40452,"fs_size":233681,"fs_free":171182,"uptime":21512} 2020-02-27 22:40:30.725 [DEBUG] [.internal.handler.ShellyRelayHandler] - shellyplug-s-0216a8: LED disabled status: powerLed: false, : statusLedfalse 2020-02-27 22:40:30.726 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Updating 1 standard meter(s) 2020-02-27 22:40:30.730 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#currentWatts updated with 114.080 W (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.743 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#totalKWH updated with 0.4473 kWh (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.744 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#lastPower1 updated with 113.968 W (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.745 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#lastPower2 updated with 113.971 W (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.747 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#lastPower3 updated with 114.001 W (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.753 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel meter#lastUpdate updated with 2020-02-27T22:40:30.000+0100 (type class org.eclipse.smarthome.core.library.types.DateTimeType). 2020-02-27 22:40:30.759 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-0216a8: Channel device#uptime updated with 21512 s (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-27 22:40:30.785 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"wifi_sta":{"connected":true,"ssid":"3Com","ip":"192.168.1.200","rssi":-63},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"22:40","serial":1,"has_update":true,"mac":"807D3A02057D","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":0.00,"is_valid":true,"timestamp":1582843231,"counters":[0.000, 0.000, 0.000],"total":153237}],"temperature":31.10,"overtemperature":false,"update":{"status":"pending","has_update":true,"new_version":"20200206-083538/v1.5.10@e6a4205e","old_version":"20190516-073020/master@ea1b23db"},"ram_total":50832,"ram_free":40364,"fs_size":233681,"fs_free":171684,"uptime":172463} 2020-02-27 22:40:30.786 [TRACE] [.internal.handler.ShellyRelayHandler] - shellyplug-s-02057d: Updating 1 relay(s) 2020-02-27 22:40:30.786 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - : HTTP GET for http://192.168.1.200/status/relay/0 2020-02-27 22:40:30.857 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"wifi_sta":{"connected":true,"ssid":"3Com","ip":"192.168.1.200","rssi":-63},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"22:40","serial":1,"has_update":true,"mac":"807D3A02057D","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":0.00,"is_valid":true,"timestamp":1582843231,"counters":[0.000, 0.000, 0.000],"total":153237}],"temperature":31.10,"overtemperature":false,"update":{"status":"pending","has_update":true,"new_version":"20200206-083538/v1.5.10@e6a4205e","old_version":"20190516-073020/master@ea1b23db"},"ram_total":50832,"ram_free":40356,"fs_size":233681,"fs_free":171684,"uptime":172463} 2020-02-27 22:40:30.858 [DEBUG] [.internal.handler.ShellyRelayHandler] - shellyplug-s-02057d: LED disabled status: powerLed: false, : statusLedfalse 2020-02-27 22:40:30.858 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-02057d: Updating 1 standard meter(s) 2020-02-27 22:40:30.861 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplug-s-02057d: Channel device#uptime updated with 172463 s (type class org.eclipse.smarthome.core.library.types.QuantityType).

nulled after restart:

2020-02-27 22:20:00.006 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:21:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:22:00.006 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:23:00.006 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:24:00.008 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:25:00.006 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:26:00.005 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:27:00.006 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:28:00.005 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:29:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:30:00.004 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:31:00.008 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:32:00.004 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:33:00.005 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:34:00.002 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:36:00.134 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:37:00.010 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:39:00.095 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:40:00.020 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:41:00.009 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:42:00.014 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:43:00.007 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:44:00.009 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text]) 2020-02-27 22:45:00.015 [INFO ] [marthome.model.script.STANY SENSOWRO] - lazienka_glowna_temp (Type=NumberItem, State=NULL, Label=Łazienka Główna Temperatura, Category=null, Tags=[Text]) - lazienka_glowna_humid (Type=NumberItem, State=NULL, Label=Łazienka Główna Wilgotność, Category=null, Tags=[Text])

madiTG commented 4 years ago

@hmerk it seems to work with shellyht awaken manually and after restart, but still updates not being processed:

2020-02-29 11:15:50.466 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=50, temp=23.22} 2020-02-29 11:15:50.467 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh 2020-02-29 11:15:52.061 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Refresh settings 2020-02-29 11:15:52.177 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"device":{"type":"SHHT-1","mac":"98F4ABF38FC8","hostname":"shellyht-F38FC8","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-F38FC8","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.202","gw":"192.168.1.1","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.122:1883","user":"root","id":"shellies","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","name":"","fw":"20191216-090428/v1.5.7@c30657ba","build_info":{"build_id":"20191216-090428/v1.5.7@c30657ba","build_timestamp":"2019-12-16T09:04:28Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Warsaw","lat":52.390999,"lng":16.896999,"tzautodetect":true,"time":"11:15","sensors":{"temperature_threshold":1.0,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"report_url":"http://192.168.1.122:8080/shelly/event/shellyht-f38fc8/sensordata","external_power":0,"temperature_offset":0.0,"humidity_offset":0.0} 2020-02-29 11:15:52.179 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating status 2020-02-29 11:15:52.233 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating sensor 2020-02-29 11:15:52.298 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating temperature 2020-02-29 11:15:52.301 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel sensors#temperature updated with 24.88 °C (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:15:52.302 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating humidity 2020-02-29 11:15:52.306 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel sensors#humidity updated with 36.50 % (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:15:52.306 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating battery 2020-02-29 11:15:52.308 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel battery#batteryLevel updated with 82.00 % (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:15:52.309 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel battery#voltage updated with 2.82 V (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:15:52.314 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel battery#lowBattery updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType). 2020-02-29 11:15:52.315 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel sensors#lastUpdate updated with 2020-02-29T11:15:52.000+0100 (type class org.eclipse.smarthome.core.library.types.DateTimeType). 2020-02-29 11:15:52.319 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel device#uptime updated with 135 s (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:15:52.320 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel device#wifiSignal updated with 4 (type class org.eclipse.smarthome.core.library.types.DecimalType). 2020-02-29 11:15:52.326 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: 0 more updates requested 2020-02-29 11:15:52.326 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Enabling channel cache (20 updates / 60s) 2020-02-29 11:16:02.813 [DEBUG] [elly.internal.api.ShellyEventServlet] - CallbackServlet: HTTP/1.1 Request from 192.168.1.110:32164/shelly/event/shellyht-f38fc8/sensordata?{hum=[50],temp=[23.22]} 2020-02-29 11:16:02.815 [TRACE] [elly.internal.api.ShellyEventServlet] - Process event of type type=sensordata for device shellyht-f38fc8, index= 2020-02-29 11:16:02.816 [TRACE] [shelly.internal.ShellyHandlerFactory] - Dispatch event to device handler shellyht-f38fc8 2020-02-29 11:16:02.816 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=50, temp=23.22} 2020-02-29 11:16:02.817 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh 2020-02-29 11:16:04.327 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Refresh settings 2020-02-29 11:16:04.445 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - HTTP response from : {"device":{"type":"SHHT-1","mac":"98F4ABF38FC8","hostname":"shellyht-F38FC8","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellyht-F38FC8","key":""},"wifi_sta":{"enabled":true,"ssid":"3Com","ipv4_method":"static","ip":"192.168.1.202","gw":"192.168.1.1","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.122:1883","user":"root","id":"shellies","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"","name":"","fw":"20191216-090428/v1.5.7@c30657ba","build_info":{"build_id":"20191216-090428/v1.5.7@c30657ba","build_timestamp":"2019-12-16T09:04:28Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Warsaw","lat":52.390999,"lng":16.896999,"tzautodetect":true,"time":"11:16","sensors":{"temperature_threshold":1.0,"temperature_unit":"C","humidity_threshold":5.0},"sleep_mode":{"period":12,"unit":"h"},"report_url":"http://192.168.1.122:8080/shelly/event/shellyht-f38fc8/sensordata","external_power":0,"temperature_offset":0.0,"humidity_offset":0.0} 2020-02-29 11:16:04.449 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating status 2020-02-29 11:16:04.511 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating sensor 2020-02-29 11:16:04.571 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating temperature 2020-02-29 11:16:04.572 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating humidity 2020-02-29 11:16:04.573 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Updating battery 2020-02-29 11:16:04.575 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Channel device#uptime updated with 147 s (type class org.eclipse.smarthome.core.library.types.QuantityType). 2020-02-29 11:16:04.576 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: 0 more updates requested 2020-02-29 11:16:30.788 [DEBUG] [elly.internal.api.ShellyEventServlet] - CallbackServlet: HTTP/1.1 Request from 192.168.1.110:32164/shelly/event/shellyht-f38fc8/sensordata?{hum=[50],temp=[23.22]} 2020-02-29 11:16:30.789 [TRACE] [elly.internal.api.ShellyEventServlet] - Process event of type type=sensordata for device shellyht-f38fc8, index= 2020-02-29 11:16:30.789 [TRACE] [shelly.internal.ShellyHandlerFactory] - Dispatch event to device handler shellyht-f38fc8 2020-02-29 11:16:30.790 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=50, temp=23.22} 2020-02-29 11:16:30.790 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh 2020-02-29 11:16:31.577 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Refresh settings 2020-02-29 11:16:36.580 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: 0 more updates requested 2020-02-29 11:16:41.563 [DEBUG] [elly.internal.api.ShellyEventServlet] - CallbackServlet: HTTP/1.1 Request from 192.168.1.202:47912/shelly/event/shellyht-f38fc8/sensordata?{hum=[36],temp=[24.88]} 2020-02-29 11:16:41.563 [TRACE] [elly.internal.api.ShellyEventServlet] - Process event of type type=sensordata for device shellyht-f38fc8, index= 2020-02-29 11:16:41.564 [TRACE] [shelly.internal.ShellyHandlerFactory] - Dispatch event to device handler shellyht-f38fc8 2020-02-29 11:16:41.564 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=36, temp=24.88} 2020-02-29 11:16:41.564 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyht-f38fc8: Request settings refresh

madiTG commented 4 years ago

When running this locally, requesting from browser:

21:17:09.531 [tp146244140-207] DEBUG o.o.b.s.i.api.ShellyEventServlet:96 - CallbackServlet: HTTP/1.1 Request from 192.168.1.110:38354/shelly/event/shellyht-f38fc8/sensordata?{hum=[39],temp=[18.25]} 21:17:09.532 [tp146244140-207] DEBUG o.o.b.s.i.handler.ShellyBaseHandler:491 - shellyht-f38fc8: Event received: class=sensordata, index=, parameters={hum=39, temp=18.25} 21:17:09.532 [tp146244140-207] DEBUG o.o.b.s.i.handler.ShellyBaseHandler:672 - shellyht-f38fc8: Request settings refresh 21:17:12.143 [-thingHandler-3] DEBUG o.o.b.s.i.handler.ShellyBaseHandler:878 - shellyht-f38fc8: Refresh settings 21:17:18.849 [-thingHandler-3] DEBUG o.o.b.s.internal.api.ShellyHttpApi:477 - : Shelly API timeout (TimeoutException: Total timeout 5000 ms elapsed), retry 21:17:18.849 [-thingHandler-3] DEBUG o.o.b.s.i.handler.ShellyBaseHandler:394 - shellyht-f38fc8: 0 more updates requested 21:17:18.849 [-thingHandler-3] WARN o.e.s.c.i.c.WrappedScheduledExecutorService:67 - Scheduled runnable ended with an exception: java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:192) at org.apache.commons.lang.Validate.notNull(Validate.java:178) at org.openhab.binding.shelly.internal.api.ShellyHttpApi.getStatus(ShellyHttpApi.java:122) at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.updateStatus(ShellyBaseHandler.java:350) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

madiTG commented 4 years ago

Added

            if (profile.deviceType.equals("SHHT-1")) {
                String humidity = parameters.get("hum") + ".00";
                updateChannel(group, CHANNEL_SENSOR_HUM, DecimalType.valueOf(humidity));
                updateChannel(group, CHANNEL_SENSOR_TEMP, DecimalType.valueOf(parameters.get("temp")));

            }

to basehandler onevent and it works.

markus7017 commented 4 years ago

move to new version