MQTT: Difference between revisions

From NURDspace
No edit summary
Line 40: Line 40:
  tele/audioamp/LWT Online
  tele/audioamp/LWT Online
  cmnd/audioamp/POWER OFF
  cmnd/audioamp/POWER OFF
tele/audioamp/STATE {"Time":"2017-12-06T14:26:44", "Uptime":1845, "Vcc":3.182, "POWER":"OFF", "Wifi":{"AP":2, "SSID":"NurdSpace", "RSSI":88, "APMac":"18:64:72:71:FD:21"}}
tele/audioamp/ENERGY {"Time":"2017-12-06T14:26:44", "Total":142.625, "Yesterday":0.393, "Today":0.037, "Period":0, "Power":0, "Factor":0.00, "Voltage":0, "Current":0.000}

Revision as of 14:27, 6 December 2017

What

MQTT is pronounced 'mosquito' , ISO20922 describes it.

It's a simple messaging protocol with a publish/subscribe based model.

Where

I seems to run at 10.208.11.30 aka arbiter.vm.nurd.space

Whats it used for

Power Meter

The Power_Meter project publishes it's readings to the following topics;

#define MQTT_TOPIC_WATT "powermeter/watt"
#define MQTT_TOPIC_KWH "powermeter/kwh"
#define MQTT_TOPIC_PULSE "powermeter/pulsecount"

(from; https://github.com/NURDspace/kwhMeter/blob/master/src/config.h_sample)

Used topics

power/main/pulsecount 1441113
power/main/kwh 3842.968
power/main/watt 235
space/state 0
space/grotezaal/rechts/1 off
space/grotezaal/rechts/1/stat off
space/hal/rechts/1 off
space/hal/rechts/1/stat off
space/bar/1 off
space/bar/1/stat off
space/makerhoek/1 off
space/makerhoek/1/stat off
stat/sonoff/POWER ON
stat/audioamp/POWER OFF
sonoff/POWER ON
sonoff/audioamp/POWER ON
tele/audioamp/LWT Online
cmnd/audioamp/POWER OFF
tele/audioamp/STATE {"Time":"2017-12-06T14:26:44", "Uptime":1845, "Vcc":3.182, "POWER":"OFF", "Wifi":{"AP":2, "SSID":"NurdSpace", "RSSI":88, "APMac":"18:64:72:71:FD:21"}}
tele/audioamp/ENERGY {"Time":"2017-12-06T14:26:44", "Total":142.625, "Yesterday":0.393, "Today":0.037, "Period":0, "Power":0, "Factor":0.00, "Voltage":0, "Current":0.000}