Page 1 of 1

WLL/CMX Home Assistant Integration.

Posted: Thu 01 Dec 2022 9:01 am
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.

Re: WLL/CMX Home Assistant Integration.

Posted: Thu 01 Dec 2022 9:52 am
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

Re: WLL/CMX Home Assistant Integration.

Posted: Thu 01 Dec 2022 12:24 pm
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"