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

[BUG] HA 2024.4 - cannot display forecast properly #1209

Closed
3 tasks
cezarg1410 opened this issue Apr 4, 2024 · 4 comments
Closed
3 tasks

[BUG] HA 2024.4 - cannot display forecast properly #1209

cezarg1410 opened this issue Apr 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@cezarg1410
Copy link

PROBLEM DESCRIPTION

After updating to HA 2024.4.0 - the weather forecast on the NsPanel doesn't look as it should. Here it is how it looks like:
nspanel_problem

The problem is that it only shows "rainy" instead of hour, icon and temperature.

REQUESTED INFORMATION

  • I'have created the template for weather forecast in the home assistant configuration.yaml in the following way:
template:
  - trigger:
      - platform: time_pattern
        minutes: /5
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: weather.tomorrow_io_dom_daily
        response_variable: daily
    sensor:
      - name: Weather Forecast Daily
        unique_id: weather_forecast_daily
        state: "{{ states('weather.tomorrow_io_dom_daily') }}"
        attributes:
          temperature: "{{ state_attr('weather.tomorrow_io_dom_daily', 'temperature') }}" 
          temperature_unit: "{{ state_attr('weather.tomorrow_io_dom_daily', 'temperature_unit') }}"
          forecast: "{{ daily['weather.tomorrow_io_dom_daily'].forecast }}"
  • Also, i have modified the screensaver definition:
bedroom-nspanel:
  module: nspanel-lovelace-ui
  class: NsPanelLovelaceUIManager
  config:
    panelRecvTopic: "tele/bedroom-nspanel/RESULT"
    panelSendTopic: "cmnd/bedroom-nspanel/CustomSend"
    updateMode: "auto-notify"
    sleepTimeout: 10
    sleepBrightness:
      - time: "6:00:00"
        value: 10
      - time: "23:40:00"
        value: 0
    locale: "pl_PL"
    screensaver:
      entities:
        - entity: weather.tomorrow_io_dom_daily
        - entity: sensor.weather_forecast_daily
          type: 0
        - entity: sensor.weather_forecast_daily
          type: 1
        - entity: sensor.weather_forecast_daily
          type: 2
        - entity: sensor.weather_forecast_daily
          type: 3
  • AppDeamon logs look rather strange (it sends only partial information to panel)
2024-04-04 23:35:00.164627 INFO bedroom-nspanel: Sending MQTT Message: weatherUpdate~~~���~25375~OpenWeatherMap~11.7��C~~~���~17299~Weather Forecast Daily~rainy ~~~���~17299~Weather Forecast Daily~rainy ~~~���~17299~Weather Forecast Daily~rainy ~~~���~17299~Weather Forecast Daily~rainy 

Of course, the configured forecast entity looks good:

nspanel_encja

I will be very glad if You could help me sort out the issue

ADDITIONAL CONTEXT

  • AppDaemon version: 0.16.4

PANEL / FIRMWARE VERSION

EU Panel - Program Version 13.4.0(tasmota32)

@cezarg1410 cezarg1410 added the bug Something isn't working label Apr 4, 2024
@joBr99
Copy link
Owner

joBr99 commented Apr 4, 2024

You need to update the Backend in HACS to the latest version and restart AppDaemon.

Note that the files downloaded by HACS might not be the files used by the AppDaemon Addon in case you missing something during the upgrade to version 15 of the addon.

#1029

@joBr99 joBr99 closed this as completed Apr 4, 2024
@mmaritz
Copy link

mmaritz commented Apr 6, 2024

Hi - I know this is now closed but I have struggled to reinstate the forecast on my NSPanel.
I only get the NSPanel to display the time and date section - nothing below the line on SS2.

  1. Reinstalled all of the software components as
  2. Checked all the files and the forecast on the entity.

image

  entity: weather.mm_pi4_8gb
  theme:
    time: [65,105,225]
    time: [220,255,0]
    date: [220,255,0]
    tMainText: [220,255,0]
    bar: [0,140,0]
  entities: 
    - entity: weather.mm_pi4_8gb
    - entity: weather.mm_pi4_8gb
      type: 0
    - entity: wweather.mm_pi4_8gb
      type: 1
    - entity: weather.mm_pi4_8gb
      type: 2
    - entity: sensor.victron_battery_soc
      icon: mdi:battery

Configuration.yaml
template:

  • trigger:
    • platform: time_pattern
      hours: /1
      action:
    • service: weather.get_forecasts
      data:
      type: daily
      target:
      entity_id: weather.mm_pi4_8gb # change to your weather entity in this line
      response_variable: daily
      sensor:
    • name: Weather Forecast Daily
      unique_id: weather_forecast_daily
      state: "{{ states('weather.mm_pi4_8gb ') }}" # # change to your weather entity in this line
      attributes:
      temperature: "{{ state_attr('weather.mm_pi4_8gb ', 'temperature') }}" # change to your weather entity
      temperature_unit: "{{ state_attr('weather.mm_pi4_8gb ', 'temperature_unit') }}" # change to your weather entity
      forecast: "{{ daily['weather.mm_pi4_8gb '].forecast }}" # change to your weather entity

@joBr99
Copy link
Owner

joBr99 commented Apr 6, 2024

See #1204

https://docs.nspanel.pky.eu/stable/prepare_ha/#workaround-for-homeassistant-202404

You need to adjust your apps yaml

@mmaritz
Copy link

mmaritz commented Apr 6, 2024

It was my mistake...
A space in the following ('weather.mm_pi4_8gb ') fixed to ('weather.mm_pi4_8gb') and fixed the entities issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants