66 Commits

Author SHA1 Message Date
baa3d2d0b8 - avoid possible buffer overflows by using snprintf
- uniqueId is a field now - optimizes string copy
- store long strings in FLASH memory
2024-10-18 22:14:37 +02:00
138c7b5cd8 read heap stats once and put them in both sensors and json attributes 2024-10-18 08:45:24 +02:00
0227340a1f fix possible hash related bug with storing char instead of string into map 2024-10-15 17:20:19 +02:00
eb98e0562b protect members that are not to be used outside 2024-10-10 21:04:32 +02:00
8f534cce94 keep track of enabled sensors using struct 2024-10-09 08:53:51 +02:00
2456ae1dc8 use StatusRequest to signal mqtt connectivity - fixes updates being published only after mqtt has been connected 2024-10-09 08:53:46 +02:00
6468db5565 add restart reason sensor 2024-10-08 21:03:55 +02:00
f1901a1b53 add support for precondfigured components - heap stats 2024-10-08 20:56:27 +02:00
7327533b24 detect a multi value sensor based on common id 2024-10-07 22:06:26 +02:00
dbedf0d2f1 fix typo 2024-10-07 22:01:25 +02:00
2bdbba1113 sensor: specifying a precision implies the sensor is number, but it
needs to be generic (e.g. text)
set a default precision only if there is a unit_of_measurement
2024-10-07 21:42:09 +02:00
69c4222553 secondary components: always put the device name in MQTT configuration, even it is just
referenced - new requirement from HA
2024-10-07 15:16:47 +02:00
1dea02cd0d add support for configuring components with any json property 2024-06-30 20:35:02 +02:00
6c78efa3c2 add support for precision in sensors 2024-06-30 13:42:47 +02:00
b682c59d33 restore list's state after empty 2024-06-30 13:16:11 +02:00
728043a606 first version of the library 2024-05-30 08:18:59 +02:00