-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Home Assistant new Get weather forecast service #137
Comments
Thanks for pointing it out! HA just revamped their whole weather approach, and while it's considerably better, it's also a major change. I'm going to work on integrating it in the next couple months, but I'm just waiting for some other integrations to be updated so I can use them as reference first. |
Since this is a HA specific issue, I'm also going to transfer this over to that repo, but I'll keep you updated there with progress! |
You might be interested to know that AstroWeather recently updated their integration to support the new service mode. |
FYI, this is still broken and will break the integration completely in a few months.
|
Fixed in v1.3! It's listed a pre-release at the moment, but assuming there aren't any showstopping bugs I'll push it public next week! |
Ok, well that's not good, but why I pushed this as a pre-release! Anything in the logs here? |
I thought you were looking for testing? I am not seeing anything in the logs from what I can tell |
@markmghali , very much looking for testing, so I appreciate this report! |
Well, yes, it works, but the old attribute sensors for forecast are gone. This is expected with the new changes to weather integrations, but I thought that they would populate as individual sensors or entities with their own attributes. I did add I can still see the forecast in the GUI. |
Alas, they won't populate on their own unless sensors are selected. This is a bit of a controversial decision: https://community.home-assistant.io/t/petition-dont-delete-the-forecast-attribute/609298, but seems set in stone, so such is life. However, if you add those sensors in, they should show up! Can you try only using the temperature and condition sensors? |
Note that for daily sensors, you need to use "Temperature High" and "Temperature Low". Maybe I should document this better in the config? i.e. having "daily monitored conditions" and "hourly monitored conditions" |
Ahh, yes, I selected those to be safe and they are now appearing, though it's annoying that I have to manually remove the sensors that I disabled (not your fault, just HA being HA). I think this looks good, though now I have to go through a lot of automations and modify my MQTT scripts:
|
Yea, I'd love to find a way to git rid of them automatically, but I couldn't figure it out! |
Ideally I would base this off some other integration that creates sensors and allows them to be configured, but I couldn't find one that works. Also agree that this is going to be a big change, so not thrilled about the amount of work you'll have to go though. I don't know if there's a way around it though, and judging by the comments on that link I don't know if there is any other option other than sensors |
No worries, and I figured out the MQTT command conversion relatively easily. OLD:
NEW:
|
Ahh, one thing missing was in the old forecast attribute it gave the date of the forecasted day. The new sensors lack that. I'll have to figure out something else, then, to get the actual date of the forecasted day instead of just I used it in this script:
|
Would it help to have a "time" sensor that provided the datetime for something? So there would be a "time_2d" sensor with a datetime value? |
Yes, that would definitely help. I was going to see about populating those segments in my panel with dates from HA directly, but if it can be synced with PirateWeather summary conditions that would be best. |
Great. They're easy enough to add in, so I'll push a 3.0.1 that adds them as an option |
Thank you. A note to others making the change over. The verbiage of the old
Dunno about snow, fog, or stormy as it's not cold enough yet. |
I think icon should give you the previous values- the summary will one day be a text summary, while icon is meant for more machine readable stuff |
Hmm, interesting. The |
Sorry, side question. Since this YAML configuration is now deprecated, where can we set the scan interval, or does it just default and hard code to 15 minutes?
|
Good question, another thing I should add to the docs. It imports it in from the yaml, so if it's in there you should be good to go. Otherwise you can set it when you first create the integration from the GUI. I don't believe there's a way to change it after the fact, but I can look into this |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Stable version released. Thank you to everyone who tested the pre-release version. |
Hello,
Thank you for all your work on this. Home Assistant has created a new service in the latest release 2023.9 called weather.get_forecast. Can please update the home assistant integration to reflect this change?
Thank you Again
The text was updated successfully, but these errors were encountered: