Add new integration here_weather#28910
Conversation
|
@eifinger Does this also obtain the |
|
@arsaboo with the following config: sensor:
- platform: here_weather
name: Home
app_id: "<APP_ID>"
app_code: "<APP_CODE>"
mode: forecast_astronomyyou will get the following sensors: "sunrise": {"name": "Sunrise", "unit_of_measurement": None},
"sunset": {"name": "Sunset", "unit_of_measurement": None},
"moonrise": {"name": "Moonrise", "unit_of_measurement": None},
"moonset": {"name": "Moonset", "unit_of_measurement": None},
"moonPhase": {"name": "Moon Phase", "unit_of_measurement": "%"},
"moonPhaseDesc": {"name": "Moon Phase Description", "unit_of_measurement": None},
"city": {"name": "City", "unit_of_measurement": None},
"latitude": {"name": "Latitude", "unit_of_measurement": None},
"longitude": {"name": "Longitude", "unit_of_measurement": None},
"utcTime": {"name": "Sunrise", "unit_of_measurement": "timestamp"} |
|
Does it include the forecast information as well? We can have today's value as the value of the sensor and forecast as attributes. |
|
The current implementation (which I am not all too happy with) creates a sensor for each information (e.g. Currently this means if you want to have the information for today and the information for 7 days in the future you would have to have the following config: sensor:
- platform: here_weather
name: Home
app_id: "<APP_ID>"
app_code: "<APP_CODE>"
mode: forecast_astronomy
- platform: here_weather
name: Home in 7 days
app_id: "<APP_ID>"
app_code: "<APP_CODE>"
mode: forecast_astronomy
offset: 7I as I have said I am gladly taking ideas on how to to this differently. |
|
I created a custom sensor just for the moon data. It creates one sensor with the state as the current moon phase and all the forecast information in attributes. I don't want to pollute this PR with all the feature request discussion. I am discord (arsaboo) if you want to discuss it there. |
65359dd to
895dcd8
Compare
This comment has been minimized.
This comment has been minimized.
|
Still open |
This comment has been minimized.
This comment has been minimized.
|
... |
This comment has been minimized.
This comment has been minimized.
|
Will this integration use the same api key as |
|
Yes, it uses same API keys and request limits. The HERE API does not differentiate between them |
|
As this PR is now open for nearly 2 years (I think the all time record 😅) and a lot of people spent a lot of time and effort on it I am currently debating whether it would be best for all if I close the PR and publish this integration as a custom component. This way we avoid spending even more time. @MartinHjelmare you spent the most time with me on this PR what do you think? |
|
The main problem is that this new integration would share api key and api limits with another integration. I don't think we should do that. A custom integration is a good alternative until we have a solution for the above problem, I think. Thanks for your work and contributions! 👍 |
Proposed change
Add a new integration using the HERE Destination Weather API to provide
weatherandsensorentities.The integration provides the following four modes:
All sensors and all weather entities but the Daily Simple are disabled by default.
The information is refreshed every 300s or less if the number of active integrations is too high. This way it is automatically made sure that the free limit of 250k request per month ist not exceeded.
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: