Change EMS-ESP device sensor types in Home Assistant #751

This commit is contained in:
proddy
2022-11-20 18:48:59 +01:00
parent 77860d9d05
commit 6873e113bb
5 changed files with 87 additions and 78 deletions

View File

@@ -100,30 +100,31 @@ DeviceValue::DeviceValue(uint8_t device_type,
#endif
}
// mapping of UOM, to match order in DeviceValueUOM enum emsdevice.h
// mapping of UOM, to match order in DeviceValueUOM enum emsdevicevalue.h
// also maps to DeviceValueUOM in interface/src/project/types.ts for the Web UI
// must be an int of 4 bytes, 32bit aligned
const char * DeviceValue::DeviceValueUOM_s[] = {
F_(uom_blank),
F_(uom_degrees),
F_(uom_degrees),
F_(uom_percent),
F_(uom_lmin),
F_(uom_kwh),
F_(uom_wh),
F_(uom_hours),
F_(uom_minutes),
F_(uom_ua),
F_(uom_bar),
F_(uom_kw),
F_(uom_w),
F_(uom_kb),
F_(uom_seconds),
F_(uom_dbm),
F_(uom_fahrenheit),
F_(uom_mv),
F_(uom_sqm)
F_(uom_blank), //
F_(uom_degrees), //
F_(uom_degrees), //
F_(uom_percent), //
F_(uom_lmin), //
F_(uom_kwh), //
F_(uom_wh), //
F_(uom_hours), //
F_(uom_minutes), //
F_(uom_ua), //
F_(uom_bar), //
F_(uom_kw), //
F_(uom_w), //
F_(uom_kb), //
F_(uom_seconds), //
F_(uom_dbm), //
F_(uom_fahrenheit), //
F_(uom_mv), //
F_(uom_sqm), //
F_(uom_blank) // connectivity
};