mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 08:24:27 +01:00
Added analog energy monitor sensor to new sensors module
This commit is contained in:
@@ -30,8 +30,17 @@ function initMessages() {
|
||||
function sensorType(type) {
|
||||
if (type == 1) return "Temperature";
|
||||
if (type == 2) return "Humidity";
|
||||
if (type == 11) return "Analog";
|
||||
if (type == 12) return "Events";
|
||||
if (type == 3) return "Pressure";
|
||||
if (type == 4) return "Current";
|
||||
if (type == 5) return "Voltage";
|
||||
if (type == 6) return "Active Power";
|
||||
if (type == 7) return "Apparent Power";
|
||||
if (type == 8) return "Reactive Power";
|
||||
if (type == 9) return "Energy";
|
||||
if (type == 10) return "Energy (delta)";
|
||||
if (type == 11) return "Power Factor";
|
||||
if (type == 12) return "Analog";
|
||||
if (type == 13) return "Events";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user