Added analog energy monitor sensor to new sensors module

This commit is contained in:
Xose Pérez
2017-12-15 18:22:45 +01:00
parent f8e7a564f1
commit 3ade0ae035
8 changed files with 1978 additions and 1747 deletions

View File

@@ -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;
}