[LORA] Add water counter sensor with example (#1941)

* Add water counter example
This commit is contained in:
Vito Ammirata authored and GitHub committed 2024-05-05 14:45:33 -05:00
1 parent b5e0223602
commit bae4364e41
5 files changed
+427 -2

No files matched your search

+4 -2
View File
@@ -125,11 +125,13 @@ struct LORAdevice {
bool isDisc;
};
const char LORAparameters[3][4][12] = {
const char LORAparameters[5][4][12] = {
// LORA key, name, unit, device_class
{"tempc", "temperature", "°C", "temperature"},
{"hum", "humidity", "%", "humidity"},
{"moi", "moisture", "%", "humidity"}};
{"moi", "moisture", "%", "humidity"},
{"batt", "battery", "%", "battery"},
{"count", "counter", "L", "water"}};
#endif