I have a magicmirror module that subscribes to tasmota MQTT topic and, using json pointer, displays data on my monitor.
Now I need to subscribe to information available only in domoticz (like a custom monthly power consumption)
I tried to use it subscribing to domoticz/out but I didn't find a suitable JSON pointer.
So, now, I'm looking for a script that can publish to a specific topic in the MQTT broker.
Can someone help me?
To give you an example, this is a snap of my current module configuration
Code: Select all
{
module: "MMM-MQTT",
position: "top_center",
header: "Temperatura",
config: {
logging: false,
useWildcards: false,
mqttServers: [{
address: "xxxxxx",
port: "1883",
user: "xxxxx",
password: "xxxxxx",
subscriptions: [{
topic: "sensore_salone/tele/SENSOR",
label: "Salone:",
suffix: "°C",
decimals: 1,
sortOrder: 10,
maxAgeSeconds: 600,
jsonpointer: "/AM2301/Temperature"
},