Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

WLL/CMX Home Assistant Integration.

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

WLL/CMX Home Assistant Integration.

Post by Phil23 »

Hi All,

Made the mistake of burning an SD card with Home Assistant a few Weeks back & stuck it in one of my spare rPi4's.
Talk about addictive & powerful.

First up it easily found my GW1100 & it's Main Suite, 14 additional Temp Sensors, the Soil Moistures, AQ/Pm & CO2 etc.
95 Entities in total for the device.

That started the journey of Automating things via Wifi Smart Switches etc. Any related to weather drawing on data from the Ecowitt integration.

One area of interest is control of the pumps on our Hot Tub.
EW sensors are located to monitor 2 water temps, Smart Switches control Solar Circulation & Heat Pumps, & Solar Radiation is being loosely used in the logic.

Next thought that came to mind was getting more accurate (Particularly Solar Energy) from my VP2.
Have both a USB Console & WLL for the VP2, but not sure if I'm best trying to pull data from the WLL, of trying to get it via CMX.

To pull if via CMX I assume I's be looking towards MQTT; an area I've not visited to date.

Home Assistant can talk to MQTT, as can CMX I understand, but I'm green from there in.

Anyone dabbled in this area & have any ideas to offer?

Cheers

Phil.

Edit:- I read a bit about pulling from the local APi; http://192.168.59.233/v1/current_conditions

and I read this,

Code: Select all

{"data":{"did":"001D0A715FF5","ts":1669886322,"conditions":[{"lsid":472625,"data_structure_type":1,"txid":1,"temp": 61.7,"hum":66.9,"dew_point": 50.6,"wet_bulb": 54.2,"heat_index": 60.7,"wind_chill": 61.7,"thw_index": 60.7,"thsw_index": 58.7,"wind_speed_last":5.00,"wind_dir_last":158,"wind_speed_avg_last_1_min":4.06,"wind_dir_scalar_avg_last_1_min":127,"wind_speed_avg_last_2_min":4.25,"wind_dir_scalar_avg_last_2_min":132,"wind_speed_hi_last_2_min":8.00,"wind_dir_at_hi_speed_last_2_min":130,"wind_speed_avg_last_10_min":3.68,"wind_dir_scalar_avg_last_10_min":151,"wind_speed_hi_last_10_min":8.00,"wind_dir_at_hi_speed_last_10_min":150,"rain_size":2,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":0,"rain_storm":0,"rain_storm_start_at":null,"solar_rad":0,"uv_index":0.0,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":0,"rainfall_year":4949,"rain_storm_last":70,"rain_storm_last_start_at":1669561620,"rain_storm_last_end_at":1669662061},{"lsid":472622,"data_structure_type":4,"temp_in": 72.5,"hum_in":44.9,"dew_point_in": 49.9,"heat_index_in": 71.2},{"lsid":472621,"data_structure_type":3,"bar_sea_level":29.805,"bar_trend": 0.028,"bar_absolute":27.782}]},"error":null}
And first thing I notice is that it appears to be non Metric Values.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Nossie
Posts: 365
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: WLL/CMX Home Assistant Integration.

Post by Nossie »

Heya,

I have a basic setup with ecowitt - CMX pushes to MQTT - and then HA picks it up - you would then use something like nodered or HA to interact with the data.

MQTT seems to be the most compatible way to communicate with CMX but there are a lot of caveats that could be better supported. E.G for certain manufacturers there are integrations that are powerful and included in HA or HACS but you might have to point your station directly at it defeating the point of having CMX - I've attached my basic HA integration - but there is so many better ways to format it.

More basic information available here - viewtopic.php?t=17906&start=60
You do not have the required permissions to view the files attached to this post.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 3.28.0 (build: 3269) ● CumulusUtils Version 6.23.0● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
Nossie
Posts: 365
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: WLL/CMX Home Assistant Integration.

Post by Nossie »

And first thing I notice is that it appears to be non Metric Values.
MQTT does not understand measurements, what you export is what you get and then when you feed it into HA - you then define the cm, mm inch, hpa depending on what you are exporting to MQTT

Code: Select all

  - name: "Weather Station Rain Rate"
    state_topic: "sensor/cumulusmx/interval"
    value_template: '{{ value_json["rain rate"] }}'
    unit_of_measurement: "mm"
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 3.28.0 (build: 3269) ● CumulusUtils Version 6.23.0● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
Post Reply