Fantastic, thank you!!
Hi. Looks like exactly what I’m looking for. However I only have HA in container.
Is there some docs how to install this extension without HA OS installed. Looks like container need to be build and then… some magic in configuration?
how in that case an addon behave? where are typically addon settings stored, the ones from configuration tab?
were you able to start the addon? what is in your log?
it starts like this
21.12.2023 21:05:38 Starting Netatmo service
Run mode: hass
Config dir: /config/nfws/
the python script can run locally, addon settings must be in options.yaml, stations in stations.yaml
Sorry for the miscommunication from my side.
I just found this addon and figured out that I’m not able to use it without some additional effort. I didn’t tried your addon yet.
I’m still reading your code and searching for some information how Netatmo works and how to integrate this code to something different than HA addon.
the python script nfws.py can run stand-alone. Just run py nfws.py
place also stations.yaml and options.yaml in same directory.
As the script uses MQTT, you need to configure connection to you broker in options. For complete netatmo setup read installation steps
Thank you very much for your help. It works now as a standalone script without issues.
Hi. I installed and configured this add-on. Easy to setup. I have two or three questions:
1- Not really a question. I thought the netatmo integration was to send data from a station. But apparently it can be used by non-owners. I’ll take another look into it
2- This doesn’t seem to show the forecast. Possibly due to my stattions YAML configuration?
3- I was looking into ways to display this in a card, but apparently most cards assume a specific type of “weather” object while here we get individual values. Is there a way, or some guidelines to integrate this info into a more friendly card?
Thanks and good work!
1 - yes. You see same data here https://weathermap.netatmo.com
2 - Netatmo doesn’t show weather forecast. Only measured values
3- like I said, it is not a forecast. So you cannot show the data in weather card
Do this still work after netatmo has updatedet there system?
I cant get to the oauth_code,
its only return: https://api.netatmo.com/oauth2/hassio?error=invalid_client&state=nfws_hass
the addon still works. It is using OAUTH2 authorisation.
Can you post, what exactly you did and the logs?
Hello. Add-on is working nicely.
- However despite having set “deleteRetain: true” in nfws config options, orphaned sensors are not deleted. Is there any way to delete them ?
- Other question: Is it possible to know that a given favorite weather station is dead and therefore is not reporting any value anymore ? In that case, will the value be “unknown”, for example ?
- Last question: Is it possible to rename entities like for example “sensor.netatmo_favourite_weather_stations_nfws_ABC_sum_rain_24” to “sensor.netatmo_ABC_rain24” or this will break add-on ?
- deleteRetain - works only when running script outside HA, not as addon. Addon uses HA for calling MQTT and there it is not allowed to delete retain topics (or I don’t know how)
- unknown - i will check if it is possible
- prefix netatmo_favourite_weather_stations - it is a bug, I noticed it last week. I will correct it. Name should start with nfws_
Hello
The integration worked fine. But now I get the message “Wrong response code 400” in the log. I have recreated the client_ID and client_secure and tried again with the oauth code according to the instructions.
Unfortunately I still get the same error. Can anyone help?
06.09.2024 14:02:03 Starting Netatmo service
Run mode: hass
Config dir: /config/nfws/
Netatmo refresh_token: Wrong response code 400
{'error': 'invalid_client'}
Retry in 1 min again
Netatmo refresh_token: Wrong response code 400
{'error': 'invalid_client'}
Retry in 1 min again
Netatmo refresh_token: Wrong response code 400
{'error': 'invalid_client'}
Retry in 1 min again
Netatmo refresh_token: Wrong response code 400
{'error': 'invalid_client'}
Retry in 1 min again
mine is running:
06.09.2024 18:32:27 Invalid access token or expired:Access token expired
{
“access_token”: “60e0va7xf4f0ba317b15a4a1|652328962fd726bd0f7a292a1e889a92f”,
“expire_in”: 10800,
“expires_in”: 10800,
“refresh_token”: “20e0aa79f2f0ba227b15a4a1|11c629ee2c36a0c6fbb2c1ff47548be9”,
“scope”: [
“read_station”
]
}
06.09.2024 18:35:27 get data
what scope do you have in your application at netatmo dev page?
I use the read_station scope to.
Updatet the acces- and refresh token.
Still not working.
ok,now it works.
i Reinstalled the addon, konfiguret, stoped it and restart it.
Thank you
glad to hear. I updated the installation documentation today and added few pictures.
Hello. I have NFWS addon fully working on a HA instance but I can’t make it work with other client id/secret in another HA Green installation running HA 2024.9.3.
I keep getting the following message in log: Netatmo refresh_token: Wrong response code 400 {‘error’: ‘invalid_grant’} after putting oauth2 code and restarting addon.
I tried to uninstall add-on and do it again for start but not helping.
What strange is that folder NFWS is not created in Config but maybe it is only when connection is ok.
Add-on seems properly started. I have the following message in supervisor: “[supervisor.docker.addon] Starting Docker add-on Package aarch64-addon-nfws · GitHub with version 0.9.8”. No error message.
Any advise ?
since last version, configuration is stored in \addon_configs\adaeefb4_nfws
This directory is automatically created with first run by hass framework
In this directory you have default stations.yaml, which must be changed. netatmo_token.yaml will be stored after first successful download from netatmo.