108 Commits

Author SHA1 Message Date
10afc57b65 fix crash due to memory issues by using heap - dynamic json 2025-09-10 13:54:11 +02:00
74f1dc1553 return list of commands as JSON array 2025-09-10 13:53:58 +02:00
73f7283918 use POST for commands, it aligns better with REST specs 2025-09-10 13:53:35 +02:00
234649cdd2 implement getting commands and changing the state 2025-09-10 13:53:01 +02:00
b4461d629b first draft - use it as a library 2025-09-10 13:53:01 +02:00
6924775e02 implement toJson for Component and Command to be used in webserver
responses
2025-09-08 12:22:38 +02:00
9d026b4aef Merge branch 'v1.8.0' 2025-09-06 22:03:02 +02:00
7adc710271 use task for restart to allow delay and give a chance to web server to
send reponse back
2025-09-06 21:45:13 +02:00
c82cb3670c add map for command->id to offer support for web server 2025-09-06 17:14:15 +02:00
a717ca9611 Merge branch 'v1.7.0' 2025-06-20 11:30:17 +02:00
df53af65fa use long term statistics as default for battery sensors 2025-06-07 09:14:32 +02:00
464b4f1645 add assignment operator for when EnumClass is used in a Builder 2025-06-07 08:29:23 +02:00
57160661ec use type safe SensorStateClass-es 2025-06-06 14:58:18 +02:00
391fa927ba add support for SensorStateClass (used for long term statistics) and use it as default for Temperature and Humidity sensors 2025-06-05 19:34:06 +02:00
9b1ecf73ce add sensor for wifi signal strength 2025-06-05 18:35:50 +02:00
e129097b52 Merge branch 'v1.6.0' 2025-03-27 12:28:44 +01:00
f33ed5cd75 add restart button for ESP devices 2025-03-27 12:28:00 +01:00
5d9b0862bf valueTemplate is specific to all state components 2025-03-26 13:38:16 +01:00
94ff72aefc add support of unitMeasure for Numbers 2025-03-26 13:37:38 +01:00
4037ede011 add support for icon 2025-03-26 10:20:31 +01:00
4b600a4686 fix possible bug: restore from state needs a state topic 2025-02-10 09:22:30 +01:00
348ae0bd7d Merge branch 'v1.5.0' 2025-02-06 13:24:50 +01:00
935041204e add text component 2025-02-06 13:22:46 +01:00
70535f3467 add light component 2025-02-03 19:11:55 +01:00
ab11cdacd8 use inline for static members - avoid declaring them outside of class 2025-01-10 13:33:58 +01:00
a3b8b8a65d Merge branch 'v1.4.1' 2024-11-01 09:46:41 +01:00
5eb3e6f0a5 reorganize components tests - prepare for future HA tests, like builder 2024-10-29 10:06:32 +01:00
5c3e0c2236 rename utils.h to list.h 2024-10-29 10:06:27 +01:00
9e7f2dc065 add tests for all components 2024-10-29 10:02:17 +01:00
803d969de6 fixes:
- use HA's default values for min, max & step
- initialize topic arrays with nullptr
- re-order code
2024-10-28 21:10:53 +01:00
4873c26384 move native tests in dedicated folder 2024-10-28 17:51:29 +01:00
c9b6ad3a44 Merge branch 'v1.4.0' 2024-10-28 16:35:30 +01:00
9930171d58 simplify: move building of configTopic and uniqueId inside component 2024-10-28 12:37:15 +01:00
0eec971560 add support for jsonAttributesTemplate and remove overrideConfig 2024-10-28 12:13:42 +01:00
92b5837538 change parameters' order in Component constructor - id is mandatory 2024-10-28 12:05:34 +01:00
1787f20ddb refactoring: combine composition and inheritance for building the configuration 2024-10-28 11:58:41 +01:00
2a5fb84d83 bug fix
- StatefulCommand was wrongly initialized with number type, instead of the incoming parameter
2024-10-28 11:58:41 +01:00
47a5bfc81c make min, max & step optional 2024-10-28 11:58:41 +01:00
3a374bf685 no need to use friend in DeviceConfig 2024-10-28 11:58:41 +01:00
7755950a27 give maps more meaningful names and introduce StatefulCommand 2024-10-28 11:58:41 +01:00
50e6c2586d Merge branch 'optimizations' into v1.4.0 2024-10-28 11:55:37 +01:00
fe8b33df72 optimize ArduinoJson serialization: avoid copies of strings 2024-10-18 22:14:45 +02:00
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
df1b900b5d Merge branch 'v1.3.1' 2024-10-15 17:25:30 +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
42b226c19b Merge branch 'v1.3.0' 2024-10-09 10:59:45 +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