-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
[BUG] Weather card no longer works in HA 2024.4 #1204
Comments
Thanks for the heads-up, will try to fix this over the weekend. Unfortunately this is still blocked by upstream, but it looks like there is now a workaround. |
This comment was marked as outdated.
This comment was marked as outdated.
came up with a different workaround to keep home assistant providing the forecast as an entity https://docs.nspanel.pky.eu/stable/prepare_ha/#workaround-for-homeassistant-202404 This also requires two slight changes in the backed to force the entity type of this newly created sensor to weather. So it also requires an update of the backend to current dev version. |
Released the changes in 4.4.0 For anyone updating please note that you need to have app_dir in your appdaemon.yaml for HACS to be working, see #1029 |
Thank you! |
Something's a bit off. I'll debug when i have the time, but just letting you know @joBr99 |
looks like the entity you specified in your config doesn't exist |
don't change the first entity - also there's something wrong with your update to the latest version of the appdaemon app - either you forgot to restart appdaemon or you didn't follow all steps during the appdaemon 15 update and you are still accessing an old copy of the app |
What I did was name the I still have an issue with the current weather condition (it's not showing), but I'll debug that one myself. Thanks a lot for your help and swiftness! |
Your The full template:
- trigger:
- platform: time_pattern
hours: /1
action:
- service: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.home
response_variable: daily
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ states('weather.home') }}"
attributes:
temperature: "{{ state_attr('weather.home', 'temperature') }}"
temperature_unit: "{{ state_attr('weather.home', 'temperature_unit') }}"
forecast: "{{ daily['weather.home'].forecast }}"
Note that you can't trigger a manual update for the |
I just used the normal weather entity for the for the current condition, as this isn't part of the forecast and the workaround is only required for the forecast. (Thanks for the template, might be a good idea to exchange the one in the documentation, to avoid confusion) |
I was not aware you can have one entity for current condition and another for forecast. |
You can configure each item individually:
I guess you are using the old config way with one weather entity for the screensaver? Didn't really think about that one. |
That is what i was using, yes. |
Just a small remark. If the state (and attributes) of # ...
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ daily['weather.home'] }}"
attributes:
temperature: "{{ daily['weather.home'].temperature }}"
temperature_unit: "{{ daily['weather.home'].temperature_unit }}"
forecast: "{{ daily['weather.home'].forecast }}" or # ...
sensor:
- name: Weather Forecast Daily
unique_id: weather_forecast_daily
state: "{{ states('weather.home') }}"
attributes:
temperature: "{{ state_attr('weather.home', 'temperature') }}"
temperature_unit: "{{ state_attr('weather.home', 'temperature_unit') }}}"
forecast: "{{ state_attr('weather.home', 'forecast') }}" The code on this project's docs also mixes 2 entities ( Semantically it's also weird to use a variable named I also don't see a real reason to make this a trigger-based template but I might be overlooking something? |
With the upcoming homeassistant version the weather entities are no longer providing the forecast attribute and the forecast has to be pulled though the For the current temperature it doesn't really matter if you are using the variable or the current state. In homeassistant's example they are using the data type |
Working good for me using this now. |
I used the workaround described here: but I still have a problem. and this is what the configuration.yaml and apps.yaml files look like: what am I doing wrong? Any ideas? |
adjust the |
yes, I noticed it and after changing it it actually works - thanks! However, only today's weather is visible. |
I changed it here. So I understand that after 1 hour the trigger should change it? |
Check the data of the sensor.weather forecast daily entity - forecast data must be populated there Maybe you can trigger the template by restarting HA, not sure. |
It won't. Only triggers can update trigger-based sensors. What I did was this template:
- trigger:
- platform: time_pattern
hours: /1
- platform: event
event_type: event_template_reloaded
# everything else then go to the Developer tools and reload Template entities. If that doesn't work, try this template:
- trigger:
- platform: time_pattern
hours: /1
- platform: event
event_type: manual_event_template_reloaded and add this automation: alias: Re-emit event_template_reloaded event
description: >-
In order to update trigger-based `template` entities, to prevent a race
condition, I need to re-emit the `event_template_reloaded` event.
trigger:
- platform: event
event_type: event_template_reloaded
event_data: {}
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- event: manual_event_template_reloaded
event_data: {}
mode: single then reload the Template entities |
I made the changes you wrote about and now the configuration looks like this: forecast seems to be working properly now: but there is still no information about the next few days and the icons are also missing: |
Actually - I missed it. I have already added it and the icons are visible. Thanks for the help! |
Apologies for jumping on but I am stuck on the weather fix. I changed my weather integration to Pirate Weather which correctly response to the service.get_forecasts and populates sensor.weather_forecast_daily with all the correct information as verified in the developer tools States. AppDaemon is at latest version NSPanel Lovelace UI is v4.4.0. AppDaemon Log shows this: 2024-04-05 14:43:59.185926 INFO nspanel-1: Sending MQTT Message: weatherUpdate~~~��� |
are you sure that you are on v4.4.0? |
Thank you so much! |
Same issue for me. Solved for me too. |
It would be great to add homeassistant start trigger to that template as at least for me restarting the HA does not update the template itself:
|
thanks, good idea added to the documentation |
I have implemented the workaround configuration in my HA but this is the result I get in my nspanel: As you can see the current and forecast temperatures are fine, but the weather conditions icons and the weekdays names are missing. These were working fine before the AppDaemon issue. This is my configuration.yaml:
And this is my screensaver configuration in apps.yaml:
Am I missing anything? Thanks! |
You need to upgrade the backend to the latest version. Note that you might run into an issue if you didn't follow all of the steps during migration from appdaemon 14 to 15. Appdaemon is only using files from HACS if you have app_dir configured in the appdaemon.yaml. Please see: |
I do not use the Appdaemon addon, I use it in docker, so my AppDaemon version is v4.4.2 (latest). What do you mean by upgrade the backend? Are you referring to NSPanel Lovelace UI Backend in HACS? I am already using |
Now is working. While I was writing my previous reply I realized that rebooting HA did not reboot Appdaemon (both are independent docker instances). After rebooting Appdaemon docker everything is working as expected. Thanks and sorry for my confusion! |
Hello @joBr99 Is there any way to resolve this condition?? |
Update your backend to the latest version and restart appdaemon. And you need to have |
@joBr99 I already have this done and it's working, but now when condition: exceptional |
i am having troubles setting this up: |
PROBLEM DESCRIPTION
The weather card used as a screensaver cannot display anything when connected to HA 2024.4.0b0 due to the removal of the
forecast
attribute forweather
entities. It worked well in 2024.3.REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
TO REPRODUCE
Install HA 2024.4 beta and look at the NSPanel
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots/pictures to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
Please note here in case you are using ioBroker
PANEL / FIRMWARE VERSION
Please add the Panel/Firmware Version you are using (EU, US-L or US-P)
EU panel, Tasmota 13.4.0, HA 2024.4 beta
The text was updated successfully, but these errors were encountered: