iammexx / home-assistant-config

Files for my Home Assistant setup
75 stars 77 forks source link

Lovelace stops refreshing sensors when configuring slots #17

Closed PlayedIn closed 5 years ago

PlayedIn commented 5 years ago

When using, for example:

slot_l3: remove
slot_r3: remove

All sensors such as a time sensor, or binary door sensors, etc... stop updating. A refresh of the browser gets the new sensor values. After a refresh, the sensors stop working roughly 30 seconds later each time. If I comment out the slot_l3 and slot_r3 in the settings, everything works as it should.

I should also say, that using the above config, the slot 3 is removed as it should be on the card; however all sensors stop updating within 30 seconds. I have rebooted the hassio appliance multiple times, using multiple browsers on different computes, deleted caches, rolled HA back to older versions, etc... and only when I comment out those 2 lines do the sensors continue to update after 30 seconds.

              type: 'custom:dark-sky-weather-card'
              entity_current_conditions: sensor.dark_sky_icon
              entity_temperature: sensor.dark_sky_temperature
              entity_forecast_high_temp_1: sensor.dark_sky_daytime_high_temperature_1
              entity_forecast_high_temp_2: sensor.dark_sky_daytime_high_temperature_2
              entity_forecast_high_temp_3: sensor.dark_sky_daytime_high_temperature_3
              entity_forecast_high_temp_4: sensor.dark_sky_daytime_high_temperature_4
              entity_forecast_high_temp_5: sensor.dark_sky_daytime_high_temperature_5
              entity_forecast_icon_1: sensor.dark_sky_icon_1
              entity_forecast_icon_2: sensor.dark_sky_icon_2
              entity_forecast_icon_3: sensor.dark_sky_icon_3
              entity_forecast_icon_4: sensor.dark_sky_icon_4
              entity_forecast_icon_5: sensor.dark_sky_icon_5
              entity_forecast_low_temp_1: sensor.dark_sky_overnight_low_temperature_0
              entity_forecast_low_temp_2: sensor.dark_sky_overnight_low_temperature_1
              entity_forecast_low_temp_3: sensor.dark_sky_overnight_low_temperature_2
              entity_forecast_low_temp_4: sensor.dark_sky_overnight_low_temperature_3
              entity_forecast_low_temp_5: sensor.dark_sky_overnight_low_temperature_4
              entity_summary_1: sensor.dark_sky_summary_1
              entity_summary_2: sensor.dark_sky_summary_2
              entity_summary_3: sensor.dark_sky_summary_3
              entity_summary_4: sensor.dark_sky_summary_4
              entity_summary_5: sensor.dark_sky_summary_5
              entity_sun: sun.sun
              entity_visibility: sensor.dark_sky_visibility
              entity_daytime_high: sensor.dark_sky_daytime_high_temperature_0
              entity_wind_bearing: sensor.dark_sky_wind_bearing
              entity_wind_speed: sensor.dark_sky_wind_speed
              entity_humidity: sensor.dark_sky_humidity
              entity_pressure: sensor.dark_sky_pressure
              entity_apparent_temp: sensor.dark_sky_apparent_temperature
              entity_daily_summary: sensor.dark_sky_daily_summary
              entity_pop: sensor.dark_sky_precip_probability
              entity_pop_intensity: sensor.dark_sky_precip_intensity
              entity_pop_1: sensor.dark_sky_precip_probability_1
              entity_pop_2: sensor.dark_sky_precip_probability_2
              entity_pop_3: sensor.dark_sky_precip_probability_3
              entity_pop_4: sensor.dark_sky_precip_probability_4
              entity_pop_5: sensor.dark_sky_precip_probability_5
              locale: en
              static_icons: false
              tooltip_bg_color: 'rgb( 75,155,239)'
              tooltip_border_color: orange
              tooltip_border_width: 3
              tooltip_caret_size: 10
              tooltip_fg_color: '#fff'
              tooltip_left_offset: -12
              tooltip_width: 100
              tooltips: true
              old_daily_format: false
              time_format: 12
              show_beaufort: true              
              slot_l3: remove
              slot_r3: remove
iammexx commented 5 years ago

Remove the entries entity_visibility and entity_pressure from your configuration.

In your current config you are telling the card to show them but you have removed the slots they would normally be shown in.

The Update logic trips over this configuration. It will be addressed in a future update but for now the simplest way around it is to not configure entities that are not shown.

PlayedIn commented 5 years ago

I should have thought of that. Thank you!