Hi Markus,
as promised, here are the logs…
First log was taken with with “Dont activate … longpushed” set to disabled, longpush time
was set to 2000ms.:
“button-on” at 11:12:15.013
“button-off” at 11:12:20.998
see:
2020-05-03 11:12:11.295 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:12:11.299 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:12:11.374 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504332,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":true, "has_timer":true, "timer_remaining":14835}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40184,"fs_size":233681,"fs_free":153863,"uptime":87133}
2020-05-03 11:12:11.381 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:12:11.385 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:12:11.461 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-74},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504332,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":true, "has_timer":true, "timer_remaining":14834}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40012,"fs_size":233681,"fs_free":153863,"uptime":87133}
2020-05-03 11:12:11.472 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 87133 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:12:11.480 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 87112 to 87133
2020-05-03 11:12:14.964 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24033): {"G":[[0,112,0],[0,118,1]]}
2020-05-03 11:12:14.968 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,1]]}
2020-05-03 11:12:14.972 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:12:14.976 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:12:14.980 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=1.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:12:14.987 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel relay#input updated with ON (type class org.eclipse.smarthome.core.library.types.OnOffType).
2020-05-03 11:12:14.995 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel relay#output updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2020-05-03 11:12:14.999 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 channels updated from CoIoT status
2020-05-03 11:12:15.013 [vent.ItemStateChangedEvent] - ShellyPir_button changed from OFF to ON
2020-05-03 11:12:15.020 [vent.ItemStateChangedEvent] - ShellyPir_relay changed from ON to OFF
2020-05-03 11:12:16.176 [vent.ItemStateChangedEvent] - ShellyPir_button_timer changed from OFF to ON
2020-05-03 11:12:16.964 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24034): {"G":[[0,112,0],[0,118,2]]}
2020-05-03 11:12:16.966 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,2]]}
2020-05-03 11:12:16.970 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:12:16.974 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:12:16.976 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=2.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:12:17.480 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:12:17.484 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:12:17.557 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504338,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39924,"fs_size":233681,"fs_free":153863,"uptime":87139}
2020-05-03 11:12:17.561 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:12:17.564 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:12:17.633 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504338,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39928,"fs_size":233681,"fs_free":153863,"uptime":87139}
2020-05-03 11:12:17.643 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 87139 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:12:17.648 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 1 more updates requested
2020-05-03 11:12:17.651 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 87133 to 87139
2020-05-03 11:12:20.655 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:12:20.658 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:12:20.729 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504341,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39924,"fs_size":233681,"fs_free":153863,"uptime":87143}
2020-05-03 11:12:20.735 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:12:20.740 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:12:20.813 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504341,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39760,"fs_size":233681,"fs_free":153863,"uptime":87143}
2020-05-03 11:12:20.827 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 87143 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:12:20.833 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 0 more updates requested
2020-05-03 11:12:20.836 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 87139 to 87143
2020-05-03 11:12:20.998 [vent.ItemStateChangedEvent] - ShellyPir_button_timer changed from ON to OFF
2020-05-03 11:12:21.018 [INFO ] [se.smarthome.model.script.SHELLY-PIR] - Bewegung im Eingangsbereich erkannt
2020-05-03 11:12:24.806 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24035): {"G":[[0,112,0],[0,118,0]]}
2020-05-03 11:12:24.809 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,0]]}
2020-05-03 11:12:24.812 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:12:24.815 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:12:24.819 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=0.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:12:24.826 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel relay#input updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2020-05-03 11:12:24.829 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 1 channels updated from CoIoT status
2020-05-03 11:12:24.835 [vent.ItemStateChangedEvent] - ShellyPir_button changed from ON to OFF
2020-05-03 11:12:26.839 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:12:26.844 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:12:26.916 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-77},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504347,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39920,"fs_size":233681,"fs_free":153863,"uptime":87149}
2020-05-03 11:12:26.921 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:12:26.925 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:12:26.995 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-74},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:12","unixtime":1588504347,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39760,"fs_size":233681,"fs_free":153863,"uptime":87149}
2020-05-03 11:12:27.014 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 87143 to 87149
2020-05-03 11:12:27.009 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 87149 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:12:27.024 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 0 more updates requested
Now the test with “Don’t activate …” enabled, longpush time still on 2000ms:
“button-on” at 11:27:56.014
“button-off” at 11:28:03.402
see:
2020-05-03 11:27:55.975 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24097): {"G":[[0,112,0],[0,118,1]]}
2020-05-03 11:27:55.983 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,1]]}
2020-05-03 11:27:55.987 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:27:55.991 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:27:55.995 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=1.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:27:56.002 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel relay#input updated with ON (type class org.eclipse.smarthome.core.library.types.OnOffType).
2020-05-03 11:27:56.006 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 1 channels updated from CoIoT status
2020-05-03 11:27:56.014 [vent.ItemStateChangedEvent] - ShellyPir_button changed from OFF to ON
2020-05-03 11:27:56.052 [vent.ItemStateChangedEvent] - ShellyPir_button_timer changed from OFF to ON
2020-05-03 11:27:57.027 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:27:57.031 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:27:57.142 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-86},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:27","unixtime":1588505277,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40224,"fs_size":233681,"fs_free":153863,"uptime":88079}
2020-05-03 11:27:57.147 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:27:57.151 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:27:57.257 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-85},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:27","unixtime":1588505277,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40216,"fs_size":233681,"fs_free":153863,"uptime":88079}
2020-05-03 11:27:57.266 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 88079 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:27:57.271 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#wifiSignal updated with 1 (type class org.eclipse.smarthome.core.library.types.DecimalType).
2020-05-03 11:27:57.275 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 88037 to 88079
2020-05-03 11:27:57.275 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 0 more updates requested
2020-05-03 11:27:57.283 [vent.ItemStateChangedEvent] - ShellyPir_rssi changed from 2 to 1
2020-05-03 11:27:58.002 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24098): {"G":[[0,112,0],[0,118,2]]}
2020-05-03 11:27:58.006 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,2]]}
2020-05-03 11:27:58.012 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:27:58.015 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:27:58.023 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=2.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:28:00.277 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:28:00.281 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:28:00.319 [vent.ItemStateChangedEvent] - ShellyPir_button_timer changed from ON to OFF
2020-05-03 11:28:00.355 [INFO ] [se.smarthome.model.script.SHELLY-PIR] - Bewegung im Eingangsbereich erkannt
2020-05-03 11:28:00.362 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-84},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505280,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40096,"fs_size":233681,"fs_free":153863,"uptime":88082}
2020-05-03 11:28:00.367 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:28:00.371 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:28:00.454 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-84},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505281,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":1}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39916,"fs_size":233681,"fs_free":153863,"uptime":88082}
2020-05-03 11:28:00.468 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 88082 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:28:00.473 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 0 more updates requested
2020-05-03 11:28:00.483 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 88079 to 88082
2020-05-03 11:28:03.369 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Message from /192.168.9.11:5683 (MID=24099): {"G":[[0,112,0],[0,118,0]]}
2020-05-03 11:28:03.373 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: CoIoT Sensor data {"G":[[0,112,0],[0,118,0]]}
2020-05-03 11:28:03.378 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 2 CoAP sensor updates received
2020-05-03 11:28:03.382 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[0]: id=112, Value=0.0 (State, Type=S, Range=0/1, Link=0: Relay0)
2020-05-03 11:28:03.387 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=0.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:28:03.397 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel relay#input updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2020-05-03 11:28:03.402 [vent.ItemStateChangedEvent] - ShellyPir_button changed from ON to OFF
2020-05-03 11:28:03.404 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: 1 channels updated from CoIoT status
2020-05-03 11:28:03.476 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:28:03.481 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:28:03.553 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-74},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505284,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39888,"fs_size":233681,"fs_free":153863,"uptime":88085}
2020-05-03 11:28:03.564 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:28:03.571 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:28:03.648 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-74},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505284,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":39712,"fs_size":233681,"fs_free":153863,"uptime":88085}
2020-05-03 11:28:03.661 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 88085 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:28:03.667 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#wifiSignal updated with 2 (type class org.eclipse.smarthome.core.library.types.DecimalType).
2020-05-03 11:28:03.673 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 88082 to 88085
2020-05-03 11:28:03.673 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: 0 more updates requested
2020-05-03 11:28:03.683 [vent.ItemStateChangedEvent] - ShellyPir_rssi changed from 1 to 2
2020-05-03 11:28:15.677 [TRACE] [y.internal.handler.ShellyBaseHandler] - shelly1-pir: Updating status
2020-05-03 11:28:15.682 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status
2020-05-03 11:28:15.776 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-74},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505296,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40264,"fs_size":233681,"fs_free":153863,"uptime":88098}
2020-05-03 11:28:15.782 [TRACE] [.internal.handler.ShellyRelayHandler] - shelly1-pir: Updating 1 relay(s)
2020-05-03 11:28:15.786 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP GET for http://192.168.9.11/status/relay/0
2020-05-03 11:28:15.857 [TRACE] [ng.shelly.internal.api.ShellyHttpApi] - shelly1-pir: HTTP Response 200: {"wifi_sta":{"connected":true,"ssid":"LusImollSuTiF","ip":"192.168.9.11","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"11:28","unixtime":1588505296,"serial":1,"has_update":false,"mac":"BCDDC29425C2","relays" :[{"ison":false, "has_timer":false, "timer_remaining":0}],"meters":[{"power":0.00,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{},"ext_temperature":{},"ext_humidity":{},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":40084,"fs_size":233681,"fs_free":153863,"uptime":88098}
2020-05-03 11:28:15.872 [DEBUG] [lly.internal.util.ShellyChannelCache] - shelly1-pir: Channel device#uptime updated with 88098 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-05-03 11:28:15.882 [vent.ItemStateChangedEvent] - ShellyPir_uptime changed from 88085 to 88098
BTW: When filtering the log (containing both tests from above) for “longpush”, I find this:
2020-05-03 11:12:14.980 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=1.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:12:16.976 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=2.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:12:24.819 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=0.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:27:55.995 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=1.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:27:58.023 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=2.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
2020-05-03 11:28:03.387 [TRACE] [elly.internal.coap.ShellyCoapHandler] - shelly1-pir: Sensor value[1]: id=118, Value=0.0 (Input, Type=S, Range=0(off)/1(on)/2(longpush), Link=0: Relay0)
Does the lines with Value=2.0
(at 11:12:16.976 and at 11:27:58.023) indicate a “longpush” event has been sent by CoIoT from Shelly to us? If so, it would make sense, since this is roughly 2 secs after the according button-on.
Again just for reference: This is the current thing configuration:
Thing shelly:shelly1:pir "Bewegungsmelder" @ "somewhere" [ deviceIp="192.168.9.11", eventsCoIoT=true ]
Does this gives you a hint, why the binding is not generating a “LONG_PRESSED” anymore?