CUMX MQTT to Home Assistance
Posted: Sun 22 Aug 2021 8:58 pm
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 }}'
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 }}'