core: Shelly: Error fetching data

The problem

In my log I have quite a few of “Error fetching data” errors

What is version of Home Assistant Core has the issue?

core-2021.3.4

What was the last working version of Home Assistant Core?

Not known

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Shelly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/shelly/

Example YAML snippet

Is set up using the integrations in the UI.
All Shelly devices have been enabled for CoIoT, and using unicast

Anything in the logs that might be useful for us?

2021-03-29 23:32:53 ERROR (MainThread) [homeassistant.components.shelly] Timeout fetching Master Bedroom Roller Shutter data
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.components.shelly] Finished fetching Master Bedroom Roller Shutter data in 10.003 seconds
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.master_bedroom_roller_shutter_cloud, old_state=<state binary_sensor.master_bedroom_roller_shutter_cloud=off; friendly_name=Master Bedroom Roller Shutter Cloud, device_class=connectivity @ 2021-03-29T23:31:43.326465+02:00>, new_state=<state binary_sensor.master_bedroom_roller_shutter_cloud=unavailable; friendly_name=Master Bedroom Roller Shutter Cloud, device_class=connectivity @ 2021-03-29T23:32:53.006579+02:00>>
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.master_bedroom_roller_shutter_firmware_update, old_state=<state binary_sensor.master_bedroom_roller_shutter_firmware_update=off; latest_stable_version=20210323-104714/v1.10.1-gf276b51, installed_version=20210323-104714/v1.10.1-gf276b51, friendly_name=Master Bedroom Roller Shutter Firmware Update, icon=mdi:update @ 2021-03-29T23:31:43.328388+02:00>, new_state=<state binary_sensor.master_bedroom_roller_shutter_firmware_update=unavailable; friendly_name=Master Bedroom Roller Shutter Firmware Update, icon=mdi:update @ 2021-03-29T23:32:53.008650+02:00>>
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.master_bedroom_roller_shutter_rssi, old_state=<state sensor.master_bedroom_roller_shutter_rssi=-77; unit_of_measurement=dB, friendly_name=Master Bedroom Roller Shutter RSSI, device_class=signal_strength @ 2021-03-29T23:31:43.331718+02:00>, new_state=<state sensor.master_bedroom_roller_shutter_rssi=unavailable; unit_of_measurement=dB, friendly_name=Master Bedroom Roller Shutter RSSI, device_class=signal_strength @ 2021-03-29T23:32:53.019204+02:00>>
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.master_bedroom_roller_shutter_uptime, old_state=<state sensor.master_bedroom_roller_shutter_uptime=2021-03-29T21:30:37+00:00; friendly_name=Master Bedroom Roller Shutter Uptime, device_class=timestamp @ 2021-03-29T23:31:43.333660+02:00>, new_state=<state sensor.master_bedroom_roller_shutter_uptime=unavailable; friendly_name=Master Bedroom Roller Shutter Uptime, device_class=timestamp @ 2021-03-29T23:32:53.020791+02:00>>
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [1700519976] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_cloud", "old_state": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_cloud", "state": "off", "attributes": {"friendly_name": "Master Bedroom Roller Shutter Cloud", "device_class": "connectivity"}, "last_changed": "2021-03-29T21:31:43.326465+00:00", "last_updated": "2021-03-29T21:31:43.326465+00:00", "context": {"id": "606a49073e1c1c74e4526110f497844e", "parent_id": null, "user_id": null}}, "new_state": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_cloud", "state": "unavailable", "attributes": {"friendly_name": "Master Bedroom Roller Shutter Cloud", "device_class": "connectivity"}, "last_changed": "2021-03-29T21:32:53.006579+00:00", "last_updated": "2021-03-29T21:32:53.006579+00:00", "context": {"id": "d7d3f28897d088fa1320f44f48b439e3", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2021-03-29T21:32:53.006579+00:00", "context": {"id": "d7d3f28897d088fa1320f44f48b439e3", "parent_id": null, "user_id": null}}}
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [1700519976] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_firmware_update", "old_state": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_firmware_update", "state": "off", "attributes": {"latest_stable_version": "20210323-104714/v1.10.1-gf276b51", "installed_version": "20210323-104714/v1.10.1-gf276b51", "friendly_name": "Master Bedroom Roller Shutter Firmware Update", "icon": "mdi:update"}, "last_changed": "2021-03-29T21:31:43.328388+00:00", "last_updated": "2021-03-29T21:31:43.328388+00:00", "context": {"id": "45dcc6669d5baa0ede6c076a5a5426da", "parent_id": null, "user_id": null}}, "new_state": {"entity_id": "binary_sensor.master_bedroom_roller_shutter_firmware_update", "state": "unavailable", "attributes": {"friendly_name": "Master Bedroom Roller Shutter Firmware Update", "icon": "mdi:update"}, "last_changed": "2021-03-29T21:32:53.008650+00:00", "last_updated": "2021-03-29T21:32:53.008650+00:00", "context": {"id": "6fde9d2639d1054ea5b90c00e38c2c71", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2021-03-29T21:32:53.008650+00:00", "context": {"id": "6fde9d2639d1054ea5b90c00e38c2c71", "parent_id": null, "user_id": null}}}
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [1700519976] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.master_bedroom_roller_shutter_rssi", "old_state": {"entity_id": "sensor.master_bedroom_roller_shutter_rssi", "state": "-77", "attributes": {"unit_of_measurement": "dB", "friendly_name": "Master Bedroom Roller Shutter RSSI", "device_class": "signal_strength"}, "last_changed": "2021-03-29T21:31:43.331718+00:00", "last_updated": "2021-03-29T21:31:43.331718+00:00", "context": {"id": "6986f57cd749601a30b8b6956f84aad8", "parent_id": null, "user_id": null}}, "new_state": {"entity_id": "sensor.master_bedroom_roller_shutter_rssi", "state": "unavailable", "attributes": {"unit_of_measurement": "dB", "friendly_name": "Master Bedroom Roller Shutter RSSI", "device_class": "signal_strength"}, "last_changed": "2021-03-29T21:32:53.019204+00:00", "last_updated": "2021-03-29T21:32:53.019204+00:00", "context": {"id": "677559aea28b25f5f7393a39b121569f", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2021-03-29T21:32:53.019204+00:00", "context": {"id": "677559aea28b25f5f7393a39b121569f", "parent_id": null, "user_id": null}}}
2021-03-29 23:32:53 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [1700519976] Sending {"id": 2, "type": "event", "event": {"event_type": "state_changed", "data": {"entity_id": "sensor.master_bedroom_roller_shutter_uptime", "old_state": {"entity_id": "sensor.master_bedroom_roller_shutter_uptime", "state": "2021-03-29T21:30:37+00:00", "attributes": {"friendly_name": "Master Bedroom Roller Shutter Uptime", "device_class": "timestamp"}, "last_changed": "2021-03-29T21:31:43.333660+00:00", "last_updated": "2021-03-29T21:31:43.333660+00:00", "context": {"id": "cb0875a766323194820956fdfadbeaf6", "parent_id": null, "user_id": null}}, "new_state": {"entity_id": "sensor.master_bedroom_roller_shutter_uptime", "state": "unavailable", "attributes": {"friendly_name": "Master Bedroom Roller Shutter Uptime", "device_class": "timestamp"}, "last_changed": "2021-03-29T21:32:53.020791+00:00", "last_updated": "2021-03-29T21:32:53.020791+00:00", "context": {"id": "0bdd74a89d2a74682567d4c11f7cedf5", "parent_id": null, "user_id": null}}}, "origin": "LOCAL", "time_fired": "2021-03-29T21:32:53.020791+00:00", "context": {"id": "0bdd74a89d2a74682567d4c11f7cedf5", "parent_id": null, "user_id": null}}}

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 24 (9 by maintainers)

Most upvoted comments

For those who have problems to exclude Shelly side:

  • Make sure you are on latest firmware and you set CoIoT peer on the device, this setting has huge improvement in sending events to HA.
  • You can leave a ping to the device running to the device to see if you see ping losses near the time you have problems in HA
  • Try to disable soft reboot and AP roaming
  • RSSI should be above -75, bellow you may experience problems.
  • Make sure it is not device specific, you can turn on debug log in the device or monitor uptime using http://device_ip/status