New widget: iconsensor (for instance for weather)

newest widget: iconsensor

the iconsensor let you show an icon for every value that an sensor can get. you can use it for weathersensor or for an input_select or any sensor you like with multiple states. in the dashboard you use it like this:

a_sensor_name:
    widget_type: iconsensor
    entity: sensor.your_sensor
    title: your title
    state_icons:
      night: mdi-brightness-3
      evening: mdi-sofa
      cloudy: mdi-weather-cloudy
      partly_cloudy: mdi-weather-partlycloudy
      sunny: mdi-weather-sunny
      morning: mdi-bike
    widget_style: "border-radius: 30px" #or some other css

it can be found on my customwidgets part from github

an example of the use case i use:
in appdaemon i have a run_every(call_back,5) that set a sensor value every 5 seconds.
it changes the value from + to - and back
that gives me an heartbeat from AD that shows in my dashboard that everything is running correct.
in my dashboard i have:

sensor.ad_heartbeat:
    widget_type: iconsensor
    entity: sensor.ad_heartbeat
    title: Heartbeat
    state_icons:
        x: mdi-heart
        o: mdi-heart-outline
    widget_style: "border-radius: 30px"

and that looks like this:

6 Likes