I have a problem with my Home Assistant, where, after a period of time (could be minutes, hours or days after a restart of HA) I get the following error, various integrations seem to fail to get data, and my dashboards (which run HomeHabit) all fail to get new data/camera streams etc.
2020-04-18 13:37:16 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.4527698368] Connection closed by client
2020-04-18 13:38:40 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.4526058032] Connection closed by client
The failure can go on until a reboot, or fix it self after a while, but once its happened once it seems to keep happening regularly. Is there anything obvious it could be please?
Strange question, but I assume HA is stable for most people? I have never managed to get it to stay up issue free for more than say 2 days (and often much less), without hitting a breaking issue requiring a restart of ha or often the whole box. I run on a mac - is that rare? Im using 0.108.0 (after backdating from 0.108.3 after even more regular issues) is that too new? I love HA, but I need it to just work, for weeks, months or longer, not hours.
I keep removing integrations in the hope of finding a dodgy one, but its still failing often:
config:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
#tts:
# - platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
switch: !include switches.yaml
hive:
username: [email protected]
password: !secret hive_password
scan_interval: 1
#roku:
# - host: 192.168.1.3
camera:
- platform: foscam
ip: 192.168.1.191
port: 88
username: !secret foscam_username
password: !secret camera_password
name: Charlie
- platform: foscam
ip: 192.168.1.183
port: 88
username: !secret foscam_username
password: !secret camera_password
name: Lilly
- platform: generic
still_image_url: http://192.168.1.242:80/live/0/jpeg.jpg
stream_source: rtmp://192.168.1.242:80/live/0/h264.flv
username: admin
password: !secret camera_password
name: FrontDoor
rfxtrx:
device: /dev/tty.usbserial-A1LQ47X
sensor:
- platform: rfxtrx
devices:
085002054c0400ad79:
name: Lilly
08500201460100bf79:
name: Master Bedroom
08500202e20100c069:
name: Charlie
08500203bd0200c579:
name: Living Room
0716029e002e3870:
name: "Front Door Bell"
fire_event: true
- platform: here_travel_time
name: commute_removed
api_key: !secret here_apikey
origin_latitude: "removed"
origin_longitude: "-removed"
destination_latitude: "removed"
destination_longitude: "removed"
route_mode: fastest
traffic_mode: true
unit_system: imperial
- platform: here_travel_time
name: commute_removed
api_key: !secret here_apikey
origin_latitude: "removed"
origin_longitude: "-removed"
destination_latitude: "removed"
destination_longitude: "removed"
route_mode: fastest
traffic_mode: true
unit_system: imperial
#weather:
# - platform: openweathermap
# api_key: 0f9f586bf90145b947154ce3bce095e2
# mode: freedaily
# latitude: 50.931483
# longitude: -1.303895
remote:
# - platform: harmony
# name: "Living Room"
# host: 192.168.1.119
- platform: harmony
name: "Cinema Room"
host: 192.168.1.116
#spotify:
# client_id: !secret spotify_client_id
# client_secret: !secret spotify_client_secret
The log messages I see once things have stopped working are like:
2020-04-18 13:53:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of water_heater.hot_water is taking over 10 seconds
and
2020-04-18 13:16:53 ERROR (MainThread) [homeassistant.components.generic.camera] Timeout getting camera image from FrontDoor