In this tutorial, I go through the steps of setting up an Ecowitt weather station in Home Assistant.
Ecowitt is a popular brand of weather stations and other climate monitoring devices. They sell products such as rainfall sensors, temperature and humidity sensors, water leak sensors, and much more. You can integrate most of these products into Home Assistant.
Adding your weather station to Home Assistant allows you to build a custom dashboard displaying various pieces of information. You can also build automations based on the values from the sensors. For example, if it starts to rain, you can have Home Assistant send an alert to your phone.
This tutorial will help you install the Ecowitt integration and connect your existing Ecowitt weather station to the integration. You must ensure you have Home Assistant setup on a computer such as a Raspberry Pi. Also, ensure your weather station is set up correctly and processing data.
Installing the Ecowitt Integration
The steps to installing the Ecowitt integration are very straightforward and will only take a couple of minutes.
1. In your Home Assistant interface, go to “Settings” and click on “Devices and Services“.
2. On this page, click on “Add Integration“.
In the pop-up dialog box, search for the “Ecowitt” integration or scroll down to find it. Once you find it, click on it.
Click on submit to install the Ecowitt integration.
3. You should now see the details you need to enter into your Ecowitt weather station. The following section will take you through the few basic steps to achieving this task.
Connecting the Ecowitt Weather Station to Home Assistant
These next steps require you to use the Ecowitt application on your phone or be able to navigate to the weather station in the browser using its IP address.
Web Browser
To do the web browser steps, you will need to know the IP address of your weather station. Typically, you can find this by going to your router and looking for the device and its allocated IP address.
1. Navigate to the weather station on your favorite web browser by entering the IP into the address bar. For example, my weather station is at 192.168.0.248
.
You will see a login screen. Unless you have set a password, you can click on “Login“.
2. On the next screen, scroll until you find the Customized section. Change the “Customized” option to “Enable” and the “Protocol Type Same As” to “Ecowitt“.
Enter all the details from Home Assistant and set the “Upload Interval” to 60 seconds. Afterward, click on “Save“.
Ecowitt Phone App
This step requires you to have your weather station connected to the Ecowitt app on your phone. You can get the Ecowitt app on both iOS and Android.
1. Open the Ecowitt application and select the weather station you wish to connect to Home Assistant.
2. On the dashboard page, tap the three dots in the top left corner and select “Others“.
3. On the next screen, select “DIY Upload Servers“.
Next, select “Customized“.
4. On this final page, enter all the details that Home Assistant provided. These details include the server IP, path, and the Port. I left the protocol as Ecowitt and set the upload interval to 60 seconds.
Viewing the Data within Home Assistant
Now that you have connected the weather station to Home Assistant, you should start to see data flow. To view the data, follow the next few steps.
1. In your Home Assistant interface, go to “Settings” and click on “Devices and Services“. On this page, click on the Ecowitt integration.
If it says, “No Devices or Entries“, you may need to reload the integration by clicking on it, clicking the three dots, and then clicking “Reload“.
Once “1 device” is showing under the Ecowitt entry, click on it.
3. You should now see all the weather station’s sensors. It should include data such as temperature, humidity, pressure, dewpoint, rainfall, and more.
4. You can now set up a dashboard that displays all this data. If you need to use the data to trigger automations, use the inbuilt automations tool or Node-RED.
In the example below, we use a mini graph card, a rain gauge card, and a wind compass card. These are custom frontend modules that will need to be installed using HACS.
Conclusion
You should now have your Ecowitt weather station integrated into Home Assistant. The process is easy, and you should not run into any issues. If you encounter an unexpected issue, please let us know, and we will do our best to investigate the issue.
We have plenty more tutorials that cover installing and configuring Home Assistant. I highly recommend taking a look at the tutorials if you are investing time and energy into making a smart home.
Please let us know if you have feedback regarding this tutorial. We may not respond, but we are always reading the comments.