Odd behavior with version 0.84.6

Hi! ok, i dont have anything connected to the RPI execpt Power and ethernet. but you mean that this can be the issue?

I can send you logs later today, what kind om loggs are you looking for? i have the regular HA log, vill that help?

Hi! I have now made a bakup and are running hassio with that backup on a VM on a laptop. Its a huge performance upgrade but i still se the Unavalible and the “lag” but much much shorter.

Hey Sorry for late reply but been bussy. I am not sure what logs it is, have you tried to enable debug on the compontent that is “lagging” to see if more info can be found?

About the “upgrade” when the lag happens do you still need to reboot the device or will it “fix” it self?

it will self fix most times after maybe 30 - 60 sec but somtimes it had done a reboot / Crash on its own. from what i can see, its not a specific entity. its the whole system.

Hi! just did a reboot. same behavior. this is my log.

2019-01-18 06:28:16 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2019-01-18 06:28:18 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.braviatv_psk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-18 06:28:18 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.samsung_multi_room which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-18 06:28:18 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.alexa which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-18 06:28:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 212, in async_update_ha_state
    raise RuntimeError("Attribute hass is None for {}".format(self))
RuntimeError: Attribute hass is None for <Entity yr Symbol: 1>
2019-01-18 06:28:22 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
    raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: calendar.alexa_inkopslista
2019-01-18 06:29:03 WARNING (MainThread) [songpal.service] Got duplicate signature for MethodSignature(name='getSourceList', input={'scheme': <class 'str'>}, output={'source': <class 'str'>, 'title': <class 'str'>, 'isPlayable': 'bool', 'isBrowsable': 'bool', 'playAction': <class 'str'>, 'outputs': 'string*', 'meta': <class 'str'>, 'iconUrl': <class 'str'>, 'protocols': 'string*', 'upnpOperationInfo': 'UpnpOperationInfo'}, version='1.2'), existing was <Method avContent.getSourceList({'scheme': <class 'str'>}) -> {'iconUrl': <class 'str'>,
 'isBrowsable': 'bool',
 'isPlayable': 'bool',
 'meta': <class 'str'>,
 'outputs': 'string*',
 'playAction': <class 'str'>,
 'source': <class 'str'>,
 'title': <class 'str'>}>. Keeping the existing one
2019-01-18 06:29:03 WARNING (MainThread) [songpal.service] Got duplicate signature for MethodSignature(name='getStorageList', input={'uri': <class 'str'>, 'isRegistered': <class 'str'>}, output={'uri': <class 'str'>, 'deviceName': <class 'str'>, 'volumeLabel': <class 'str'>, 'permission': <class 'str'>, 'position': <class 'str'>, 'formattable': <class 'str'>, 'mounted': <class 'str'>, 'wholeCapacityMB': <class 'int'>, 'freeCapacityMB': <class 'int'>, 'systemAreaCapacityMB': <class 'int'>, 'isAvailable': <class 'str'>, 'lun': <class 'int'>, 'type': <class 'str'>, 'protocol': <class 'str'>, 'format': <class 'str'>, 'error': <class 'str'>, 'isRegistered': <class 'str'>, 'registrationDate': <class 'str'>, 'isSqvSupported': <class 'str'>, 'hasNonStandardData': <class 'str'>, 'isProtected': <class 'str'>, 'isLocked': <class 'str'>, 'formatStatus': <class 'str'>, 'finalizeStatus': <class 'str'>, 'timeSecToFinalize': <class 'int'>, 'isSelfRecorded': <class 'str'>, 'isManagementInfoFull': <class 'str'>, 'timeSecToGetContents': <class 'int'>, 'hasUnsupportedContents': <class 'str'>, 'usbDeviceType': <class 'str'>, 'fileSystem': <class 'str'>}, version='1.2'), existing was <Method system.getStorageList({'uri': <class 'str'>}) -> {'deviceName': <class 'str'>,
 'error': <class 'str'>,
 'format': <class 'str'>,
 'formattable': <class 'str'>,
 'formatting': <class 'str'>,
 'freeCapacityMB': <class 'int'>,
 'isAvailable': <class 'str'>,
 'lun': <class 'int'>,
 'mounted': <class 'str'>,
 'permission': <class 'str'>,
 'position': <class 'str'>,
 'systemAreaCapacityMB': <class 'int'>,
 'type': <class 'str'>,
 'uri': <class 'str'>,
 'volumeLabel': <class 'str'>,
 'wholeCapacityMB': <class 'int'>}>. Keeping the existing one
