Hi,
I am using the lovely custom Compass card like this:
This indicates both the sun azimuth and elevation relative to the solar panels on my roof.
However, for the elevation the directional indication “ENE” of course is irrelevant and incorrect.
But I cannot figure out how to omit this indication.
Does anyone have a clue how to do this?
Or is this currently not possible?
And another question: is it possible to change the icon in the upper right corner of the Compass cards?
This is my current code for the Compass cards:
type: horizontal-stack
cards:
- type: custom:compass-card
header:
title:
value: Zon azimut
indicator_sensors:
- sensor: sun.sun
attribute: azimuth
indicator:
type: circle
value_sensors:
- sensor: sun.sun
attribute: azimuth
compass:
circle:
background_image: /local/OdD4_map.jpg
background_opacity: 0.3
north:
show: true
offset: 35.65
east:
show: true
south:
show: true
west:
show: true
- type: custom:compass-card
header:
title:
value: Zon elevatie
indicator_sensors:
- sensor: sensor.sun_elevation_solarpanel
indicator:
type: circle
value_sensors:
- sensor: sun.sun
attribute: elevation
compass:
circle:
background_image: /local/OdD4_side.jpg
background_opacity: 0.3
And this is the sensor.sun_elevation_solarpanel
code:
template:
- sensor:
- name: Sun Elevation Solarpanel
unit_of_measurement: "°"
state: "{{ 90 - ( state_attr('sun.sun', 'elevation') ) | round(0) }}"