home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.93k stars 30.98k forks source link

Shelly 3EM became unavailable every night 02:01 (same time) - that gives wrong value in the energy dashboard database! #119994

Open rhoddan opened 5 months ago

rhoddan commented 5 months ago

The problem

Every night (almost same time) my Shelly 3EM became unavailable every night 02:01 (same time) - that gives wrong value in the energy dashboard database! Very annoying - you have to adjust the database every day!!

Skärmavbild 2024-06-19 kl  21 58 09 Skärmavbild 2024-06-19 kl  21 58 35

I have tested a lot of different Shelly firmwares - no change.

What version of Home Assistant Core has the issue?

2024.6.3

What was the last working version of Home Assistant Core?

not sure but guess 2024.4.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Shelly

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 5 months ago

Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `shelly` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign shelly` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


shelly documentation shelly source (message by IssueLinks)

thecode commented 5 months ago

"Shelly 3EM became unavailable every night 02:01 (same time)" - Is where you should start, you should identify what is causing it to go offline. I had Unifi network optimization which will do WiFi channel optimization (moving channels) every night at 02:00 which caused similar issue.

rhoddan commented 5 months ago

"Shelly 3EM became unavailable every night 02:01 (same time)" - Is where you should start, you should identify what is causing it to go offline. I had Unifi network optimization which will do WiFi channel optimization (moving channels) every night at 02:00 which caused similar issue.

Skärmavbild 2024-06-19 kl  23 54 52

Ahh - I hope you are right. I also have Unifi. Is it here I need to disable auto?

rhoddan commented 5 months ago

"Shelly 3EM became unavailable every night 02:01 (same time)" - Is where you should start, you should identify what is causing it to go offline. I had Unifi network optimization which will do WiFi channel optimization (moving channels) every night at 02:00 which caused similar issue.

Has something in the Shelly integration changed? This started for a while ago. No changes in Unifi settings

thecode commented 5 months ago

Ahh - I hope you are right. I also have Unifi. Is it here I need to disable auto?

No, it is the schedule optimization which is already off at your case. Do you have other devices going offline at the same time? You can check the HA logbook near that time

rhoddan commented 5 months ago

Ahh - I hope you are right. I also have Unifi. Is it here I need to disable auto?

No, it is the schedule optimization which is already off at your case. Do you have other devices going offline at the same time? You can check the HA logbook near that time

Yes - for example Shelly plugs. Different times. Seems to be only Shellies...

chemelli74 commented 5 months ago

Maybe you are using dhcp ? If so check the lease time

rhoddan commented 5 months ago

Maybe you are using dhcp ? If so check the lease time

It's actually 24 hours. But I have set "Use Fixed IP Address" for this device in Unifi. Can it still be an issue? I keep the dhcp and fixed ip in unify but I will tick the "set static ip address" box in Shelly configuration to see if it helps.

rhoddan commented 5 months ago

It’s too early to say but tonight I had no issues 👍👍

thecode commented 5 months ago

Maybe you are using dhcp ? If so check the lease time

I am using DHCP on most of my devices and it was set to 12Hours for many years. The device will ask to renew the IP address from the DHCP before it expires and it doesn't cause any disconnection anyhow.

rhoddan commented 5 months ago

Maybe you are using dhcp ? If so check the lease time

I am using DHCP on most of my devices and it was set to 12Hours for many years. The device will ask to renew the IP address from the DHCP before it expires and it doesn't cause any disconnection anyhow.

Yes that is the way it should work. Not sure if the Shelly device make it another (worse) way?

rhoddan commented 5 months ago

I changed to no dhcp - still same problem. This drives me crazy. I don’t know why the device tried to turned off same time? IMG_0518

rhoddan commented 5 months ago

Hmm. Why do I have 2 of Reboot? IMG_0519

rhoddan commented 5 months ago

I enabled DEBUG for Shelly. Here is a log during a problem.

Skärmavbild 2024-06-22 kl  08 24 52

2024-06-22 07:20:25.033 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033624.96, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['c0:28:8d:ff:ae:e9', -79, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', 'Fv8DAAEWNQAAAoyGHsovPMAojf+u6SI='], ['4e:4e:af:29:30:16', -78, 'AgEaAgoMDP9MABAHex9F/U5GaA==', ''], ['63:ab:68:66:51:bc', -92, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', ''], ['38:01:95:dd:2e:70', -77, 'G/91AEIEAYCOOAGV3S5wFrtuLS1yAQAAAAAAAA==', '']]], 'ts': 1719033624.96}]} 2024-06-22 07:20:25.034 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:25.065 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.137, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-1#D0B412#2', 3412: b'\x96\x00', 3420: b'\x10\x02'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 12], [0, 2101, 0], [0, 2102, ''], [0, 2103, 162], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 2987], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 45.36], [0, 3105, 113.64], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:25.065 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id D0B412 2024-06-22 07:20:25.065 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer-D0B412 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer-D0B412: 0 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer-D0B412 data 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:25.066 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:25.300 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033625.26, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -100, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033625.26}]}} 2024-06-22 07:20:25.300 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033625.26, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -100, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033625.26}]} 2024-06-22 07:20:25.300 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:25.419 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.233, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHPLG2-1#DB60C4#2', 3412: b'\x96\x00', 3420: b'*\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 4101, 0.0], [0, 4103, 52118], [0, 6102, 0], [0, 6109, 0.0]]} 2024-06-22 07:20:25.420 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id DB60C4 2024-06-22 07:20:25.420 DEBUG (MainThread) [homeassistant.components.shelly] Shelly kompressor handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:25.420 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for kompressor: 0 2024-06-22 07:20:25.420 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated kompressor data 2024-06-22 07:20:25.420 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block relay_0 2024-06-22 07:20:25.421 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:25.421 DEBUG (MainThread) [homeassistant.components.shelly] Reloading entry shellyem3-3494547481D2 2024-06-22 07:20:25.422 DEBUG (MainThread) [homeassistant.components.shelly] Deleting issue push_update_3494547481D2 2024-06-22 07:20:25.424 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ (states('sensor.bergvarmepump_channel_a_power') | float + states('sensor.bergvarmepump_channel_b_power') | float + states('sensor.bergvarmepump_channel_c_power') | float) | round(0)}}' but no default was specified') while processing template 'Template<template=({{ (states('sensor.bergvarmepump_channel_a_power') | float + states('sensor.bergvarmepump_channel_b_power') | float + states('sensor.bergvarmepump_channel_c_power') | float) | round(0)}}) renders=75960>' for attribute '_attr_native_value' in entity 'sensor.bergvarme_total' 2024-06-22 07:20:25.430 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: int got invalid input 'unavailable' when rendering template '{{ ((states('sensor.easee_equalizer_home_4122_import_power')) | int) - (states('sensor.bergvarme_total') | int) - (states('sensor.easee_home_50267_power') | int)- (states('sensor.radiator_left_garage_Power') | int)- (states('sensor.dehumidifier_garage_power') | int)- (states('sensor.handdukstork_switch_0_power') | int)- (states('sensor.shellyplug_s_b57c7b_power') | int) - (states('sensor.varmvattenberedare_power') | int) - (states('sensor.luftvarmepump_channel_1_power_2') | int)}}' but no default was specified') while processing template 'Template<template=({{ ((states('sensor.easee_equalizer_home_4122_import_power')) | int) - (states('sensor.bergvarme_total') | int) - (states('sensor.easee_home_50267_power') | int)- (states('sensor.radiator_left_garage_Power') | int)- (states('sensor.dehumidifier_garage_power') | int)- (states('sensor.handdukstork_switch_0_power') | int)- (states('sensor.shellyplug_s_b57c7b_power') | int) - (states('sensor.varmvattenberedare_power') | int) - (states('sensor.luftvarmepump_channel_1_power_2') | int)}}) renders=125652>' for attribute '_attr_native_value' in entity 'sensor.power_other' 2024-06-22 07:20:25.442 DEBUG (MainThread) [aioshelly.block_device.device] host 192.168.1.123: block device shutdown 2024-06-22 07:20:25.443 DEBUG (MainThread) [aioshelly.block_device.coap] Sending request 'cit/s' to device 192.168.1.123 2024-06-22 07:20:25.448 DEBUG (MainThread) [aioshelly.block_device.device] host 192.168.1.123: block device create, MAC: 3494547481D2 2024-06-22 07:20:25.448 DEBUG (MainThread) [aioshelly.block_device.coap] Adding device 7481D2 to CoAP message subscriptions 2024-06-22 07:20:25.449 DEBUG (MainThread) [homeassistant.components.shelly] Setting up online block device Bergvärmepump 2024-06-22 07:20:25.449 DEBUG (MainThread) [aioshelly.block_device.device] host 192.168.1.123: block device initialize 2024-06-22 07:20:25.476 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.123, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHEM-3#3494547481D2#2', 3412: b'\x96\x00', 3420: b'K\xab'}, payload={'G': [[0, 9103, 2], [0, 1101, 0], [0, 4105, 66.3], [0, 4106, 2452.9], [0, 4107, 0.0], [0, 4108, 240.58], [0, 4109, 0.4], [0, 4110, 0.69], [0, 4205, 0.0], [0, 4206, 1300.3], [0, 4207, 0.0], [0, 4208, 240.6], [0, 4209, 0.01], [0, 4210, 0.24], [0, 4305, 0.0], [0, 4306, 1164.6], [0, 4307, 0.1], [0, 4308, 240.68], [0, 4309, 0.01], [0, 4310, 0.29], [0, 6102, 0]]} 2024-06-22 07:20:25.477 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 7481D2 2024-06-22 07:20:25.478 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.123, type=CoapType.REPLY(69), options={11: b's', 3332: b'SHEM-3#3494547481D2#2', 3412: b'\x96\x00', 3420: b'K\xab'}, payload={'G': [[0, 9103, 2], [0, 1101, 0], [0, 4105, 66.3], [0, 4106, 2452.9], [0, 4107, 0.0], [0, 4108, 240.58], [0, 4109, 0.4], [0, 4110, 0.69], [0, 4205, 0.0], [0, 4206, 1300.3], [0, 4207, 0.0], [0, 4208, 240.6], [0, 4209, 0.01], [0, 4210, 0.24], [0, 4305, 0.0], [0, 4306, 1164.6], [0, 4307, 0.1], [0, 4308, 240.68], [0, 4309, 0.01], [0, 4310, 0.29], [0, 6102, 0]]} 2024-06-22 07:20:25.478 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 7481D2 2024-06-22 07:20:25.489 DEBUG (MainThread) [aioshelly.block_device.device] host 192.168.1.123: http request: /settings (params=None) 2024-06-22 07:20:25.538 DEBUG (MainThread) [aioshelly.block_device.device] aiohttp response: {'device': {'type': 'SHEM-3', 'mac': '3494547481D2', 'hostname': 'shellyem3-3494547481D2', 'num_outputs': 1, 'num_meters': 0, 'num_emeters': 3, 'report_period': 1}, 'wifi_ap': {'enabled': False, 'ssid': 'shellyem3-3494547481D2', 'key': ''}, 'wifi_sta': {'enabled': True, 'ssid': 'TULLGRIND6-TS', 'ipv4_method': 'static', 'ip': '192.168.1.123', 'gw': '192.168.1.1', 'mask': '255.255.255.0', 'dns': '192.168.1.1'}, 'wifi_sta1': {'enabled': False, 'ssid': None, 'ipv4_method': 'dhcp', 'ip': None, 'gw': None, 'mask': None, 'dns': None}, 'ap_roaming': {'enabled': False, 'threshold': -70}, 'mqtt': {'enable': False, 'server': '192.168.33.3:1883', 'user': '', 'id': 'shellyem3-3494547481D2', 'reconnect_timeout_max': 60.0, 'reconnect_timeout_min': 2.0, 'clean_session': True, 'keep_alive': 60, 'max_qos': 0, 'retain': False, 'update_period': 30}, 'coiot': {'enabled': True, 'update_period': 15, 'peer': '192.168.1.149:5683'}, 'sntp': {'server': 'time.google.com', 'enabled': True}, 'login': {'enabled': False, 'unprotected': False, 'username': 'admin'}, 'pin_code': '', 'name': None, 'fw': '20231107-165007/v1.14.1-rc1-g0617c15', 'pon_wifi_reset': False, 'discoverable': True, 'build_info': {'build_id': '20231107-165007/v1.14.1-rc1-g0617c15', 'build_timestamp': '2023-11-07T16:50:07Z', 'build_version': '1.0'}, 'cloud': {'enabled': False, 'connected': False}, 'timezone': 'Europe/Stockholm', 'lat': 57.734901, 'lng': 12.0725, 'tzautodetect': True, 'tz_utc_offset': 7200, 'tz_dst': False, 'tz_dst_auto': True, 'time': '07:20', 'unixtime': 1719033624, 'led_status_disable': False, 'debug_enable': False, 'allow_cross_origin': False, 'actions': {'active': False, 'names': ['out_on_url', 'out_off_url', 'over_power_url', 'under_power_url', 'over_power_url', 'under_power_url', 'over_power_url', 'under_power_url', 'over_power_url', 'under_power_url', 'n_mismatch_url']}, 'hwinfo': {'hw_revision': 'dev-prototype', 'batch_id': 0}, 'cf_output': 0, 'relays': [{'name': None, 'ison': False, 'has_timer': False, 'default_state': 'off', 'auto_on': 0.0, 'auto_off': 0.0, 'schedule': False, 'schedule_rules': []}], 'emeters': [{'name': None, 'appliance_type': 'General', 'max_power': 0, 'range_extender': 1}, {'name': None, 'appliance_type': 'General', 'max_power': 0, 'range_extender': 1}, {'name': None, 'appliance_type': 'General', 'max_power': 0, 'range_extender': 1}], 'emeter_n': {'range_extender': 1, 'mismatch_threshold': 1.0}, 'eco_mode_enabled': False} 2024-06-22 07:20:25.539 DEBUG (MainThread) [aioshelly.block_device.device] host 192.168.1.123: http request: /status (params=None) 2024-06-22 07:20:25.566 DEBUG (MainThread) [aioshelly.block_device.device] aiohttp response: {'wifi_sta': {'connected': True, 'ssid': 'TULLGRIND6-TS', 'ip': '192.168.1.123', 'rssi': -29}, 'cloud': {'enabled': False, 'connected': False}, 'mqtt': {'connected': False}, 'time': '07:20', 'unixtime': 1719033624, 'serial': 43851, 'has_update': True, 'mac': '3494547481D2', 'cfg_changed_cnt': 2, 'actions_stats': {'skipped': 0}, 'relays': [{'ison': False, 'has_timer': False, 'timer_started': 0, 'timer_duration': 0, 'timer_remaining': 0, 'overpower': False, 'is_valid': True, 'source': 'input'}], 'emeters': [{'power': 66.3, 'pf': 0.69, 'current': 0.4, 'voltage': 240.58, 'is_valid': True, 'total': 2452.9, 'total_returned': 0.0}, {'power': 0.0, 'pf': 0.24, 'current': 0.01, 'voltage': 240.6, 'is_valid': True, 'total': 1300.3, 'total_returned': 0.0}, {'power': 0.0, 'pf': 0.29, 'current': 0.01, 'voltage': 240.68, 'is_valid': True, 'total': 1164.6, 'total_returned': 0.1}], 'total_power': 66.3, 'emeter_n': {'current': 0.0, 'ixsum': 0.4, 'mismatch': False, 'is_valid': False}, 'fs_mounted': True, 'v_data': 1, 'ct_calst': 0, 'update': {'status': 'pending', 'has_update': True, 'new_version': '20230913-114244/v1.14.0-gcb84623', 'old_version': '20231107-165007/v1.14.1-rc1-g0617c15', 'beta_version': '20231107-165007/v1.14.1-rc1-g0617c15'}, 'ram_total': 49928, 'ram_free': 31560, 'fs_size': 233681, 'fs_free': 153361, 'uptime': 1212565} 2024-06-22 07:20:25.566 DEBUG (MainThread) [aioshelly.block_device.coap] Sending request 'cit/d' to device 192.168.1.123 2024-06-22 07:20:25.583 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.123, type=CoapType.REPLY(69), options={3332: b'SHEM-3#3494547481D2#2'}, payload={'blk': [{'I': 1, 'D': 'relay_0'}, {'I': 2, 'D': 'emeter_0'}, {'I': 3, 'D': 'emeter_1'}, {'I': 4, 'D': 'emeter_2'}, {'I': 5, 'D': 'device'}], 'sen': [{'I': 9103, 'T': 'EVC', 'D': 'cfgChanged', 'R': 'U16', 'L': 5}, {'I': 1101, 'T': 'S', 'D': 'output', 'R': '0/1', 'L': 1}, {'I': 4105, 'T': 'P', 'D': 'power', 'U': 'W', 'L': 2}, {'I': 4106, 'T': 'E', 'D': 'energy', 'U': 'Wh', 'L': 2}, {'I': 4107, 'T': 'E', 'D': 'energyReturned', 'U': 'Wh', 'L': 2}, {'I': 4108, 'T': 'V', 'D': 'voltage', 'U': 'V', 'L': 2}, {'I': 4109, 'T': 'I', 'D': 'current', 'U': 'A', 'L': 2}, {'I': 4110, 'T': 'S', 'D': 'powerFactor', 'R': ['0/1', '-1'], 'L': 2}, {'I': 4205, 'T': 'P', 'D': 'power', 'U': 'W', 'L': 3}, {'I': 4206, 'T': 'E', 'D': 'energy', 'U': 'Wh', 'L': 3}, {'I': 4207, 'T': 'E', 'D': 'energyReturned', 'U': 'Wh', 'L': 3}, {'I': 4208, 'T': 'V', 'D': 'voltage', 'U': 'V', 'L': 3}, {'I': 4209, 'T': 'I', 'D': 'current', 'U': 'A', 'L': 3}, {'I': 4210, 'T': 'S', 'D': 'powerFactor', 'R': ['0/1', '-1'], 'L': 3}, {'I': 4305, 'T': 'P', 'D': 'power', 'U': 'W', 'L': 4}, {'I': 4306, 'T': 'E', 'D': 'energy', 'U': 'Wh', 'L': 4}, {'I': 4307, 'T': 'E', 'D': 'energyReturned', 'U': 'Wh', 'L': 4}, {'I': 4308, 'T': 'V', 'D': 'voltage', 'U': 'V', 'L': 4}, {'I': 4309, 'T': 'I', 'D': 'current', 'U': 'A', 'L': 4}, {'I': 4310, 'T': 'S', 'D': 'powerFactor', 'R': ['0/1', '-1'], 'L': 4}, {'I': 6102, 'T': 'A', 'D': 'overpower', 'R': ['0/1', '-1'], 'L': 1}]} 2024-06-22 07:20:25.583 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 7481D2 2024-06-22 07:20:25.650 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033625.6, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -99, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', ''], ['6d:f0:3e:10:ba:ad', -76, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', 'Cf/gAAHcyji+Fg==']]], 'ts': 1719033625.6}]}} 2024-06-22 07:20:25.650 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033625.6, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -99, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', ''], ['6d:f0:3e:10:ba:ad', -76, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', 'Cf/gAAHcyji+Fg==']]], 'ts': 1719033625.6}]} 2024-06-22 07:20:25.650 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:25.653 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.185, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#3C6105E427C0#2', 3412: b'\x96\x00', 3420: b'\x85\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 24], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 53.09], [0, 3105, 127.57], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:25.654 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id E427C0 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-3C6105E427C0 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-3C6105E427C0: 0 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-3C6105E427C0 data 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:25.654 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:25.919 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033625.88, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['c0:28:8d:ff:ae:e9', -94, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', '']]], 'ts': 1719033625.88}]}} 2024-06-22 07:20:25.919 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033625.88, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['c0:28:8d:ff:ae:e9', -94, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', '']]], 'ts': 1719033625.88}]} 2024-06-22 07:20:25.920 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.013 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.89, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#E8DB84D784EF#2', 3412: b'\x96\x00', 3420: b'\x04\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 100], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 49.57], [0, 3105, 121.22], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:26.013 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id D784EF 2024-06-22 07:20:26.014 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-E8DB84D784EF handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:26.014 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-E8DB84D784EF: 0 2024-06-22 07:20:26.014 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-E8DB84D784EF data 2024-06-22 07:20:26.014 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:26.014 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:26.015 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:26.015 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:26.146 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.180:80): {'src': 'shellyplus1-a8032aba8ea4', 'dst': 'aios-140094427280160', 'method': 'NotifyEvent', 'params': {'ts': 1719033626.1, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -88, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033626.1}]}} 2024-06-22 07:20:26.147 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033626.1, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -88, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033626.1}]} 2024-06-22 07:20:26.147 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning baksida hus handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.204 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.108, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-1#E094D5#2', 3412: b'\x96\x00', 3420: b'\n\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 4]]} 2024-06-22 07:20:26.204 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id E094D5 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shelly1-E094D5 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E094D5: 0 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shelly1-E094D5 data 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_0 2024-06-22 07:20:26.205 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_1 2024-06-22 07:20:26.206 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_2 2024-06-22 07:20:26.206 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:26.303 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033626.25, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4c:c9:5e:16:db:71', -87, 'G/91AEIEAYBuTMleFttxTsleFttwAQAAAAAAAA==', ''], ['63:de:6b:9b:c6:7a', -81, 'AgEaG/9MAAwOAJDY8Pn4o+vQWQs7EgQQBkod2qe/eA==', '']]], 'ts': 1719033626.25}]}} 2024-06-22 07:20:26.303 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033626.25, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4c:c9:5e:16:db:71', -87, 'G/91AEIEAYBuTMleFttxTsleFttwAQAAAAAAAA==', ''], ['63:de:6b:9b:c6:7a', -81, 'AgEaG/9MAAwOAJDY8Pn4o+vQWQs7EgQQBkod2qe/eA==', '']]], 'ts': 1719033626.25}]} 2024-06-22 07:20:26.304 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.581 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033626.54, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['5d:5d:5d:79:84:d8', -86, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033626.54}]}} 2024-06-22 07:20:26.582 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033626.54, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['5d:5d:5d:79:84:d8', -86, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033626.54}]} 2024-06-22 07:20:26.582 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.632 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033626.58, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:de:6b:9b:c6:7a', -78, 'AgEaG/9MAAwOAJHYDMSXxxMx0KMFE/0QBkod2qe/eA==', ''], ['4d:e4:4b:07:57:af', -89, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033626.58}]}} 2024-06-22 07:20:26.633 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033626.58, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:de:6b:9b:c6:7a', -78, 'AgEaG/9MAAwOAJHYDMSXxxMx0KMFE/0QBkod2qe/eA==', ''], ['4d:e4:4b:07:57:af', -89, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033626.58}]} 2024-06-22 07:20:26.633 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.719 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.103, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-1#E32111#2', 3412: b'\x96\x00', 3420: b'\x82\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0]]} 2024-06-22 07:20:26.719 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id E32111 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shelly1-E32111 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E32111: 0 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shelly1-E32111 data 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_0 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_1 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_2 2024-06-22 07:20:26.719 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:26.901 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033626.86, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['38:01:95:dd:2e:70', -96, 'G/91AEIEAYCOOAGV3S5wFrtuLS1yAQAAAAAAAA==', '']]], 'ts': 1719033626.86}]}} 2024-06-22 07:20:26.902 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033626.86, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['38:01:95:dd:2e:70', -96, 'G/91AEIEAYCOOAGV3S5wFrtuLS1yAQAAAAAAAA==', '']]], 'ts': 1719033626.86}]} 2024-06-22 07:20:26.902 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:26.920 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.70, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHPLG-S#577383#2', 3412: b'\x96\x00', 3420: b'r\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 4101, 0.0], [0, 4103, 1266], [0, 6102, 0], [0, 6109, 0.0], [0, 3104, 34.21], [0, 3105, 93.58], [0, 6101, 0]]} 2024-06-22 07:20:26.920 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 577383 2024-06-22 07:20:26.921 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Shelly Plug S handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:26.921 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for Shelly Plug S: 0 2024-06-22 07:20:26.921 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated Shelly Plug S data 2024-06-22 07:20:26.921 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block relay_0 2024-06-22 07:20:26.921 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:27.222 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033627.18, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4d:e4:4b:07:57:af', -90, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033627.18}]}} 2024-06-22 07:20:27.222 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033627.18, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4d:e4:4b:07:57:af', -90, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033627.18}]} 2024-06-22 07:20:27.222 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:27.247 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033627.2, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:81:b8:c2', -88, 'AgEGEP+pCwEFAAsBIArAuIH3xjA=', ''], ['ee:f1:86:0f:ac:c3', -78, 'B/9MABICAAM=', '']]], 'ts': 1719033627.2}]}} 2024-06-22 07:20:27.247 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033627.2, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:81:b8:c2', -88, 'AgEGEP+pCwEFAAsBIArAuIH3xjA=', ''], ['ee:f1:86:0f:ac:c3', -78, 'B/9MABICAAM=', '']]], 'ts': 1719033627.2}]} 2024-06-22 07:20:27.248 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:27.586 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033627.54, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['98:06:3c:f0:5b:cb', -81, 'G/91AEIEAYBumAY88FvLmgY88FvKAQAAAAAAAA==', '']]], 'ts': 1719033627.54}]}} 2024-06-22 07:20:27.587 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033627.54, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['98:06:3c:f0:5b:cb', -81, 'G/91AEIEAYBumAY88FvLmgY88FvKAQAAAAAAAA==', '']]], 'ts': 1719033627.54}]} 2024-06-22 07:20:27.587 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:27.740 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.230, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-25#E6673C#2', 3412: b'\x96\x00', 3420: b'\x03\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 1201, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 4201, 0.0], [0, 4203, 0], [0, 6202, 0], [0, 3104, 60.61], [0, 6101, 0], [0, 9101, 'relay'], [0, 4108, 240.76]]} 2024-06-22 07:20:27.740 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id E6673C 2024-06-22 07:20:27.740 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyswitch25-E6673C handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:27.740 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellyswitch25-E6673C: 0 2024-06-22 07:20:27.740 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellyswitch25-E6673C data 2024-06-22 07:20:27.740 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:27.740 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:27.741 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:28.136 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.105, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-25#00CCB6#2', 3412: b'\x96\x00', 3420: b'b\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 1201, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 42], [0, 2201, 0], [0, 2202, ''], [0, 2203, 6], [0, 4101, 0.0], [0, 4103, 5081], [0, 6102, 0], [0, 4201, 0.0], [0, 4203, 1342], [0, 6202, 0], [0, 3104, 45.19], [0, 6101, 0], [0, 9101, 'relay'], [0, 4108, 240.84]]} 2024-06-22 07:20:28.136 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 00CCB6 2024-06-22 07:20:28.136 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Lysrör garage ladan handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:28.136 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for Lysrör garage ladan: 0 2024-06-22 07:20:28.137 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated Lysrör garage ladan data 2024-06-22 07:20:28.137 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.137 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.137 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:28.204 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033628.16, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:de:6b:9b:c6:7a', -86, 'AgEaG/9MAAwOAJLYh5kCr+PcPl+59sQQBkod2qe/eA==', '']]], 'ts': 1719033628.16}]}} 2024-06-22 07:20:28.204 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033628.16, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:de:6b:9b:c6:7a', -86, 'AgEaG/9MAAwOAJLYh5kCr+PcPl+59sQQBkod2qe/eA==', '']]], 'ts': 1719033628.16}]} 2024-06-22 07:20:28.204 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:28.381 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.180:80): {'src': 'shellyplus1-a8032aba8ea4', 'dst': 'aios-140094427280160', 'method': 'NotifyEvent', 'params': {'ts': 1719033628.34, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -95, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033628.34}]}} 2024-06-22 07:20:28.382 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033628.34, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -95, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033628.34}]} 2024-06-22 07:20:28.382 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning baksida hus handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:28.492 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.225, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHRGBW2#662655#2', 3412: b'\x96\x00', 3420: b'\x0f\x06'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 0], [0, 1201, 0], [0, 5201, 1], [0, 1301, 0], [0, 5301, 1], [0, 1401, 0], [0, 5401, 52], [0, 4101, 0.0], [0, 4103, 0], [0, 4201, 0.0], [0, 4203, 0], [0, 4301, 0.0], [0, 4303, 0], [0, 4401, 0.0], [0, 4403, 835], [0, 6102, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 9101, 'white']]} 2024-06-22 07:20:28.493 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 662655 2024-06-22 07:20:28.493 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyrgbw2-662655 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:28.493 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellyrgbw2-662655: 0 2024-06-22 07:20:28.493 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellyrgbw2-662655 data 2024-06-22 07:20:28.493 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:28.493 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_1 2024-06-22 07:20:28.494 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_2 2024-06-22 07:20:28.494 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_3 2024-06-22 07:20:28.494 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.740 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.214, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#E8DB84D78B36#2', 3412: b'\x96\x00', 3420: b'X\x01'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 80], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 77748], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 51.14], [0, 3105, 124.05], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:28.741 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id D78B36 2024-06-22 07:20:28.741 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-E8DB84D78B36 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:28.742 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-E8DB84D78B36: 0 2024-06-22 07:20:28.742 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-E8DB84D78B36 data 2024-06-22 07:20:28.742 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:28.742 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.743 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.743 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:28.750 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.239, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-1#E8DB84D37DF7#2', 3412: b'\x96\x00', 3420: b'\x03\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 2101, 0], [0, 2102, ''], [0, 2103, 1]]} 2024-06-22 07:20:28.751 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id D37DF7 2024-06-22 07:20:28.751 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shelly1-E8DB84D37DF7 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:28.751 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E8DB84D37DF7: 0 2024-06-22 07:20:28.751 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shelly1-E8DB84D37DF7 data 2024-06-22 07:20:28.752 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:28.752 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_0 2024-06-22 07:20:28.752 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_1 2024-06-22 07:20:28.752 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_2 2024-06-22 07:20:28.752 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:28.830 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033628.78, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['98:06:3c:f0:5b:cb', -84, 'G/91AEIEAYBumAY88FvLmgY88FvKAQAAAAAAAA==', '']]], 'ts': 1719033628.78}]}} 2024-06-22 07:20:28.831 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033628.78, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['98:06:3c:f0:5b:cb', -84, 'G/91AEIEAYBumAY88FvLmgY88FvKAQAAAAAAAA==', '']]], 'ts': 1719033628.78}]} 2024-06-22 07:20:28.831 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.142 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.118, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#F4CFA2ECB1A0#2', 3412: b'\x96\x00', 3420: b'@\x01'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 100], [0, 2101, 0], [0, 2102, ''], [0, 2103, 75], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 11611], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 51.05], [0, 3105, 123.88], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:29.143 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id ECB1A0 2024-06-22 07:20:29.143 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-F4CFA2ECB1A0 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.143 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-F4CFA2ECB1A0: 0 2024-06-22 07:20:29.143 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-F4CFA2ECB1A0 data 2024-06-22 07:20:29.144 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:29.144 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.144 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.144 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:29.154 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.100, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHPLG-S#B57C7B#2', 3412: b'\x96\x00', 3420: b'\x14\x01'}, payload={'G': [[0, 9103, 0], [0, 1101, 1], [0, 4101, 0.0], [0, 4103, 243778], [0, 6102, 0], [0, 6109, 0.0], [0, 3104, 37.12], [0, 3105, 98.81], [0, 6101, 0]]} 2024-06-22 07:20:29.154 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id B57C7B 2024-06-22 07:20:29.154 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplug-s-B57C7B handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.155 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellyplug-s-B57C7B: 0 2024-06-22 07:20:29.155 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellyplug-s-B57C7B data 2024-06-22 07:20:29.155 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block relay_0 2024-06-22 07:20:29.155 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:29.200 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.14, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['64:1c:b0:11:68:af', -100, 'G/91AEIEAYBgZBywEWivZhywEWiuAQAAAAAAAA==', ''], ['c0:28:8d:ff:ae:e9', -90, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', ''], ['c0:28:8d:ff:ae:e9', -79, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', 'Fv8DAAEWNQAAAoyGHsovPMAojf+u6SI=']]], 'ts': 1719033629.14}]}} 2024-06-22 07:20:29.200 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.14, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['64:1c:b0:11:68:af', -100, 'G/91AEIEAYBgZBywEWivZhywEWiuAQAAAAAAAA==', ''], ['c0:28:8d:ff:ae:e9', -90, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', ''], ['c0:28:8d:ff:ae:e9', -79, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', 'Fv8DAAEWNQAAAoyGHsovPMAojf+u6SI=']]], 'ts': 1719033629.14}]} 2024-06-22 07:20:29.200 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.349 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.180:80): {'src': 'shellyplus1-a8032aba8ea4', 'dst': 'aios-140094427280160', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.3, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['64:1c:b0:11:68:af', -91, 'G/91AEIEAYBgZBywEWivZhywEWiuAQAAAAAAAA==', '']]], 'ts': 1719033629.3}]}} 2024-06-22 07:20:29.349 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.3, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['64:1c:b0:11:68:af', -91, 'G/91AEIEAYBgZBywEWivZhywEWiuAQAAAAAAAA==', '']]], 'ts': 1719033629.3}]} 2024-06-22 07:20:29.350 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning baksida hus handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.443 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.4, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['c0:28:8d:ff:ae:e9', -94, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', '']]], 'ts': 1719033629.4}]}} 2024-06-22 07:20:29.444 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.4, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['c0:28:8d:ff:ae:e9', -94, 'AgEaAggAAwNh/hD/AwABFjUAAAKMhh7KLzwi', '']]], 'ts': 1719033629.4}]} 2024-06-22 07:20:29.444 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.458 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.129, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#F4CFA2ECAA44#2', 3412: b'\x96\x00', 3420: b'\t\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 47], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 52.69], [0, 3105, 126.85], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:29.459 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id ECAA44 2024-06-22 07:20:29.459 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-F4CFA2ECAA44 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.459 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-F4CFA2ECAA44: 0 2024-06-22 07:20:29.459 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-F4CFA2ECAA44 data 2024-06-22 07:20:29.460 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:29.460 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.460 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.460 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:29.538 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.46, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['38:01:95:dd:2e:70', -86, 'G/91AEIEAYCOOAGV3S5wFrtuLS1yAQAAAAAAAA==', '']]], 'ts': 1719033629.46}]}} 2024-06-22 07:20:29.538 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.46, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['38:01:95:dd:2e:70', -86, 'G/91AEIEAYCOOAGV3S5wFrtuLS1yAQAAAAAAAA==', '']]], 'ts': 1719033629.46}]} 2024-06-22 07:20:29.539 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.603 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.243, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#E8DB84D7906F#2', 3412: b'\x96\x00', 3420: b'\xcc\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 23], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 4066], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 50.67], [0, 3105, 123.2], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:29.603 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id D7906F 2024-06-22 07:20:29.603 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-E8DB84D7906F handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-E8DB84D7906F: 0 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-E8DB84D7906F data 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.604 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:29.622 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.223, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHPLG-S#B4C265#2', 3412: b'\x96\x00', 3420: b'\x05\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 1], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 3104, 29.69], [0, 3105, 85.45], [0, 6101, 0]]} 2024-06-22 07:20:29.623 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id B4C265 2024-06-22 07:20:29.623 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplug-s-B4C265 handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.623 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellyplug-s-B4C265: 0 2024-06-22 07:20:29.623 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellyplug-s-B4C265 data 2024-06-22 07:20:29.623 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block relay_0 2024-06-22 07:20:29.623 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:29.652 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.180:80): {'src': 'shellyplus1-a8032aba8ea4', 'dst': 'aios-140094427280160', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.61, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -86, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033629.61}]}} 2024-06-22 07:20:29.652 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.61, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -86, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033629.61}]} 2024-06-22 07:20:29.653 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning baksida hus handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.757 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033629.72, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -98, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033629.72}]}} 2024-06-22 07:20:29.758 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033629.72, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['30:c6:f7:8b:be:52', -98, 'AgEGEP+pCwEFAAsBIApQvov3xjA=', '']]], 'ts': 1719033629.72}]} 2024-06-22 07:20:29.758 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:29.940 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.234, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#84CCA8AE020E#2', 3412: b'\x96\x00', 3420: b'\x9d\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 22], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 53.71], [0, 3105, 128.67], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:29.940 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id AE020E 2024-06-22 07:20:29.940 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-84CCA8AE020E handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:29.940 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-84CCA8AE020E: 0 2024-06-22 07:20:29.941 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-84CCA8AE020E data 2024-06-22 07:20:29.941 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:29.941 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.941 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:29.941 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:30.095 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033630.05, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['48:98:72:64:5f:9e', -93, 'AgEaAgoMC/9MABAGDhlDNRwo', '']]], 'ts': 1719033630.05}]}} 2024-06-22 07:20:30.096 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033630.05, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['48:98:72:64:5f:9e', -93, 'AgEaAgoMC/9MABAGDhlDNRwo', '']]], 'ts': 1719033630.05}]} 2024-06-22 07:20:30.096 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:30.465 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033630.4, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['5d:5d:5d:79:84:d8', -75, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', 'Cf/gAAGXyoc0qg=='], ['72:f8:50:13:dc:86', -81, 'AgEaF/9MAAkIEx/AqAHbG1gWCAAi+OP9YcYr', '']]], 'ts': 1719033630.4}]}} 2024-06-22 07:20:30.466 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033630.4, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['5d:5d:5d:79:84:d8', -75, 'AwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', 'Cf/gAAGXyoc0qg=='], ['72:f8:50:13:dc:86', -81, 'AgEaF/9MAAkIEx/AqAHbG1gWCAAi+OP9YcYr', '']]], 'ts': 1719033630.4}]} 2024-06-22 07:20:30.466 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:30.649 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.83, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHDM-2#D8BFC01A015F#2', 3412: b'\x96\x00', 3420: b'\xa2\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 5101, 42], [0, 2101, 0], [0, 2102, ''], [0, 2103, 0], [0, 2201, 0], [0, 2202, ''], [0, 2203, 0], [0, 4101, 0.0], [0, 4103, 0], [0, 6102, 0], [0, 6109, 0.0], [0, 6104, 0], [0, 3104, 55.51], [0, 3105, 131.91], [0, 6101, 0], [0, 9101, 'white']]} 2024-06-22 07:20:30.649 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id 1A015F 2024-06-22 07:20:30.650 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellydimmer2-D8BFC01A015F handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:30.650 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shellydimmer2-D8BFC01A015F: 0 2024-06-22 07:20:30.650 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shellydimmer2-D8BFC01A015F data 2024-06-22 07:20:30.650 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block light_0 2024-06-22 07:20:30.650 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:30.651 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:30.651 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device 2024-06-22 07:20:30.743 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.249:80): {'src': 'shellyplusplugs-e465b8b8bcac', 'dst': 'aios-140094425869984', 'method': 'NotifyEvent', 'params': {'ts': 1719033630.7, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -88, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033630.7}]}} 2024-06-22 07:20:30.743 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033630.7, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['63:ab:68:66:51:bc', -88, 'AgECAwOf/hcWn/4AAAAAAAAAAAAAAAAAAAAAAAAAAA==', '']]], 'ts': 1719033630.7}]} 2024-06-22 07:20:30.743 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shellyplusplugs-e465b8b8bcac handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:30.781 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(192.168.1.171:80): {'src': 'shellyplus1-441793aab098', 'dst': 'aios-140094427617360', 'method': 'NotifyEvent', 'params': {'ts': 1719033630.72, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4c:c9:5e:16:db:71', -88, 'G/91AEIEAYBuTMleFttxTsleFttwAQAAAAAAAA==', ''], ['4d:e4:4b:07:57:af', -87, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033630.72}]}} 2024-06-22 07:20:30.781 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {'ts': 1719033630.72, 'events': [{'component': 'script:1', 'id': 1, 'event': 'ble.scan_result', 'data': [2, [['4c:c9:5e:16:db:71', -88, 'G/91AEIEAYBuTMleFttxTsleFttwAQAAAAAAAA==', ''], ['4d:e4:4b:07:57:af', -87, 'AgEaAgoLDP9MABAHJh9ap1BcWA==', '']]], 'ts': 1719033630.72}]} 2024-06-22 07:20:30.781 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Bevattning norrsida häck handle update, type: RpcUpdateType.EVENT 2024-06-22 07:20:30.973 DEBUG (MainThread) [aioshelly.block_device.coap] CoapMessage: ip=192.168.1.155, type=CoapType.PERIODIC(30), options={11: b's', 3332: b'SHSW-1#E8DB84AC058D#2', 3412: b'\x96\x00', 3420: b'\x90\x00'}, payload={'G': [[0, 9103, 0], [0, 1101, 0], [0, 2101, 1], [0, 2102, ''], [0, 2103, 1]]} 2024-06-22 07:20:30.973 DEBUG (MainThread) [aioshelly.block_device.coap] Calling CoAP message update for device id AC058D 2024-06-22 07:20:30.973 DEBUG (MainThread) [homeassistant.components.shelly] Shelly shelly1-E8DB84AC058D handle update, type: BlockUpdateType.COAP_PERIODIC 2024-06-22 07:20:30.973 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E8DB84AC058D: 0 2024-06-22 07:20:30.973 DEBUG (MainThread) [homeassistant.components.shelly] Manually updated shelly1-E8DB84AC058D data 2024-06-22 07:20:30.974 DEBUG (MainThread) [homeassistant.components.shelly] Skipping block event 2024-06-22 07:20:30.974 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_0 2024-06-22 07:20:30.974 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_1 2024-06-22 07:20:30.974 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block sensor_2 2024-06-22 07:20:30.974 DEBUG (MainThread) [homeassistant.components.shelly] Skipping non-input event block device

chemelli74 commented 5 months ago

Please attach file and don't put the content on the comment. Is hard to read that way. Thank you

rhoddan commented 5 months ago

Please attach file and don't put the content on the comment. Is hard to read that way. Thank you

home-assistant 5.log

chemelli74 commented 5 months ago

You log is full of failures for all your Shelly's. There is something you need to investigate about your network.

rhoddan commented 5 months ago

You log is full of failures for all your Shelly's. There is something you need to investigate about your network.

This is strange. It started same time as other persons have got problem with their Shellies. Of course it can be network problems but it's only Shelly related problems

thecode commented 5 months ago

You log is full of failures for all your Shelly's. There is something you need to investigate about your network.

@chemelli74, there is nothing wrong in his log, there are no push update failures in his log, messages like:

2024-06-22 06:31:23.530 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E094D5: 0

Are logged even without errors. If the counter is 0, there are no errors, in the file you linked all the counters are zero, which means he doesn't have any push update failures.

@rhoddan since you issue is constantly at the same time we need to understand what happen at this time, while I assume log will probably not show anything special, it would be good to enable the log and let it run overnight so we have the relevant time in the log. If the log will be too big you can cut +-15 minutes near 02:00

rhoddan commented 5 months ago

You log is full of failures for all your Shelly's. There is something you need to investigate about your network.

@chemelli74, there is nothing wrong in his log, there are no push update failures in his log, messages like:

2024-06-22 06:31:23.530 DEBUG (MainThread) [homeassistant.components.shelly] Push update failures for shelly1-E094D5: 0

Are logged even without errors. If the counter is 0, there are no errors, in the file you linked all the counters are zero, which means he doesn't have any push update failures.

@rhoddan since you issue is constantly at the same time we need to understand what happen at this time, while I assume log will probably not show anything special, it would be good to enable the log and let it run overnight so we have the relevant time in the log. If the log will be too big you can cut +-15 minutes near 02:00

Thanks for your feedback. It's not only the specific time but most often. Not every night but most often. BTW - Is there some easy way to schedule an activation/de-activation of debug?

mbuico commented 5 months ago

Same here on a fritzbox cabled mesh network getting the same error at 02:01 from the 2 working shellys 3em placed at 20 cm next to the mesh master. They have both static IP.

2024-06-14 02:01:28.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-14 02:01:42.057 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-15 02:01:30.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-16 02:01:28.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-17 02:01:29.057 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-17 02:01:29.400 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-19 02:01:29.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-19 02:01:39.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-20 02:01:28.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-20 02:01:29.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-21 02:01:29.059 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-21 02:01:29.400 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-22 02:01:28.059 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError()

rhoddan commented 5 months ago

Same here on a fritzbox cabled mesh network getting the same error at 02:01 from the 2 working shellys 3em placed at 20 cm next to the mesh master. They have both static IP.

2024-06-14 02:01:28.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-14 02:01:42.057 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-15 02:01:30.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-16 02:01:28.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-17 02:01:29.057 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-17 02:01:29.400 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-19 02:01:29.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-19 02:01:39.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-20 02:01:28.399 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-20 02:01:29.058 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-21 02:01:29.059 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError() 2024-06-21 02:01:29.400 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionError() 2024-06-22 02:01:28.059 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionError()

This is very interesting - exactly same time as I got problem

chemelli74 commented 5 months ago

If I'm not wrong, the device is able to store more local data since a few firmware versions. Maybe there is a issue when data grow and there is no cloud connection. Can you try to enable cloud and see if it does any difference ?

aldets commented 5 months ago

I've been having the same issue for a few months or so. In my case anyhow:

To avoid this I've created sensors manually in the template.yaml and with that everything is working.

I've also managed to reproduce the issue whenever needed:

thecode commented 5 months ago

If I'm not wrong, the device is able to store more local data since a few firmware versions. Maybe there is a issue when data grow and there is no cloud connection. Can you try to enable cloud and see if it does any difference ?

@chemelli74 my Shelly 3EM has cloud disabled for few years and I don't experience this issue.

CAVACO-PT commented 4 months ago

Hello , i have the same issue , everynight now , shelly em , has become unavailable , and i can only get it back by turn power off in the breaker he is connected to , i noticed since i have 2 of them , that the one in an older firmware doesnt have this problem but the one in the most updated one has

no issue :

Shelly EM por Shelly Firmware: 20230503-102005/v1.13.0-g9aed950 Hardware: gen1 (SHEM)

with this issue :

Shelly EM por Shelly Firmware: 20230913-114150/v1.14.0-gcb84623 Hardware: gen1 (SHEM)

I never had any issue until this newer version of HA 2024.6

Core 2024.6.4 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240610.1

CAVACO-PT commented 4 months ago

This graph shows it off during the day when i was not home to turn off and on the breaker , and this night

image

mbuico commented 4 months ago

Hello all, I disabled "eco mode" and got rid of errors for 2 days now. not sure if due to the forced reboot or to the eco mode itself.. anyway still monitoring..

jempo commented 4 months ago

Hi all, i've the same error but for shelly 1 EM. I've disabled the ECO mode but nothing changes. Also for me this error started from 2024.7 update, but i don't have understand if there is any code changes.

Vurpan commented 4 months ago

I have had the same problem for a couple of months with my Shelly 3EM. 2.00 AM a value appears. It doesn't happen on any other Shelly product. The value that comes is always the total consumption that is registered in Shelly 3EM. No changes in the network have taken place.

rhoddan commented 4 months ago

I have had the same problem for a couple of months with my Shelly 3EM. 2.00 AM a value appears. It doesn't happen on any other Shelly product. The value that comes is always the total consumption that is registered in Shelly 3EM. No changes in the network have taken place.

Very interesting - I thought it was just me...

Vurpan commented 4 months ago

After reading this thread, I tried yesterday to turn off the eco mode, didn't know it was on. But the interesting thing was that when I did that, the device rebooted and then I got the value right then. At 12 yesterday when I changed that setting, I got a value of exactly the total consumption. But last night at 2 am I got no value. First time in a long time. If I may guess, it sends some value when it restarts. will test for a couple of days, both restarting at other times (to see if I get value) and see if removing eco mode helped.

jempo commented 4 months ago

From my side i've resolved deleting the SLQLite DB and now returned to work normally. Maybe could be a problem with corrupted DB, i've see the warning like this: The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly

Vurpan commented 4 months ago

2 days in a row now with no strange values. So for me it seems that turning off ECO mode helped.

jempo commented 4 months ago

2 days in a row now with no strange values. So for me it seems that turning off ECO mode helped.

Good, i've tried turning off eco mode but doesn't work from my side. @Vurpan did you have update to the new version? Maybe that version fixed the problem.

Vurpan commented 4 months ago

@jempo No, I updated a couple of days earlier, but still had the problem. Until I turned off ECO. I have had incorrect values ​​since last year. Also have the latest firmware in Shelly EM 3. I am more confident that it is EM 3 that creates the problem. But that's just my gut feeling.

Vurpan commented 4 months ago

Ok, so I got two days with no weird values. Last night at 02.00 AM the value came back. I discovered it at 11am today. Then I restarted the device immediately. Then I got an incorrect value again at that point. Does anyone know if Shelly 3EM restarts once a day?

Vurpan commented 4 months ago

Now I have looked in logs. I haven't had the error since last year as I wrote before. It started at 02:00 on May 5 this year. On May 4, I updated to a new version of Home Assistant. Must have been the first version released in May. I have updated every time a new version is released, but the error has been there ever since. A few days the error has not come, a few days it has come twice. The first error of a day is always 02.00 if there is another one, it may vary in time. Hope this helps if anyone is troubleshooting.

rhoddan commented 4 months ago

Now I have looked in logs. I haven't had the error since last year as I wrote before. It started at 02:00 on May 5 this year. On May 4, I updated to a new version of Home Assistant. Must have been the first version released in May. I have updated every time a new version is released, but the error has been there ever since. A few days the error has not come, a few days it has come twice. The first error of a day is always 02.00 if there is another one, it may vary in time. Hope this helps if anyone is troubleshooting.

I recognize this. Can't quite remember which version was the problem, but guess the same as you. This problem is very annoying as I often need to "fix" the database because of this.

Kokahontas13 commented 3 months ago

i have the same issue on my energy dashboard. It started around July 24. Unfortunately for me, my shelly pros are not in eco mode so there is nothing for me to disable. I have rebooted both devices now and will monitor the status

rhoddan commented 3 months ago

i have the same issue on my energy dashboard. It started around July 24. Unfortunately for me, my shelly pros are not in eco mode so there is nothing for me to disable. I have rebooted both devices now and will monitor the status

Eco off did not solve my problem either...

tkekkone commented 2 months ago

Same symptoms here on all shellies on particular wlan ap. Seems to be same cause as with some ubiquiti users here. Mine are zyxel APs and they switch channels at 3am. Don't know why radio weather is such that it needs to switch almost every night.

2024-08-29 03:01:08 Wireless LANStation: 70:61:be:e2:d4:2f connected on Channel: 12, SSID: <>, 2.4GHz, Signal: -55dBm, Interface: wlan-1-1
2024-08-29 03:00:43 Wireless LANStation: 70:61:be:e2:d4:2f disconnected by Configuration Changed on Channel: 12, SSID: <>, 2.4GHz, Signal: -55dBm, Download/Upload: 2.02MB/3.15MB, reason 4, Interface: wlan-1-1
2024-08-29 03:00:42 WLAN Dynamic Channel SelectionRadio1 DCS change channel from 1 to 12.
2024-08-29 03:00:42 WLAN Dynamic Channel SelectionRadio1 DCS start channel selection procedure
2024-08-29 03:00:01 WLAN Dynamic Channel SelectionRadio1 will start DCS procedure after random backoff time(0 sec)

Probably not a home assistant problem.

RIBA63 commented 1 month ago

I have exactly the same problem. HA logs show that daily at 02:01:29 the Shelly 3EM disconnects and reconnects at 02:01:30. My Unifi network doesn't show that the devices disconnected from WIFI and the Shelly App does not show any disconnects neither. My other (more than 25) Shelly devices don't show this behavior. My 2ct : must be something in the Shelly 3EM firmware... PS. Running latest firmwares on all my devices. I don't have channel optimization on. All devices have excellent WIFI connection...

mbuico commented 1 month ago

After initial suspect of disabling eco mode would fix the problem, I can confirm it doesn't work... I have 2 shelly 3em and they keep disconnecting at the same time: 2024-10-04 02:01:30.629 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM 2 data: Error fetching data: DeviceConnectionTimeoutError(TimeoutError()) 2024-10-04 02:01:41.056 ERROR (MainThread) [homeassistant.components.shelly] Error fetching Shelly 3EM data: Error fetching data: DeviceConnectionTimeoutError(TimeoutError())

Not sure why after an HA update I have 1-2 days of clean logs...

Xygen commented 11 hours ago

As far as I found out, it happens to template sensor, which perform calculations like summing up the 3 phases energy sensors, as well as to group helpers. Therefore I created a template sensor which is only adding positive changes to the target sensor. Work’s quite well for 2 weeks now. Anyone interested?

rhoddan commented 11 hours ago

As far as I found out, it happens to template sensor, which perform calculations like summing up the 3 phases energy sensors, as well as to group helpers. Therefore I created a template sensor which is only adding positive changes to the target sensor. Work’s quite well for 2 weeks now. Anyone interested?

I'm interested!

Xygen commented 8 hours ago

I'm interested!

Nice! :) So this template sensor calculates the total energy consumption of two freezers. It ensures that only positive changes in energy values are added to the total, using the function max(input - prev_input, 0). This approach filters out negative changes (e.g., from sensor resets or glitches), making the calculation more robust and less prone to errors caused by inconsistent or faulty sensor data. The sensor also tracks previous values to calculate the change and avoids adding energy values when sensors are unavailable or unknown.

Looking forward to your feedback or suggestions for improvement.

template:
  - sensor:
      - name: "Freezer Total Energy"
        unique_id: "freezer_total_energy"
        state: >
          {% set input1 = states('sensor.s3_freezer_kitchen_energy') | float(0) %}
          {% set input2 = states('sensor.s9_freezer_basement_energy') | float(0) %}
          {% set prev_input1 = state_attr('sensor.freezer_total_energy', 'previous_input1') | float(0) %}
          {% set prev_input2 = state_attr('sensor.freezer_total_energy', 'previous_input2') | float(0) %}
          {% if input1 == 'unavailable' or input2 == 'unavailable' %}
            {{ states('sensor.freezer_total_energy') | float(0) }}
          {% else %}
            {% set change_input1 = max(input1 - prev_input1, 0) %}
            {% set change_input2 = max(input2 - prev_input2, 0) %}
            {{ states('sensor.freezer_total_energy') | float(0) + change_input1 + change_input2 }}
          {% endif %}
        availability: >
          {{ states('sensor.s3_freezer_kitchen_energy') not in ['unknown', 'unavailable'] and states('sensor.s9_freezer_basement_energy') not in ['unknown', 'unavailable'] }}
        attributes:
          state_class: "total_increasing"
          unit_of_measurement: "kWh"
          device_class: "energy"
          icon: "mdi:lightning-bolt-circle"
          friendly_name: "Freezer Total Energy"
          previous_input1: >
            {% if states('sensor.s3_freezer_kitchen_energy') not in ['unavailable', 'unknown'] %}
              {{ states('sensor.s3_freezer_kitchen_energy') }}
            {% else %}
              {{ state_attr('sensor.freezer_total_energy', 'previous_input1') }}
            {% endif %}
          previous_input2: >
            {% if states('sensor.s9_freezer_basement_energy') not in ['unavailable', 'unknown'] %}
              {{ states('sensor.s9_freezer_basement_energy') }}
            {% else %}
              {{ state_attr('sensor.freezer_total_energy', 'previous_input2') }}
            {% endif %}

This is the result: image Blue is the new sensor from the template above, yellow is a group helper sensor.