core: 0.115.1 : Broadlink RM mini 3 : Error fetching device data: The device is offline
The problem
Since 0.115.1 I have this error related to my Broadlink RM mini 3 showing in the logs at a rate of about 2 per hour.
Error fetching device data: The device is offline
I have the device on a VLAN without internet access. I know it’s trying to call home and while not able reconnects on my wifi on a 5/2 minutes period. Maybe it has something to do with this error.
Environment
- Home Assistant Core release with the issue: 0.115.1
- Last working Home Assistant Core release (if known): 0.115.0
- Operating environment (OS/Container/Supervised/Core): HassOS 4.13 on a Pi3B+
- Integration causing this issue: Broadlink
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/broadlink/
Problem-relevant configuration.yaml
Config done with configuration flow.
N/A
Traceback/Error logs
2020-09-22 09:15:52 ERROR (MainThread) [homeassistant.components.broadlink.updater] Error fetching device data: The device is offline
2020-09-22 09:16:57 INFO (MainThread) [homeassistant.components.broadlink.updater] Fetching device data recovered
2020-09-22 09:42:57 ERROR (MainThread) [homeassistant.components.broadlink.updater] Error fetching device data: The device is offline
2020-09-22 09:44:02 INFO (MainThread) [homeassistant.components.broadlink.updater] Fetching device data recovered
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 46 (22 by maintainers)
If you are talking about the error messages, people found out what is going on. When you block internet access the device reboots every 3 minutes, this is why the updates fail. So we are creating a mechanism to simulate a connection to the cloud and keep the device awake. It will take a while, we want to finish implementing device discovery first.
I can offer 3 workarounds for now:
And run this script forever:
dear Felipe, could you please tell me, what problem can stump you? 😄
Felipe Martins Diel notifications@github.com 於 2020年11月6日 週五 08:35 寫道:
Would it also be possible to add more detail to the error message? Specifically, which device/hostname/IP is offline? I have multiple Broadlink devices, but cannot determine which one is having issues.
This update will likely resolve this, but it still needs testing.
@felipediel shouldnt blk.keep_alive be blk.ping ?? I see no reference to keep_alive in the code and python complains as well
@colethegamer123 The PR is open, but the fix is not yet merged/released. It is not even ready for review. This will take time. You should definitely workaround for now.
There seems to be a 1 minute hard coded update interval in updater.py, which could be made available as a configurable value.
update_interval=timedelta(minutes=1)and default timeout of 5 (seconds?) which maybe should be extended for this device type.It’s a RM mini 3 and Home Assistant reports firmware 44057.
Maybe that will hide this annoyance.
That could be another workaround !