I would love to replicate this dashboard. Specifically, the small cards that show min/max/current/history
What cards are used? With what sensors? and what config?
Is it possible to somehow add the moon as the 2nd circle to show it’s position and phase? The default moon integration doesn’t contain the azimuth data so I’m guessing I’d have to set up a separate sensor for it.
@tomvanswam
Please consider to make the indictor object selectable using an icon or the sensors icon attribute.
This way the indicator can change with the sensors state like the suns or the moons state. And some parameter saying to hold the icon level or not, so the icon is not standing on its head when going around the compass.
Trying to show the icon from a binary sensor (binary_sensor.sun2_sun_is_up) in the cards header.
The sensor icon changes with suns position and the moon phase.
Dynamic_style cant be used and it also looks like it cant be used with binary sensors.
How do I get this to work?
- type: custom:compass-card
header:
title:
value: Sun and Moon
icon: "{{ state_attr('binary_sensor.sun2_sun_is_up', 'icon') }}" #????
It could be that binary_sensor states are not processed correctly in the dynamic_style.
Please open an issue on GitHub and I’ll try to look into that.
Work around would be, creating a template sensor that has an number state derived from your binary_sensor.
and wonder if the moon_status should be empty, what do you see there please? If I enter it directly on the website, there is no attributes like tat at all, so maybe thats not available in all regions/circumstances
will check the moon tonight certainly, as I cant understand why it would set at 21:13… and rise at 13:17. the Time and date reference clearly state the same, so some digging to do in understanding that…
Moon_status is equal to "-" if the moonrise and moonset
values are not equal to "-:-". moon_status can be equal to
"Always above the horizon" or "Always below the horizon"
if the moon is always up or always set within the current 24 hours of the day.
By the way, I have raised an issue with core moon sensor asking for more moon data since python package Astral (V. 3.2 ) now has the calculations for Moon rise, set, azimuth and zenith. And the core moon sensor uses Astral
thanks
considering that, I believe we can leave out the moon_sttus then, as it will always be - in my region?
I did add the sun_distance just now, as that was the only attribute missing from the other integrations (core sun, sun2 by Phil Bruckner) in my config.
would be nice if core would indeed enhance that, though I believe an issue for a FR wont be accepted,… you’d need a true FR for that, or start PR’ing yourself
I ended up using a custom AstroWeather component from HACS to get the Moon Azimuth. Would definitely love to be able to replace the circle indicator with a mdi:icon using the sensor.moon_phase from the Moon integration.
In the mean time I wonder how I can change the direction of the circle so the correct “side” of the moon is facing inwards. Currently I set the color to black so it resembles the moon, but would love to have the dark side facing the appropriate way.
The reasoning behind the two colors on the icon is that the line on which the 2 colors touch is the actual direction. Having just a circle is quite a rough estimate of direction.
There is a feature request for using icons for the indicators. Not sure when I get to that, however I’m more in inclined to implement that instead of rotating indicators for the reasoning mentioned above.