Browse Source

add power value to get from restapi

pull/1647/head
DanielR92 8 months ago
committed by GitHub
parent
commit
b159a773f4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/plugins/zeroExport/powermeter.h

6
src/plugins/zeroExport/powermeter.h

@ -119,7 +119,8 @@ class powermeter {
if (result) {
bufferWrite(power, group);
mCfg->groups[group].power = power;
// MQTT - Powermeter
if (mMqtt->isConnected()) {
mMqtt->publish(String("zero/state/groups/" + String(group) + "/powermeter/P").c_str(), String(ah::round1(power)).c_str(), false);
@ -236,7 +237,8 @@ class powermeter {
// }
bufferWrite(power, group);
mCfg->groups[group].power = power; // TODO: join two sites together (PM & MQTT)
// MQTT - Powermeter
if (mCfg->debug) {
if (mMqtt->isConnected()) {

Loading…
Cancel
Save