234 Commits

Author SHA1 Message Date
fa4c085b32 fix battery percent by using value_json as input 2024-07-07 18:05:53 +02:00
81b36f271e switch to wifi v2.0.0 - without multiple SSIDs 2024-06-30 00:56:43 +02:00
758cc52b16 fix issue with wifi and mqtt reconnection 2024-06-29 17:37:27 +02:00
a68b9b4971 add support for command line reset 2024-06-29 13:37:22 +02:00
5ef715227d add switch for bedroom player - Tivoli 2024-06-16 12:16:32 +02:00
5fccc50c1e update calculation for oil tank 2024-06-16 12:09:20 +02:00
9141c8d54e update my libraries and switch to using wifi lib 2024-06-04 21:07:52 +02:00
004bba0175 fix decoder tests 2024-06-04 21:02:38 +02:00
d96d4cc666 Merge branch 'huzzah' 2024-05-30 12:45:09 +02:00
2411750b35 use chars for protocol 1 group, with leading 0, to match the way is defined in devices 2024-05-30 12:16:28 +02:00
cad27ea106 Merge branch 'library' into huzzah 2024-05-30 08:32:38 +02:00
3a19576b51 turn into ha-mqtt library 2024-05-30 08:30:23 +02:00
510a378a5e add Number, refactor StateConfig and add support for restoring state at startup 2024-05-29 16:13:01 +02:00
1fe24a5b7f add support for setting retain 2024-05-29 16:09:54 +02:00
b4daba4cb2 rename secondary entities and add support for configuration type entity 2024-05-29 16:08:05 +02:00
ce21dedcd5 generic support for using device's name 2024-05-29 16:01:00 +02:00
c03c3d03fd decouple mqtt:
- register onConnected and onDisconnected callbacks
- allow optional Scheduler
- publishInit is independent on Scheduler
2024-05-22 13:42:52 +02:00
4693969aff reorganize platformio.ini configuration 2024-05-22 00:04:21 +02:00
a4893747bb moved temp sensor next to servers 2024-05-21 01:15:56 +02:00
795772909f Merge branch 'protocol' into huzzah 2024-05-20 22:00:27 +02:00
c2395e8bde switch back to returning pointer in findProtocol - only this works with derived classes 2024-05-20 22:00:09 +02:00
f668beeca2 use enum for protocol 2024-05-20 17:57:32 +02:00
45e0ea3261 use constexpr and dedicated protocol class 2024-05-20 17:57:07 +02:00
f8eb28786a pro-mini doesn't support map, find protocol based on each protocol's value - type safe 2024-05-20 13:19:41 +02:00
4096bfc83a Merge branch 'doorbell' into huzzah 2024-05-19 18:11:28 +02:00
b140fd08ac find protocol based on dynamically created map 2024-05-19 17:50:26 +02:00
1d99c73bdf use map to find sensors 2024-05-19 11:50:19 +02:00
6733a6678a use better names for constructing secondary entities 2024-05-19 01:33:11 +02:00
8282af3992 use reference when building DeviceConfig 2024-05-19 01:31:41 +02:00
2706b6f1a5 allow creation of DeviceConfig only with factory method 2024-05-18 22:44:36 +02:00
e9c404a4d5 add doorbell protocol 2024-05-18 21:17:23 +02:00
3152375623 pin definitions in a dedicated file 2024-05-18 20:42:05 +02:00
d665b12c71 update PINs for final connectivity 2024-05-18 13:43:46 +02:00
ddbefdae5d use blue led to indicate mqtt connectivity 2024-05-18 09:45:17 +02:00
22add7aea8 move all devices creattion in devices.h 2024-05-17 18:01:12 +02:00
4b3ed383d8 destroy container along with the builders 2024-05-17 09:26:35 +02:00
a44b890d43 Merge branch 'refactor' into huzzah 2024-05-16 17:27:24 +02:00
3d7895e916 fine tunning:
- use namespace for oil tank builders
- use factory method for creating DeviceConfig
- use C's strcmp for comparing strings
- split parsing of incoming RCSwitch states
2024-05-16 11:14:47 +02:00
77594581ff return string when building protocol ids - avoid unused pointers 2024-05-16 10:26:15 +02:00
b5e13c9ba2 uniqueId, configTopic & commandTopic:
- for sensors, use deviceClass as part of uniqueId & configTopic
- use same commandTopic for all Commands - with /set at the end
2024-05-16 10:13:36 +02:00
6ebe06344c use same Builder for sensor specific fields 2024-05-16 10:05:24 +02:00
44d14d9a09 cleanup 2024-05-16 09:53:55 +02:00
1b438fb141 move config publishing inside Component 2024-05-15 10:33:09 +02:00
f2e3e1940e destroy builders 2024-05-15 10:28:39 +02:00
6a287007d7 unify execution of containers inside the list 2024-05-15 10:28:35 +02:00
ae525d7e15 unify Commands and use map to trigger onCommand 2024-05-15 08:04:21 +02:00
7b53efe1ca use Builder instead of EntityConfig 2024-05-15 00:53:38 +02:00
ee87deb2d0 disable retain for command mesages 2024-05-14 08:05:08 +02:00
333fc93a9f move area completely under DeviceConfig 2024-05-09 13:46:22 +02:00
965e158b6a add oil tank sensor 2024-05-09 11:52:40 +02:00