Could use some assistance on the new MQTT. What do I need to add to Home Assistance to make it see CUMX MQTT now? Thank you.
DataUpdateTemplate:
{"topics": [
{
"topic": "CumulusMX/DataUpdate",
"data": "\"time\":\"<#timehhmmss>\",\"windspeed\":<#wlatest rc=y>,\"winddir\":<#bearing>,\"temp\":<#temp rc=y>,\"humidity\":<#hum>,\"wgust\":<#wgust rc=y>,\"dew\":<#dew rc=y>,\"wchill\":<#wchill rc=y>,\"wspeed\":<#wspeed rc=y>,\"press\":<#press rc=y>,\"UV\":<#UV>,\"SolarRad\":<#SolarRad>,\"rfall\":<#rfall>,\"rrate\":<#rrate>,\"heatindex\":<#heatindex>,\"bearing\":<#bearing>,\"wchill\":<#wchill>,\"forecast\":<#forecastenc>,
"retain": false
}
]}
Home Assistance configuration.yaml
- platform: mqtt
state_topic: "CumulusMX/DataUpdate"
name: "Davis Windspeed"
unit_of_measurement: 'mph'
icon: mdi:weather-windy
value_template: '{{ value_json.wspeed }}'
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
CUMX MQTT to Home Assistance
Moderator: mcrossley
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: CUMX MQTT to Home Assistance
I have no idea what "home assistance" is expecting.
What did you previous version template that presumably worked look like? I can then convert that to the new format for you.
What did you previous version template that presumably worked look like? I can then convert that to the new format for you.
-
CurtisZM
- Posts: 29
- Joined: Wed 30 Nov 2011 3:29 am
- Weather Station: Davis VP2
- Operating System: Windows 10 Version 1511
- Location: Zumbrota,Mn
- Contact:
Re: CUMX MQTT to Home Assistance
{"time":"<#timehhmmss>","temp":<#temp rc=y>,"humidity":<#hum>,"wgust":<#wgust rc=y>,"dew":"<#dew rc=y>","wchill":"<#wchill rc=y>","wspeed":"<#wspeed rc=y>","press":"<#press rc=y>","UV":"<#UV>","SolarRad":"<#SolarRad>","rfall":"<#rfall>","rrate":"<#rrate>","heatindex":"<#heatindex>","bearing":"<#bearing>","wchill":"<#wchill>","forecast":"<#forecastenc>"}
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: CUMX MQTT to Home Assistance
It looks like you almost had it right - you were missing the closing " marks after <#forecastenc>, and the curly brackets to make it be interpreted as JSON by your home assistance system.
I think this should do it?...
I think this should do it?...
Code: Select all
{"topics": [
{
"topic": "CumulusMX/DataUpdate",
"data": "{\"time\":\"<#timehhmmss>\",\"temp\":<#temp rc=y>,\"humidity\":<#hum>,\"wgust\":<#wgust rc=y>,\"dew\":\"<#dew rc=y>\",\"wchill\":\"<#wchill rc=y>\",\"wspeed\":\"<#wspeed rc=y>\",\"press\":\"<#press rc=y>\",\"UV\":\"<#UV>\",\"SolarRad\":\"<#SolarRad>\",\"rfall\":\"<#rfall>\",\"rrate\":\"<#rrate>\",\"heatindex\":\"<#heatindex>\",\"bearing\":\"<#bearing>\",\"wchill\":\"<#wchill>\",\"forecast\":\"<#forecastenc>\"}",
"retain": false
}
]}
-
CurtisZM
- Posts: 29
- Joined: Wed 30 Nov 2011 3:29 am
- Weather Station: Davis VP2
- Operating System: Windows 10 Version 1511
- Location: Zumbrota,Mn
- Contact:
Re: CUMX MQTT to Home Assistance
Working. Thank you very much..