Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather blueprint shows moon during day even if 'Only show moon if risen + night' is selected #4

Open
koenvangils opened this issue Aug 16, 2023 · 3 comments

Comments

@koenvangils
Copy link

koenvangils commented Aug 16, 2023

Thanks for this great automation! The weather blueprint shows moon during day even if 'Only show moon if risen + night' is selected. Maybe a timezone issue? I'm located in the Netherlands.

@jeeftor
Copy link
Owner

jeeftor commented Aug 16, 2023

I can work here -> but its prob easier to hit me on the discord for awtrix light ...

Can you drop in the all the info from the trace:

image

I can probably debug it from that info:

I'm guessing its these vars but can you drop the full set

moon: sensor.moon_phase
moon_phase: new_moon
moon_times: sensor.ip_geo_location
moon_rise: '06:16'
moon_set: '20:28'
moon_alt: 41.47987950945428
moon_risen: true
when_show_moon: always
show_moon: true

@koenvangils
Copy link
Author

koenvangils commented Aug 17, 2023

I think I found it. Line 623 in the yaml :
{{state_attr('sun.sun', 'elevation') > 0 and moon_risen}}

should be

{{state_attr('sun.sun', 'elevation') < 0 and moon_risen}}

?

jeeftor added a commit that referenced this issue Aug 17, 2023
@jeeftor
Copy link
Owner

jeeftor commented Aug 17, 2023

Just pushed that change... feel free to test it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants