Closed YoinkZed closed 4 years ago
Same here :/ My card:
- type: "custom:sun-card"
name: Orto-Ocaso
entities:
elevation: sun.sun
max_elevation: sensor.max_elevation
moon: sensor.moon
noon: sensor.solar_noon
sunrise: sensor.sunrise
sunset: sensor.sunset
style: |
ha-card {
--sc-sun-night-color: #606060;
--sc-sunbeam-color: orange
}
In the newest version I've added some guard checks and validation of moon sensor state values. Could you check it out, please?
Hi @mishaaq , i'm with the new version but still no moon :/ (BTW is day now, i should wait till night to see it?)
(BTW is day now, i should wait till night to see it?)
No, it should be visible throughout the day. Can you check the console for entries prefixed with "Sun Card"?
Nothing in the home-assistant.log with "sun" :/ (there are other place to check?)
Thanks for testing. I meant browser's console - https://kb.mailster.co/how-can-i-open-the-browsers-console/
Ok! :D
Maybe some "spanish character" like "ñ"?
I see the exact same on my end. Running latest (Hass + Sun-Card):
Same for me. Probably because sensor.moon
has a state value of waning_gibbous
which is not present in sun-card.js.
moonIcon(e) {
const t = {
new_moon: "new",
waxing_crescent: "waxing-crescent",
first_quarter: "first-quarter",
waxing_gibbous: "waxing-gibbous",
full_moon: "full",
last_quarter: "last-quarter",
waning_crescent: "waning-crescent"
}[e];
return t || console.error(`Sun Card: Unexpected state value '${e}' for moon sensor.`),
`mdi:moon-${t}`
Describe the bug Unfortunately I can't see the Moon on the Custom Lovelace Card. After updating the Sun-Card to the latest version (also version 4.0) is simply isn't present. Browser has been cleaned an also different browsers has been used for testing.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Sun-Card should show the Moon Position, but isn't.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional