I cannot track down what’s wrong here, and no amount of docs reading or eliminating variables produces anything close to useful.
Some of my widgets don’t show their icons, and some do. MDI, FA, it doesn’t matter. And I don’t know what I’m doing wrong.
I have a sensor that reports four statuses, idle
, testing
, smoke
and co2
. I’m attempting to use the icon
widget. According to documentation, it should look something like this:
icon:
title: icon
widget_type: icon
entity: binary_sensor.basement_door_sensor
state_text: 1
icons:
"active":
icon: fa-glass
style: "color: green"
"inactive":
icon: fa-repeat
style: "color: blue"
"idle":
icon: fa-frown-o
style: "color: red"
"default":
icon: fa-rocket
style: "color: cyan"
And here’s mine:
kitchen_alarm_status:
title: Kitchen Alarm Status
widget_type: icon
entity: sensor.kitchen_alarm_status
state_text: 1
icons:
"smoke":
icon: mdi-fire
style: "color: red;"
"co2":
icon: mdi-cloud
style: "color: red;"
"testing":
icon: mdi-help-rhombus
style: "color: blue;"
"idle":
icon: mdi-smoke-detector
style: "color: green;"
And here’s what it looks like:
On the left, you see the basement leak sensor, which uses mdi-emoticon-happy, which loads correctly. On the right is another alarm identical to this as a sensor
widget that just mirrors the sensor data.
This same dashboard also has this:
basementTV:
widget_type: switch
entity: group.basementtv
title: "Basement TV & Xbox"
icon_on: mdi-xbox-controller
icon_off: mdi-xbox-controller-off
icon_style_active: "color: blue;"
which looks beautiful and works correctly.
Any icon that is a switch
loads both mdi- and fa- icons correctly, despite the icon
widget absolutely supporting the icon:
attribute.
What I’ve tried:
- Altering spacing on the widget from 2 indent to 4, and back. It has no effect and the result looks the same.
- Changing
icon:
toicon_on
andicon_off
, as well asicon_active
andicon_inactive
, including both sets when one is included and using them standalone. - Verifying I’m on the latest version of Appdaemon, 3.0.1
- Altering and removing style completely
- Using community and google MDI icons (no outline vs orange outline from here)
- Restarting HA, AppDaemon and the entire RPi.
- Using other skins
- Setting
use_hass_icon
to 0, and removing it completely. - Verifying in appdaemon.yaml that it recognizes my HA install and where my dashboards are
- Applying icons to other widget types, including
navigate
. Same issue. usingmdi-robot-vacuum
just gives me a blank square when used on anavigate
widget.
All three of these widgets are navigate
.
What am I doing wrong? Is there a permissions or css issue I’m overlooking?