Comments (10)
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}`
from sun-card.
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
}
from sun-card.
In the newest version I've added some guard checks and validation of moon sensor state values. Could you check it out, please?
from sun-card.
Hi @mishaaq , i'm with the new version but still no moon :/
(BTW is day now, i should wait till night to see it?)
from sun-card.
(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"?
from sun-card.
Nothing in the home-assistant.log with "sun" :/
(there are other place to check?)
from sun-card.
from sun-card.
Thanks for testing.
I meant browser's console - https://kb.mailster.co/how-can-i-open-the-browsers-console/
from sun-card.
Ok! :D
Maybe some "spanish character" like "ñ"?
from sun-card.
I see the exact same on my end. Running latest (Hass + Sun-Card):
from sun-card.
Related Issues (20)
- Day/night customizing HOT 3
- Release 4.0 doesn't show sensors value HOT 1
- sensor.moon doesnt display HOT 4
- JS error appears for a second or two after refreshing the UI
- No text showing HOT 2
- Predicted sunrise incorrect HOT 5
- Not working with HA 0.110 HOT 4
- Moon phases for Southern Hemisphere HOT 3
- High CPU Load HOT 3
- Shadows at the top and bottom of the plane, due to the linear gradient opacity. HOT 1
- Disable themes HOT 3
- Current elevation presentation HOT 1
- 24h clock format does not include leading 0
- No default language, card crashes when using "Norwegian Bokmål" (language code "no") HOT 2
- Card not showing up on the Dashboard HOT 4
- Version Key HOT 1
- Moon path
- Sunrise Info Incorrect in Card
- suggestion: hide the sunrise, sunset icons and time since\until HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sun-card.