I got venetian blinds on our house and needed reliable wind gust data to raise them when wind gust is too big. In the beginning I used Netatmo integration, but as I don’t own Netatmo weather station, I was facing 2 major issues:
you don’t know what you get - when you have a favourite weather station, in my case my neighbours, even when you provide exact coordinates, you must not get this station data in answer
from my observation, wind modules often disappear or don’t return data.
Then I checked Netatmo API and found a solution for me:
Netatmo offers getstationsdata API, which returns user Weather Stations Data. You get your favourites station from your Netatmo account. Maximum is five stations. You know what you get.
I added - function first - which retrieves desired value from first available station defined in your list. You just find 5 stations in you surroundings and you have a good chance, that at least one works and venetian blinds are safe
could you please help, how can I use that addon? especially the .yaml config
to retrieve the data of my favorite station, but where should stations.yaml be created to make it a sensor?
I was able to set this up. But the individual stations do not appear as MQTT sensors. Is this normal? Based on python code I would expect them as well.
Only the calculated ones appear. And calculated pressure one does have any data, while others like temp. and humidity have values. Is there a way to analyze this further?
Hi, thanks for the offer. I just used VScode to check the configuration yaml and it turned out that there formatting errors. So now I get also the individual values from favorite stations.
For pressure there is no option for a calculated one like min/max/avg across the multiple stations, right?
Hi @GiZMoSK
A bit off topic, but is the wind gust reliable? I’m considering buying the Netatmo today when Amazon has nice Price prices and will like you use it for my blinds. Does the gust reporting go up and down as wind changes or is it amore an average over the last minute/hour or similar?
i thing is reliable when you install it on right place. The gust value must be absolute, not average - when you take the value from one station.
There might be a small delay, but i’m ok with that.
I have a rule, when gust is > 60 for 5 min, than open the shutters
Netatmo integration uses getpublicdata method, which returns average data from all station from defined area. Even if you area is your house with your netatmo device, you must not get data from this one station.
NFWS uses getstationdata method and it returns exact values from you favorite stations
hello,
I can’t get a sensor in mqtt, can you help me ?
Thank you beautiful
netatmo_stations:
"70:ee:50:2c:f1:54":
name: Mon domicile #name will be nfws_name_station1_...
sensors: #WindAngle, WindAngleCompass, WindAngleCompassSymbol, GustAngle, GustAngleCompass, GustAngleCompassSymbol, Humidity, Pressure, rain, sum_rain_1, sum_rain_24, WindStrength, GustStrength, Temperature
- WindStrength #name will be nfws_name_station1_WindStrength
- WindAngleCompass
- WindAngleCompassSymbol
- GustStrength
- GustAngleCompass
- GustAngleCompassSymbol
- Humidity
- rain
- sum_rain_1
- sum_rain_24
calculated_sensors: #sensor name = nfws_function_sensor_suffix
- function: min #min, max, avg, first
sensors:
- Temperature #any sensor
- Humidity
suffix: "" #define if you need to have more sensors of one kind/function
stations:
- "70:ee:50:2c:f1:54"
- function: first #especially for wind station, which often disappears
suffix: ""
timeDelta: 30 #netatmo sensor data shoudn't be older than timeDelta (in min). Compared to dashboard_data.time_utc. Default is 30min
sensors:
- WindStrength #only first sensor will be evaluated
- WindAngleCompass #next sensors will be taken from same station+module
- WindAngleCompassSymbol
- WindAngle
- GustStrength
- GustAngleCompass
- GustAngleCompassSymbol
stations: #ordered list
- "70:ee:50:2c:f1:54"
System Information
version
core-2023.10.0
installation_type
Home Assistant OS
dev
false
hassio
true
docker
true
user
root
virtualenv
false
python_version
3.11.5
os_name
Linux
os_version
6.1.45
arch
aarch64
timezone
Europe/Paris
config_dir
/config
Home Assistant Community Store
GitHub API
ok
GitHub Content
ok
GitHub Web
ok
GitHub API Calls Remaining
4651
Installed Version
1.33.0
Stage
running
Available Repositories
1320
Downloaded Repositories
55
Home Assistant Cloud
logged_in
true
subscription_expiration
12 juillet 2024 à 02:00
relayer_connected
true
relayer_region
eu-central-1
remote_enabled
true
remote_connected
true
alexa_enabled
true
google_enabled
true
remote_server
eu-central-1-7.ui.nabu.casa
certificate_status
ready
can_reach_cert_server
ok
can_reach_cloud_auth
ok
can_reach_cloud
ok
Home Assistant Supervisor
host_os
Home Assistant OS 10.5
update_channel
stable
supervisor_version
supervisor-2023.10.0
agent_version
1.5.1
docker_version
23.0.6
disk_total
110.0 GB
disk_used
21.7 GB
healthy
true
supported
true
board
khadas-vim3
supervisor_api
ok
version_api
ok
installed_addons
File editor (5.6.0), Samba share (10.0.2), Zigbee2MQTT (1.33.1-1), Mosquitto broker (6.3.1), Advanced SSH & Web Terminal (15.0.8), InfluxDB (4.8.0), Grafana (9.1.1), Linky (1.1.0), Studio Code Server (5.11.0), Netatmo Favorites Weather Stations (0.9.6)
hi, i’m not at home right now, so I cannot debug your config.
try:
rename name: Mon domicile to mon_domicile
add all stations to
stations:
- "70:ee:50:2c:f1:54"
list is in log, in part Not used station id …
HA sensors are created, when some data are received.
Then you will see in log line like this:
27.10.2023 16:58:23 Registering: {‘unique_id’: ‘nfws_first_GustStrength’, ‘name’: ‘nfws_first_GustStrength’, ‘state_topic’: ‘nfws/sensor/nfws_first_GustStrength/state’, ‘json_attributes_topic’: ‘nfws/sensor/nfws_first_GustStrength/state’, ‘value_template’: ‘{{ value_json.value }}’, ‘device’: {‘identifiers’: [‘Netatmo weather station_70ee50’], ‘name’: ‘Netatmo Favourite Weather Stations’, ‘manufacturer’: ‘Netatmo’, ‘model’: ‘Weather Stations’}, ‘state_class’: ‘measurement’, ‘unit_of_measurement’: ‘km/h’}
I see on the Netatmo dev documentation that it should also be possible to retrieve the min and max temperatures - would it be possible for your addon to retrieve the min and max temperatures from the last 24h?