Closed Mariusthvdb closed 5 years ago
extra_badge on other sensors cause same frontend errors, could it be the extra_badge customization has gone incompatible?
many frontend errors with:
sensor.schimmel_sensor:
icon: mdi:blur-radial
extra_badge:
- attribute: dewpoint
unit: Dew
- attribute: estimated_critical_temp
unit: Crit
- entity_id: sensor.rsd_temperature
unit: "°C"
templates:
icon_color: >
if (state > 60) return 'rgb(255, 0, 0)';
return 'rgb(30, 144, 255)';
sensor itself:
- platform: mold_indicator
name: Schimmel sensor
indoor_temp_sensor: sensor.temperatuur_living
indoor_humidity_sensor: sensor.luchtvochtigheid_living
outdoor_temp_sensor: sensor.rsd_temperature
calibration_factor: 1.16
no more errors when taken out the extra_badge
sensor.schimmel_sensor:
icon: mdi:blur-radial
# extra_badge:
# - attribute: dewpoint
# unit: Dew
# - attribute: estimated_critical_temp
# unit: Crit
# - entity_id: sensor.rsd_temperature
# unit: "°C"
templates:
icon_color: >
if (state > 60) return 'rgb(255, 0, 0)';
return 'rgb(30, 144, 255)';
additional detail:
seems only to be the case when extra_badge is based on attributes.
when based on the state of other sensors, all seems fine:
binary_sensor.multi_purpose_threshold:
extra_badge:
entity_id: sensor.multi_purpose_actueel
Fixed in 20180713
Checklist
Browser + Version: Safari, Chrome, on Mac
CustomUI version: 20180625 Home Assistant release (
hass --version
): 0.73.1 Problem-relevantconfiguration.yaml
entries: for all my Hue and Tradfri lights I have customizations like below, which showed up just fine. `depending on the availability of Brightness and Color_temp, the extra_badges appeared on the sliders.and
Continuous log spamming is witnessed, especially when on pages with lights.
At first I suspected that to be caused by the connection to the Hue hub being dis-connected continuously , so called flapping, I was also suffering, for already a longer period. Havent been able to find the true cause for that yet, but it started being obvious after the move to Asyncio for Hue. Other topic, so I thought.
It now seems that both interact more than one would have suspected.Take the customizations out, and the 'flapping' is practically gone....As are these frontend errors.
As said, previously the extra badges for brightness and color_temp showed up nicely, as did the rgb or hs colors.
now only the lights are shown with sliders and icons:
which made me try to only take out the bits on the attributes, being the extra_data and the badges, like this:
and
as said, most flapping gone, practically no more frontend errors. which is cool, since it narrows down the issue, to reading the attributes.
Problem-relevant Home Assistant log entries:
Any errors from browser Javascript console: