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

Adding juice to the forecasts #12

Open
naevtamarkus opened this issue Oct 26, 2024 · 3 comments
Open

Adding juice to the forecasts #12

naevtamarkus opened this issue Oct 26, 2024 · 3 comments

Comments

@naevtamarkus
Copy link

Thanks a lot for the integration! I started downloading some stuff from the API and ended up spending too much time on very simple stuff, and your code works like a charm.

I'd like to ask if it's possible to add a bit mote information regarding expected precipitation. In the forecast I can see temperatures and the icon for rain/sun, but not how many mm of water should one expect. Where I live it rains frequently, and 2 or 20 mm makes a big difference. Hourly and daily would be awesome, like in the official app, where they provide ranges. This way one can see, at a glance, if you must take the umbrella with you. One example: if you add the weather card in your dashboard and ask for secondary attributes, the precipitation is not there. Many other values are there already, like wind. Could it be a missing property in weather.py? I can see the precipitation in the sensors, though.

My second goal would be to use the forecast in automations. For instance: I'd like to water the garden if the forecasted precipitation for today is expected to be below 20mm. Get an alert if the wind is expected to be over 40 km/h today (not after it happened), things like this. I was looking at what one can do already from an automation, and it's possible to use the weather.weather_at_6900 attributes to see the current state (e.g. it rains now) but it's not possible to automate on the forecast. I was thinking a possibility could be to add a couple of entities with the forecast for today and the forecast for tomorrow, for instance, something like weather.forecast_today_at_6900 and weather.forecast_tomorrow_at_6900... what do you think?

I know how to code and could find the time to help... my problem is that I have 0 experience with home assistant stuff. Looking at your code, this seems to be 80% of this stuff, unfortunately. But with some guidance maybe I can contribute, please let me know.

Thanks again!!

@Benschi99
Copy link

Benschi99 commented Nov 22, 2024

https://www.home-assistant.io/integrations/weather/

Please have a look at this page. The forecast action will provide everything you are looking for regarding precipitation.

@naevtamarkus
Copy link
Author

Thanks, but I'm not sure I understand. The default weather integration does not provide accurate forecasts for Switzerland, that's why I was trying to get a MeteoSwiss'-based one, hence my question.

@Benschi99
Copy link

Benschi99 commented Nov 27, 2024

The default weather integration of Home Assistant can't produce any forecasts without any third party integrations feeding it data. And this Meteo Swiss integration is supporting it. Not sure how to explain it any easier, maybe worth to watch some tutorials about it.

E.g. daily forecast in my location from Swiss Meteo Integration. You can also use the forecasted precipitation from here in automations.

- condition: rainy
  datetime: "2024-11-28T00:00:00"
  wind_bearing: null
  temperature: 8
  templow: 1
  precipitation: 6.8

- condition: sunny
  datetime: "2024-11-29T00:00:00"
  wind_bearing: null
  temperature: 6
  templow: -1
  precipitation: 0

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