21 Commits

Author SHA1 Message Date
96af098d3f update json template to avoid warning in HA 2025-10-16 21:47:09 +02:00
0998f815fd set entity_id on HA side for all switches - keep the id consistent, regardless of the name or where it is used 2025-10-11 16:58:20 +02:00
b4d4a179f1 use easy switch for external router 2025-10-11 16:58:20 +02:00
ccfa0f427a EasyHomeSwitch: separate codes for all buttons because they common to all switches and thus the same across all class instances 2025-10-11 16:58:20 +02:00
ecac0a3d81 supress cppcheck false warnings 2025-10-11 16:58:20 +02:00
55213b9e87 use standard fixed length types 2025-10-11 16:58:20 +02:00
4f9c91c108 update static check options and fix lows 2025-10-11 16:58:20 +02:00
1eddcd1f5c enable all flags for huzzah_dev so that compilation for the entire code can be verified 2025-10-11 16:58:20 +02:00
bfd8b02f2a upgrade to ha-mqtt v2.0.0 2025-10-11 16:57:52 +02:00
545a6fd2f6 reduce memory usage by using string for battery percentage template
defined at compile time
2025-10-06 18:39:51 +02:00
3dc31ff585 optimize memory allocation for battery percentage template 2025-10-06 18:39:51 +02:00
57b9494c98 add helper methods for creating typical battery sensors for rc devices 2025-10-06 18:39:51 +02:00
0a228df07d create rc devices typical battery sensors 2025-10-06 18:39:51 +02:00
264c1c1e80 separate rc-gateway devices 2025-10-06 18:39:51 +02:00
daa4b9bee0 add Wifi info 2025-10-06 18:39:14 +02:00
475a58d8a4 upgrade ha-mqtt to v1.12 that changed path for state and command topics 2025-10-03 10:58:19 +02:00
6edcafe27c adjust battery percent formula: max 3.3V and min 2.7V (the minimum voltage required by ATTiny85) 2025-10-03 10:58:14 +02:00
82df106df1 use uppercase ON/OFF when reading contact sensor type - it aligns with home assistant 2025-10-02 16:57:02 +02:00
f245443a4d add presence sensor into rc-gateway 2025-10-02 16:57:02 +02:00
77422d5f59 use wrapper class for SensorId and overload operators so that it can be used both as number and string 2025-10-02 16:56:52 +02:00
89da9a80e8 re-organize:
- move code for all devices in dedicated folder
- move code for gateway in the root folder
2025-09-20 10:00:42 +02:00