I have an emonPi which runs a local version of emonCMS, and several emonTx/ESP8266’s. I’d like to do a bit more with the data generated, ie using Node-RED automate a smart plug to charge a 12v battery whenever an inverter is producing power.
Is the best way to do this to start using MQTT? I have put some details in the MQTT section of one emonTx (see below), but what else do I need to do to get it so say “Connected: Yes”? I can’t find anything within my emonPi to start an MQTT server (if such a thing is needed), and ssh’ing in to the emonPi and typing sudo service mosquitto restart
didn’t do anything
Or can Node-RED (on a Raspberry Pi Zero W) query my local emonCMS data directly?
I don’t have any other MQTT instances on my LAN.
TIA