2019-01-18 06:29:03 WARNING (MainThread) [songpal.service] Got duplicate signature for MethodSignature(name='getSystemInformation', input=None, output={'product': <class 'str'>, 'region': <class 'str'>, 'language': <class 'str'>, 'model': <class 'str'>, 'serial': <class 'str'>, 'macAddr': <class 'str'>, 'name': <class 'str'>, 'generation': <class 'str'>, 'area': <class 'str'>, 'cid': <class 'str'>, 'helpUrl': <class 'str'>, 'deviceID': <class 'str'>, 'version': <class 'str'>, 'duid': <class 'str'>, 'wirelessMacAddr': <class 'str'>, 'esn': <class 'str'>, 'iconUrl': <class 'str'>, 'ssid': <class 'str'>, 'bdAddr': <class 'str'>, 'initialPowerOnTime': <class 'str'>, 'lastPowerOnTime': <class 'str'>, 'bleID': <class 'str'>}, version='1.4'), existing was <Method system.getSystemInformation(None) -> {'area': <class 'str'>,
 'bdAddr': <class 'str'>,
 'cid': <class 'str'>,
 'deviceID': <class 'str'>,
 'duid': <class 'str'>,
 'esn': <class 'str'>,
 'generation': <class 'str'>,
 'helpUrl': <class 'str'>,
 'iconUrl': <class 'str'>,
 'language': <class 'str'>,
 'macAddr': <class 'str'>,
 'model': <class 'str'>,
 'name': <class 'str'>,
 'product': <class 'str'>,
 'region': <class 'str'>,
 'serial': <class 'str'>,
 'ssid': <class 'str'>,
 'updatableVersion': <class 'str'>,
 'version': <class 'str'>,
 'wirelessMacAddr': <class 'str'>}>. Keeping the existing one
2019-01-18 06:30:26 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-18 06:30:32 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge 192.168.1.95 ()
2019-01-18 06:30:32 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:30:32 WARNING (MainThread) [homeassistant.components.media_player] Updating samsung_multi_room media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:30:32 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:30:32 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:30:32 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.entertainment_area_1 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.nattduksbord_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.koksfonster_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.forradsvagg2_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.golvlampan_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.sovrum is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.forradsvagg4_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.telefonladdare is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.lampststativ_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.golvlampa_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.vardagsrum is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.foradsvagg1_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.altan1_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.koksbank_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.kok is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.ute is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.forradsvagg3_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.vardagsrum_tak_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.badrum is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.taklampa_kok_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.entre_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.altan2_2 is taking over 10 seconds
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:30:40 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-18 06:30:49 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:32:51 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:32:51 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-18 06:32:56 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge 192.168.1.95 ()
2019-01-18 06:32:56 WARNING (MainThread) [homeassistant.components.media_player] Updating samsungtv media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:32:56 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-18 06:33:02 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-18 06:33:02 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10

Have you tried to disable custom components?
I googled some of the errors and came across

  1. Hassbian and fritz connection error

  2. https://github.com/home-assistant/home-assistant/issues/13022

  3. https://github.com/home-assistant/home-assistant/issues/13949

Maybe you can find them usefull,

What I do to find my problems is to disable some of my config and then wait to see if it is working better,

I havent had the time to sit down and do that but i updated to 0.86.0b0 and its now worse, so i dont think its the components that i have had for a long time that suddenly make this issues.

I agree on with that, must be something they changed in 0.84.x that cause this and the change must be present in all versions after that. It is very strange problem and since you and me are using different components I keep wondering why more people ain’t haveing this problem.
I post my config below

homeassistant:
  # Name of the location where Home Assistant is running
  name: cloud
  # Location required to calculate the time the sun rises and sets
  latitude: 5
  longitude: 
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 35
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Stockholm
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
#introduction:

recorder:
  purge_keep_days: 15
  exclude:
    domains:
      - weblink
      - updater
    entities:
      - sun.sun
      - sensor.last_boot
      - sensor.date
# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # base_url: 192.168.1.102:8123
  # Secrets are defined in the file secrets.yaml
  # api_password: !secret http_password
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers


# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction

media_player:
  - platform: kodi
    host: 192.  
    username: 
    password: 
  
  
  
# Text to speech
tts:
  - platform: google
    language: 'sv'

# Cloud
cloud:
  google_actions:
    filter:
      exclude_entities: 
        - group.all_automations
        - group.all_devices
        - group.advanced
        - group.allscens
        - group.coolppl
        - group.default_view
        - group.dinning
        - group.extrasov
        - group.hall
        - group.hosestates
        - group.ikeacolorlights
        - group.kok
        - group.koksopts
        - group.mastersov
        - group.nightturnon
        - group.sensor
        - group.sensorvardag
        - group.someslights
        - group.someswitches
        - group.trappa
        - group.tvrum
        - group.vardsagrumonlight
        - group.vardsagrumonswitch
        - group.weather
        - switch.party
        - switch.standard
        - switch.guests
        - switch.hemma
        - switch.barntv
        - media_player.ks_sovrum_
        - media_player.huvudsovrum
        - media_player.googlehome9103
        - group.all_switches
        - group.all_lights
        - group.barnsov
        - switch.movie
        - group.all_scripts
        - group.scripts
        - group.all_vacuum_cleaners
        - switch.robot_d3_schedule
        - media_player.googlehome7958
        - media_player.tv_hemma
        - group.sysmon
      exclude_domains:
        - scene
    entity_config:
      light.hall_lampa_1:
        name: Hall lampa 1
        room: Hallen
      light.hall_lampa_2:
        name: Hall lampa 2
        room: Hallen
      light.kok_lampa_1:
        name: Taklampa köket 1
        room: Kök
      light.kok_lampa_2:
        name: Taklampa köket 2
        room: Kök
      light.kok_lampa_3:
        name: Taklampa köket 2
        room: Kök
      light.lama_fonster_matbod:
        name: Lampa matbordet
        room: Köksbordet
      light.lampa_vid_tv_2:
        name: Tv lampa 1
        room: Tvrummet 
      light.tradfri_bulb_e27_cws_opal_600lm:
        name: Tv lampa 2
        room: Tvrummet
      switch.onoff_2_sovrum_nere:
        name: Lampa sovrum nete
        room: KS sovrum
      switch.switch_hall:
        name: Myslampa
        room: Hallen
      script.housespeak:
        name: Vad är husets status
        room: Scripts
      vacuum.robot_d3:
        name: Robot D3
        room: Tvrummet
      media_player.kodi:
        name: OSMC
        room: Tvrummet
      light.fibaro_dimmer_2:
        name: Fibaro Dimmer 2
        room: Trapphuset
      light.fibaro_dimmer_2_watt:
        name: Fibaro Dimmer 2 watt
        room: Trapphuset
neato:
  username: username :)
  password: password :)
tellduslive:
  update_interval: 5
conversation: !include conversations.yaml
sensor: !include sensors.yaml
group: !include groups.yaml
#automation: !include automations.yaml
automation: !include_dir_merge_list automation
script: !include scripts.yaml
device_tracker: !include device_tracker.yaml 
input_select: !include input_selects.yaml
scene: !include scene.yaml

