WeatherDuino Forum

Full Version: Home Assistant
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,
Does anyone have any thoughts on how you would go about integrating WeatherDuino with Home Assistant. i.e. to pull in the various weather sensors in to display them on a Home Assistant dashboard.
I only have the Pro2+, although would consider upgrading if that would simplify the integration.
(28-04-2023, 13:25)mikeyk Wrote: [ -> ]Hi,
Does anyone have any thoughts on how you would go about integrating WeatherDuino with Home Assistant. i.e. to pull in the various weather sensors in to display them on a Home Assistant dashboard.
I only have the Pro2+, although would consider upgrading if that would simplify the integration.

Hi mikeyk,

You can probably read some variables for example from small web site of WeatherDuino RX Pro2+ unit. I think the best utility for this job can be HACS MultiScrape... 
[attachment=3154]

Personally, at the moment I only use iframes in HA to embed the entire website...
[attachment=3155]
Hi mikeyk,

Since some time that I'm working (very slowly) in something which I think would allow Home Assistant (or other software) to fetch weather data from the WeatherDuino receiver by using JSON.
Unfortunately, due to hardware limitations, this enhancement hardly could be implemented on the Pro2 line of receivers, but possibly will be included on next software release for the 4Pro DB receiver.

JSON content will be something like this:

Code:
{"ID":"4P_U32","TID":160,"ts":1682843958,"Tin":219,"Hin":664,"Tout":158,"Hout":933,"P":10194,"Wsp":122,"Wgs":158,"Wdir":353,"Rtd":0,"Rfr":0,"SR":0,"UV":0}

I don't know much about Home Assistant, do you have any idea about how often it will fetch data from a external device? Every minute? Or it could be user defined?

@hornychz - Seems you are using Home Assistant too, do you know something about the question above? Thanks.

Rgs
Werk_AG
Hello guys,

I think it should be possible to parse said .json using a HACS module called MultiScrape. It allows not only to simultaneously read several (many) variables at once, but also to define the timing of operations as desired by the user.

(It's a very nice idea for the future, I'll definitely try to focus on it in time, but right now I'm totally busy with many other tasks... But I'm really looking forward to it. I'm currently using OpenWeatherMap information in HA and personally I think we often have more accurate information. Of course, we can hardly replace their predictions...)

Thank you Werk_AG for this idea!  Idea
(29-04-2023, 22:54)hornychz Wrote: [ -> ]Hello guys,

I think it should be possible to parse said .json using a HACS module called MultiScrape. It allows not only to simultaneously read several (many) variables at once, but also to define the timing of operations as desired by the user.

(It's a very nice idea for the future, I'll definitely try to focus on it in time, but right now I'm totally busy with many other tasks... But I'm really looking forward to it. I'm currently using OpenWeatherMap information in HA and personally I think we often have more accurate information. Of course, we can hardly replace their predictions...)

Thank you Werk_AG for this idea!  Idea

Hi all. Has anybody progressed importing data from WeatherDuino to Home Assistant. I am looking at using home assistant MultiScrape to extract data from the Pro2 Compact  web page that is available by accessing via eg. http://192.168.X.XXX/weather in my case.
(03-01-2024, 02:04)dormani Wrote: [ -> ]
(29-04-2023, 22:54)hornychz Wrote: [ -> ]...
I think it should be possible to parse said .json using a HACS module called MultiScrape. It allows not only to simultaneously read several (many) variables at once, but also to define the timing of operations as desired by the user.
(It's a very nice idea for the future, I'll definitely try to focus on it in time, but right now I'm totally busy with many other tasks... But I'm really looking forward to it. I'm currently using OpenWeatherMap information in HA and personally I think we often have more accurate information. Of course, we can hardly replace their predictions...)
...

Hi all. Has anybody progressed importing data from WeatherDuino to Home Assistant. I am looking at using home assistant MultiScrape to extract data from the Pro2 Compact  web page that is available by accessing via eg. http://192.168.X.XXX/weather in my case.

Hello dormani,

We talked about .json output from web of RX unit.
I'm afraid it's not possible to get information from the .../weather website at the moment. We cannot use the CSS selector, which is necessary for proper scraping.
If I'm not mistaken, so far only one RX unit is able to provide .json, that is the 4Pro DB RX unit.
I get my WeatherDuino Pro data into HA by using the Cumulus MX builtin MQTT server. It took me a bit to figure out the webtags and stuff to get it working. I think I posted it on the Cumulus website. If this is something you'd like to follow up, shout out and I revisit how I got there.

Cheers UB
Here's the data I'm using so far.
[Image: Screenshot%202024-01-07%20200729.png]
@Werk_AG
I think it would be awesome if the WeatherDuino Pro project code could be ported to ESPHome. I think it would be quite a popular addon. If it was possible it could possibly make all those IDE version issues disappear.

Probably a lot of work I imagine. I'd be willing to help if my basic skills would be of any help.
(07-01-2024, 10:37)uncle_bob Wrote: [ -> ]@Werk_AG
I think it would be awesome if the WeatherDuino Pro project code could be ported to ESPHome. I think it would be quite a popular addon. If it was possible it could possibly make all those IDE version issues disappear.

Probably a lot of work I imagine. I'd be willing to help if my basic skills would be of any help.

Hi uncle_bob,

Some time ago I gave a look to the great ESPHome project. If I correctly remember it uses the ESP-IDF for programing, most people including me are not confortable to use it.
Also as you said, porting the WeatherDuino project to the ESPHome would imply a hugh amount of time and work. I'm afraid that currently I can't take that job.

Currently, with the 4ProDB receiver its possible to get almost all data of the Weatherduino weather station in JSON format, which by turn can be used by many Home Automation softwares. Just issue ex: "http://192.168.X.XXX/json"
Pages: 1 2