Great news, looking forward to that!!
Mqtt runing on MX is essential for me implementing sensors in Home Assistant via Mosquitto broker.
Moderator: mcrossley
Great news, looking forward to that!!
Code: Select all
sensor:
- platform: mqtt
state_topic: "CumulusMX/Interval"
name: "VP2 temp out"
unique_id: "VP2 temp out"
unit_of_measurement: "°C"
icon: mdi:temperature-celsius
value_template: "{{ value_json.tempOut }}"
Code: Select all
{"time":"<#timehhmmss>","temp":<#temp rc=y>,"tempin":<#intemp rc=y>,
"humidity":<#hum>,"wgust":<#wgust rc=y>}
Code: Select all
{"topics":[
{
"topic": "CumulusMX/Interval",
"data": "{\"time\":\"<#timehhmmss>\",\"press\":<#press rc=y>,\"temp\":<#temp rc=y>,\"tempin\":<#intemp rc=y>,\"tempavg24\":<#avgtemp rc=y>,\"apptemp\":<#apptemp rc=y>,\"tempchangeh\":<#TempChangeLastHour rc=y>,\"raintoday\":<#rfall rc=y>,\"rainmonth\":<#rmonth rc=y>,\"rainratetoday\":<#rrate rc=y>,\"humidity\":<#hum>,\"humidityin\":<#inhum>,\"avgbearing\":<#avgbearing>,\"windavg10m\":<#wspeed rc=y>,\"wgust10\":<#wgust rc=y>}",
"retain": true
}
]}
Code: Select all
{"topics":[
{
"topic": "sensor/cumulusmx/interval",
"data": "{\"time\":\"<#timehhmmss>\",\"temp\":<#temp rc=y>,\"humidity\":<#hum>,\"wgust\":<#wgust rc=y>}",\"pressure\":<#press>,\"windspeed\":<#wlatest rc=y>,
"retain": false
}
]}