Skip to content

Commit

Permalink
Corrected device_class for DT24 Bluetooth Voltmeter (#1459)
Browse files Browse the repository at this point in the history
Found during Power Meter testing that the DT24 voltage and current discovery values were being created as power and not voltage and current.
  • Loading branch information
NorthernMan54 authored Feb 15, 2023
1 parent 091d8a4 commit e5ef78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/ZgatewayBT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ void DT24Discovery(const char* mac, const char* sensorModel_id) {
# define DT24parametersCount 6
Log.trace(F("DT24Discovery" CR));
const char* DT24sensor[DT24parametersCount][9] = {
{"sensor", "volt", mac, "power", jsonVolt, "", "", "V", stateClassMeasurement},
{"sensor", "amp", mac, "power", jsonCurrent, "", "", "A", stateClassMeasurement},
{"sensor", "volt", mac, "voltage", jsonVolt, "", "", "V", stateClassMeasurement},
{"sensor", "amp", mac, "current", jsonCurrent, "", "", "A", stateClassMeasurement},
{"sensor", "watt", mac, "power", jsonPower, "", "", "W", stateClassMeasurement},
{"sensor", "watt-hour", mac, "power", jsonEnergy, "", "", "kWh", stateClassMeasurement},
{"sensor", "price", mac, "", jsonMsg, "", "", "", stateClassNone},
Expand Down

0 comments on commit e5ef78b

Please sign in to comment.