Clearing warnings & errors

Hello to you all,
As a person with few OCDs it annoys me a lot when i’m checking the logs and i see some warnings all the time so it’s the time to ask for your help. I know that i cannot disable the warning for the custom component so I m ok with that one. So let’s get to the ones i can fix. Oh and before i start i have to mention that i run HA in a docker in a Linux NUC with 8Gb ram and SSD.

Warnings:

1. Setup of input_select is taking over 10 seconds.
2. Setup of timer is taking over 10 seconds.
3. Setup of switch platform broadlink is taking over 10 seconds. (main.py (WARNING))
4. Failed to connect to device (components/broadlink/switch.py (ERROR))
5. YAML file /config/lovelace/040-garmin.yaml contains duplicate key “type”. Check lines 3 and 13. ( I have it multiple times, i will post the yaml as soon as i am home)

  1. garmin_connect: Error on device update! (see error below, i don’t have this sensor enabled)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/garmin_connect/sensor.py", line 173, in async_update
    self._state = data[self._type]
KeyError: 'highestRespirationValue'
  1. Error doing job: Task exception was never retrieved custom_components/samsungtv_custom/samsungtvws/remote.py (ERROR) - message first occurred at 12:56 PM and shows up 780 times

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 424, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
    attr = self.capability_attributes
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 774, in capability_attributes
    source_list = self.source_list
  File "/config/custom_components/samsungtv_custom/media_player.py", line 319, in source_list
    self._gen_installed_app_list()
  File "/config/custom_components/samsungtv_custom/media_player.py", line 229, in _gen_installed_app_list
    app_list = self._remote.app_list()
  File "/config/custom_components/samsungtv_custom/samsungtvws/remote.py", line 179, in app_list
    self._ws_send(payload)
  File "/config/custom_components/samsungtv_custom/samsungtvws/remote.py", line 93, in _ws_send
    self.open()
  File "/config/custom_components/samsungtv_custom/samsungtvws/remote.py", line 108, in open
    sslopt=sslopt
  File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 511, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 220, in connect
    options.pop('socket', None))
  File "/usr/local/lib/python3.7/site-packages/websocket/_http.py", line 120, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
  File "/usr/local/lib/python3.7/site-packages/websocket/_http.py", line 186, in _open_socket
    raise error
  File "/usr/local/lib/python3.7/site-packages/websocket/_http.py", line 170, in _open_socket
    sock.connect(address)
socket.timeout: timed out```

Any help? 
PS:sorry if the category i posted is wrong.

You can fix these:

  1. Failed to connect to device (components/broadlink/switch.py (ERROR))
  2. YAML file /config/lovelace/040-garmin.yaml contains duplicate key “type”. Check lines 3 and 13. ( I have it multiple times, i will post the yaml as soon as i am home) It says what to do.
  3. garmin_connect: Error on device update! (see error below, i don’t have this sensor enabled) Probably this one aswell

Regarding 6 it says about the sensor which i don’t have anywhere so i do not know how to fix it.

For the duplicates i will post later the yaml because i think that if i remove the duplicates it won’t work.

you probably have more than one section. Don’t do that. Put everything that falls under sections in 1 section. e.g.

BAD

input_boolean:
  my_switch:

input_boolean:
  my_second_switch:

GOOD

input_boolean:
  my_switch:
  my_second_switch:

Here is garmin.yaml. If i remove any of the “types” it won;t show anything. I have lovelaces splitted in different ones for each tab. If someone knows how to fix it then i will be thankful. Also in the photo you can see how it looks like

title: Garmin
icon: mdi:heart-pulse
cards:
  - type: vertical-stack
    entities:
      - name: 7 Days Average HR
        entity: sensor.last_7_days_avg_heart_rate
      - name: Resting HR
        entity: sensor.resting_heart_rate
      - name: Min HR
        entity: sensor.min_heart_rate
      - name: Max HR
        entity: sensor.max_heart_rate
    type: glance

  - type: vertical-stack
    entities:
    - name: Daily Steps
      entity: sensor.total_steps
    - name: Daily Goal
      icon: mdi:shoe-print
      entity: sensor.daily_step_goal
    - name: Total Distance
      icon: mdi:transit-connection-variant
      entity: sensor.total_distance_mtr
    type: glance

  - type: vertical-stack
    entities:
    - name: BMR
      entity: sensor.bmr_kilocalories
    - name: Active Calories
      entity: sensor.active_kilocalories
    - name: Total Calories
      entity: sensor.total_kilocalories
    type: glance
    
  - type: vertical-stack
    entities:
    - name: Sedentary Time
      entity: sensor.sedentary_time
    - name: Sleeping
      entity: sensor.sleeping_time
      icon: mdi:sleep
    - name: Highly Active
      entity: sensor.highly_active_time
    - name: Active
      entity: sensor.active_time
    type: glance

  - type: vertical-stack
    entities:
      - name: 7 Days Average HR
        entity: sensor.last_7_days_avg_heart_rate
      - name: Resting HR
        entity: sensor.resting_heart_rate
      - name: Min HR
        entity: sensor.min_heart_rate
      - name: Max HR
        entity: sensor.max_heart_rate
    type: glance

2 entries “type” (first and last)

1 Like

Yep, as @Pippyn said. You have 2 types. Specifically, the first type is wrong, you want the second type.

  - type: glance
    entities:
      - name: 7 Days Average HR
        entity: sensor.last_7_days_avg_heart_rate
      - name: Resting HR
        entity: sensor.resting_heart_rate
      - name: Min HR
        entity: sensor.min_heart_rate
      - name: Max HR
        entity: sensor.max_heart_rate

OK that is done. For some reason i thought it needed both, maybe in a previous version… Anyway. That one is fixed. Any ideas for the rest?

Thanks both of you guys

Also 1 & 2 (for the 10 seconds) are gone…

Your samsung tv custom integration changed. Go to wherever you got it and verify that it’s up to date. Also, you should be posting this as an issue on that custom integration page.

Also, that garmin config seems wrong, and it was only added this version. Verify the config is correct.

There is no config at all for the Garmin. You just log in to your account through integrations and it’s done. Opened an issue already. And Samsung seems to be up to date.

Then report this as an issue on github.

Did that already !

Not much else you can do about that one. Some safety is required for the integration.