Home Assistant
The WindNerd anemometer can be integrated with Home Assistant to display wind data on your dashboard and trigger automations, such as sending alerts or closing shutters when wind speed exceeds a set threshold.
How to add you Windnerd One as an MQTT device
Install the MQTT add-on
To install the add-on, follow these steps:
-
In Home Assistant, go to Settings → Add-ons → Add-on Store.
-
Locate the Mosquitto broker add-on and select it.
-
Click Install to begin the installation.
-
Start the add-on.
Create a dedicated user
-
Create a new user dedicated for MQTT by going to Settings → People → Users in the Home Assistant frontend. Choose a username at your convenience. (Do not create the user in the Mosquitto add-on’s Configuration tab.)
-
Allow login and set a password.
-
Click Update to apply the changes.
Configure the WindNerd One
- In the local configuration webpage, go to Remote Services → MQTT broker.
- Activate the MQTT broker (set on Yes).
- Enter the broker URL in the format mqtt://HOME_ASSISTANT_LOCAL_ADDRESS:1883. Typically, this would be: mqtt://homeassistant.local:1883
- Set a unique topic; in most cases, the prefilled value is perfectly suitable.
- Enter the username and password you created in the previous step.
- Save.
After a few seconds, the Last Status will update. If everything works, it should show “Publishing Successful”.
Create the device and the wind speed entity
- back in HomeAssistant go to Settings > Devices & Services > MQTT > Add MQTT Sensor
- Under the 3 dots menu, click Add MQTT device
-
Add a name for the device in MQTT device details and click on next
-
Select
Sensor
as type of entity -
Set a name for the wind speed entity
- Select
Wind Speed
as Device class - Select
Measurement
as State class - Select
mm/s
as Unit of measurement
-
Set State Topic with the unique topic previously configured
-
For value template set
{{ value_json.wind_instant_speed * 10 }}
- Save, you should now see the current wind speed on the default dashboard
Create the wind direction entity
-
In Home Assistant, go to Settings > Devices & Services > MQTT
-
Find your existing WindNerd device in the list and click 'Configure'
-
Choose "Add another entity to WindNerd One"
- Select
Sensor
as type of entity - Set a name for the wind direction entity
- Select
Wind Speed
as Device class - Select
Measurement angle
as State class - Select
°
as Unit of measurement
-
Set State Topic with the unique topic previously configured
-
For value template set
{{ value_json.wind_instant_dir }}
- Click on next then don't forget to save changes