You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mqttthing is a superb, advanced plugin, but I am taking it slow as it seems to have a steep lerning curve for a novice like me. First I added some Sonoff Basics and then some dual's and one POW. Now I am trying to add a Sonoff Dual R3.
The Sonoff Dual R3 reports PM data for each of the two outputs.
I have configured one of the outputs as a outlet in homebridge. Eventaully I would like to add both, and be able to use the Eve History function.
Here is the log from homebridge:
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] Received MQTT: tele/SD_BR_BedRight/SENSOR = {"Time":"2022-02-03T14:38:39","Switch1":"ON","Switch2":"ON","ENERGY":{"TotalStartTime":"2022-02-01T13:18:05","Total":1.365,"Yesterday":0.157,"Today":1.208,"Period":[ 1, 0],"Power":[79,17],"ApparentPower":[94,32],"ReactivePower":[51,27],"Factor":[0.84,0.53],"Voltage":240,"Current":[0.390,0.131],"BL09XX":{"Temperature":47.2}},"ESP32":{"Temperature":63.3},"TempUnit":"C"}
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] apply() function decoded message to [OFF]
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] apply() function decoded message to [17]
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] apply() function decoded message to [undefined]
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] apply() function decoded message to [0.131]
[3/2/2022, 2:38:40 pm] [Bedroom Ceiling Fan] apply() function decoded message to [17]
Note that I have added square brackets in front of energy.current, energy.voltage and energy.power, assuming that the reported values are an array of two elements. I tried 0 and then 1. But mqttthing reports it as 'undefined'. Also the state of the switch is shown as "OFF" though the switch is ON.
One way I thought of is to split the payload into another topic (in node-red) and use that topic to configure mqttthing in the homebridge config.json. Before I attempt that, I felt perhaps there is more straightforward solution or some direction from someone who understands the plug-in and json object handling better.
Has anyone succesfully added a Sonoff Dual R3 with PM and Eve History? Would appreciate some directions. Thanks.
Once this is done, I plan to add a tasmotized Shelly 2.5 as well (which is similar to the sonoff dual r3)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Mqttthing is a superb, advanced plugin, but I am taking it slow as it seems to have a steep lerning curve for a novice like me. First I added some Sonoff Basics and then some dual's and one POW. Now I am trying to add a Sonoff Dual R3.
The Sonoff Dual R3 reports PM data for each of the two outputs.
I have configured one of the outputs as a outlet in homebridge. Eventaully I would like to add both, and be able to use the Eve History function.
Here is the log from homebridge:
Here is the config from homebridge config.json
Note that I have added square brackets in front of energy.current, energy.voltage and energy.power, assuming that the reported values are an array of two elements. I tried 0 and then 1. But mqttthing reports it as 'undefined'. Also the state of the switch is shown as "OFF" though the switch is ON.
One way I thought of is to split the payload into another topic (in node-red) and use that topic to configure mqttthing in the homebridge config.json. Before I attempt that, I felt perhaps there is more straightforward solution or some direction from someone who understands the plug-in and json object handling better.
Has anyone succesfully added a Sonoff Dual R3 with PM and Eve History? Would appreciate some directions. Thanks.
Once this is done, I plan to add a tasmotized Shelly 2.5 as well (which is similar to the sonoff dual r3)
Beta Was this translation helpful? Give feedback.
All reactions