Commit 78798e0f authored by Harald Klein's avatar Harald Klein

change unit for power to kW and type to Int for kWh

parent 12c47f1a
Pipeline #389 passed with stage
in 2 minutes and 34 seconds
......@@ -255,9 +255,9 @@ void AgoKnx::listener() {
} else if (type == "windspeed") {
agoConnection->emitEvent(uuid, "event.environment.windspeedchanged", tl.getFloatData(), "m/s");
} else if (type == "energy") {
agoConnection->emitEvent(uuid, "event.environment.energychanged", tl.getFloatData(), "kWh");
agoConnection->emitEvent(uuid, "event.environment.energychanged", tl.getIntData(), "kWh");
} else if (type == "power") {
agoConnection->emitEvent(uuid, "event.environment.powerchanged", tl.getFloatData(), "kWh");
agoConnection->emitEvent(uuid, "event.environment.powerchanged", tl.getFloatData(), "kW");
} else if (type == "flow") {
agoConnection->emitEvent(uuid, "event.environment.flowchanged", tl.getFloatData(), "l/h");
} else if (type == "counter") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment