212 Commits

Author SHA1 Message Date
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
6fd9bdc8ce added oil tank room sensor 2024-05-04 21:46:39 +02:00
18450a6883 fix on/off map insertion 2024-05-04 16:17:43 +02:00
7a6caf6afe use sensor name for the device 2024-05-03 17:19:52 +02:00
f6fed5a115 publish sensor configuration 2024-05-03 13:56:29 +02:00
278d82dec6 fix random resets by initializing all pointers with nullptr 2024-05-03 13:55:19 +02:00
1e69ecd9c9 publish config from list of all components 2024-05-03 13:50:13 +02:00
86b2d75ea6 separate generic Ha components - could be used in a library 2024-05-03 09:22:53 +02:00
e67ce3b33c extract StateConfig into a dedicated class 2024-05-02 21:24:41 +02:00
eace33902b separate Ha generic components from gateway specific ones 2024-05-02 19:40:04 +02:00
551c1300a6 publish cleanup config on OTA updates 2024-05-02 18:56:52 +02:00
071e363c14 make publisher accesible to entire Ha namespace 2024-05-02 12:44:30 +02:00
6b37d61b5c unify switches under same list and get rid of Builder 2024-04-30 23:08:22 +02:00
a9d66e29e3 fix on/off all switches 2024-04-30 21:27:02 +02:00
aaeb0a85e6 add support for reacting on switching on/off all EasyHome switches 2024-04-30 16:23:54 +02:00
9611b2c564 support state for EasyHome switches 2024-04-30 16:22:55 +02:00
41e2e1359a make area optional and add EasyHome switches 2024-04-30 09:43:45 +02:00
3dcfc3e5ba add mqtt with ha components
configure Pollin switches
2024-04-30 08:08:38 +02:00
14a984195f keep serial logic common
RX pin does not work as RC recevier for huzzah
2024-04-29 14:31:57 +02:00
6a2450d94f dedicated reponse and error handling for each board 2024-04-27 16:50:09 +02:00
638f6b5939 cleanup wifi:
- remove disconnected - not used
- remove tConnected - duplicate of stationConnectedHandler
2024-04-27 16:06:59 +02:00
cb53ad131a remove unused blink 2024-04-27 16:05:35 +02:00
61a7ca0bde separate pro-mini and huzzah logic into dedicated files 2024-04-27 00:00:11 +02:00