In HA I use a group to display presence as I have found that just 1 means of detection isn’t reliable enough. So I combine an iOS device with a separate nmap device (for the same phone) and roll that up in a group.
HA looks at the home/away of both devices and if either say home, then the grouped person is home.
I’ve just started setting up an appdaemon dashboard but looked like the presence widget only supports an actual device, not a group, and the group widget is for lights.
How did you end up working it? When I use a sensor widget I don’t have an icon, just “home” or “away.” When I use an icon widget I get a big fat “O” circle. I tried specifying to use hass icons, or manually forcing them, no dice with either method.
A widget to monitor the state of an entity and display a different icon and style for each listed state, and is configured like the following:
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”
The icons list is mandatory, and each ebtry must contain both an icon and a style entry. It is recommended that quotes are used around the state names, as without these, YAML will translate states like on and off to true and false
The default sntry icon and style will be used if the state doesn’t match any in the list - meaning that it is not necessary to define all states if only 1 or 2 actually matter.
Mandatory Arguments
entity - the entity_id of the binary_sensor
icons - a list of icons and styles to be applied for various states.
Optional Arguments:
title - the title displayed on the tile
title2 - a second line of title text
state_text
state_map
Cosmetic Arguments
widget_style
title_style
title2_style
state_text_style
that means that you dont have the right indention.
but i cant see that because you dont show the code as code.
look at the example i gave and at your line 20.
make sure you dont have any tabs or strange blank spaces (copy/paste from a website goes wrong with some editors)
if it complains about a specific yaml line, then delete all whitespace and use spaces to make sure it are really spaces.
Any idea why changing the icon colour has no effect? It’s displaying the icon I chose but green (which was the color in the example). I change it to something else in my dash file and reload the dash but it stays green.
you made an error when you were changing things (unknown color, typo, wrong css, etc.) and you will probably have an error in the javaconsole or your dash access log
the green icon is cashed by your browser. (make sure you renew the dashboard correct and clear cash)