Closed pipip closed 4 years ago
androidtv documentation androidtv source (message by IssueLinks)
It looks like maybe the traceback is incomplete because I see raise exc
a couple times but I don't see exactly what that exc
exception is. For example:
File "/data/data/com.termux/files/usr/lib/python3.8/asyncio/streams.py", line 375, in drain
raise exc
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 263, in async_update_ha_state
await self.async_device_update()
If you can post a log showing what this exception is, then I can handle it.
@JeffLIrion Thanks for your fast answer. Hmm, the exception is cut off in all my log files. This might be due to pm2 logging the errors. I have disabled the standard home assistant log file since this was filling up my sd card in hours (log file was several GB). I will try to get the full exception...
It would be interesting to see the full traceback, but it's OK if you can't get it. I submitted a fix that will work no matter what type of exception it encounters.
The problem
Home Assistant including FireTV (androidtv) works fine, so the setup in general seems fine. At some point at night (I assume when FireTV goes into sleep mode?), the log gets filled up and CPU raises slowly until 100% due to the heavy log file.
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
The provided error log gets written over and over again. Several GB a day if I do not use logrotate. Restart of home assistant solves the problem until at some point it starts all over again.