tomvanswam / compass-card

A Lovelace card that shows a directional indicator on a compass for Home Assistant
MIT License
174 stars 19 forks source link

Set image ( entity_picture_template ) as indicator type #873

Closed ggonmar closed 11 months ago

ggonmar commented 11 months ago

I have been playing with this card, and it would be neat if I could use my sensor of the moon, which has a custom image of the current state of the moon (within the property entity_picture_template) , as the icon of the compass.

I'd envision it as:

type: custom:compass-card
header:
  title:
    value: Moon
indicator_sensors:
  - sensor: sensor.moon_phase
    attribute: azimuth
    indicator:
      type: image
      image: sensor.moon_phase
value_sensors:
  - sensor: sun.sun
    attribute: elevation

That would be very nice!

Thanks for your great work!

tomvanswam commented 11 months ago

Good idea, and already thought of, this is a duplicate of #702