Hi! i now tried the release 0.86.0b1 and its the same. From what i can see, we have Telldus and Kodi as the same components, have you tried to disable them?

I will try to post my config later,

One more interesting thing is that i now have moved to a virtuial machine on a 4 core CPU and dedicated 1 CPU and 1 GB RAM and the same thing happends anyway. 11% CPU and 590MB RAM use.

I came across a new bug regardning telldus on git maybe this is the problem, no I haven’t disable telldus but kodi and all sensors I have with no diffrent resluts.

@Mathias_Heller Check entity ids? https://community.home-assistant.io/t/panels-disappeared-after-updating-to-0-85-1/93501

Ye that “bugg” I had but it should not be the cause for this? It should only make the GUI look bad as it did for me.

Hi! thank you, but this is not the issue in this case. the entities goes from a value to unavalible and toggle this behavior. then its a lag that comes and goes.

I now even updated my un official components .py files without any progress

45

Here is an exemple of how it looks, then it toggles back to a slide and it works for some time and then home assistant freezes and this shows again.

Okey so we have some diffrent symptoms, I normaly start to notic that my input selects are slow for example if I change the color on the lights it takes 1-2 minutes before anything triggers. I also notic the states are very slow to update and if i toogle a light from HA this takes 1-2 minutes before it happens.
And a while later nothings works and a reboot is needed.
But I can’t remeber I have seen the Unavailable status, but I will do an upgrade tomrrow to see what happens.

Ok, its allmost the same except the reboot.

Its only the Hue lights that changes to unavailable. All other values are still there.

I updated to 0.86.1 and its still the same issue. Would it be possible to lift this as a ticket to Home Assistant? And how do we do that?

I updated to 0.86.1 and its still the same issue. Would it be possible to lift this as a ticket to Home Assistant? And how do we do that?

this is what it looks like in boot.

2019-01-24 23:47:12 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2019-01-24 23:47:15 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.braviatv_psk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-24 23:47:15 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.samsung_multi_room which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-24 23:47:15 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.alexa which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-24 23:47:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 212, in async_update_ha_state
raise RuntimeError("Attribute hass is None for {}".format(self))
RuntimeError: Attribute hass is None for <Entity yr Symbol: 4>
2019-01-24 23:47:21 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity
raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: calendar.alexa_inkopslista
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Taklampa kök"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Entre"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Förådsvägg1"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Förådsvägg2"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Förådsvägg3"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Förådsvägg4"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Nattduksbord2"
2019-01-24 23:47:21 WARNING (MainThread) [homeassistant.components.hue.light] Can not get color gamut of light "Nattduksbord3"
2019-01-24 23:48:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.mathiass_alexa_apps is taking over 10 seconds
2019-01-24 23:48:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.vardagsrum is taking over 10 seconds
2019-01-24 23:48:08 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-24 23:48:08 WARNING (MainThread) [homeassistant.components.media_player] Updating kodi media_player took longer than the scheduled update interval 0:00:10
2019-01-24 23:48:15 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05
2019-01-24 23:48:21 ERROR (MainThread) [homeassistant.components.hue.light] Unable to reach bridge 192.168.1.95 ()
2019-01-24 23:48:21 WARNING (MainThread) [homeassistant.components.media_player] Updating braviatv_psk media_player took longer than the scheduled update interval 0:00:10
2019-01-24 23:48:21 WARNING (MainThread) [homeassistant.components.media_player] Updating samsung_multi_room media_player took longer than the scheduled update interval 0:00:10
2019-01-24 23:48:21 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2019-01-24 23:48:21 WARNING (MainThread) [homeassistant.components.light] Updating hue light took longer than the scheduled update interval 0:00:05

maybe this can have something to do with it:

Br

Check the release notes for 0.86.2 - it mentions Hue.

I have seen those warnings, but that is not the issue.