120 Commits

Author SHA1 Message Date
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
100a89a92f add huzzah with support for ota and wifi 2024-04-26 13:45:10 +02:00
5b30e0317d fix warning about const char & upgrade arduino json library 2024-04-26 13:26:07 +02:00
fdc7712b9d Merge branch 'f/advanced-receiver' into gateway 2023-05-19 10:41:30 +02:00
672691fe00 add support for displaying raw values - for finding new remotes 2023-05-17 16:31:23 +02:00
4cee82f28d update documentation 2023-02-22 22:30:24 +01:00
37fc2ab103 move sensor_builder tests into native 2023-01-28 09:09:40 +01:00
624f26c751 update testing 2023-01-28 09:09:40 +01:00
41ad1b4348 increase reset time
- compensates for old timeout in serial reading
2023-01-22 16:44:01 +01:00
ed755abb14 more json optimization:
- reduce allocated size using correct const/not const char*
- double buffer size for input serial
2023-01-22 14:50:15 +01:00
c508092b5c extract error handling to reduce stack mem usage 2023-01-21 19:19:45 +01:00
69554f441a use private serial reader library
array is no longer needed:
- reduce json from 512 to 100
- no need for trailing comma
- no need to use []
2023-01-21 19:18:23 +01:00
a588f56e38 fix: change board to actual pro mini 2023-01-21 16:14:58 +01:00
c8710a1cc9 return error as json and reduce json documents 2022-10-29 13:09:23 +02:00
e3e13c2536 upgrade json library 2022-10-28 16:48:54 +02:00
11f3591d84 add static check 2022-10-28 16:48:51 +02:00
5532582531 test max values 2022-10-28 09:00:18 +02:00
f9ae76aadf add embedded tests for building sensor 2022-10-27 21:31:49 +02:00
f9a34ff31a extract decoder for easy testing 2022-10-27 17:25:25 +02:00
32d9183b5e add decoded raw_value 2022-10-27 17:10:32 +02:00
1e695faef0 fix sensor building 2022-10-27 15:00:24 +02:00
bdf87cab17 use pointers to fix virtual calls 2022-10-27 15:00:24 +02:00
0ebb9902df fix finding protocol implementation 2022-10-27 15:00:24 +02:00
8319ae3b5d use reference to avoid copying 2022-10-27 10:48:57 +02:00
95dd0f771f separate sensor from generic in protocol 2 2022-10-27 10:44:05 +02:00
f9bcdecb57 cleanup 2022-10-26 10:36:54 +02:00
c053cc9310 separate fromJson logic 2022-10-26 10:36:26 +02:00
1b984d4987 separate toJson logic for each protocol 2022-10-26 10:35:45 +02:00
8f95262fd4 return by value
split protocol handling
2022-10-25 23:23:49 +02:00
640368af42 put back id inside sensor block 2022-10-25 21:33:56 +02:00
f1e67a80d4 fix reference and types 2022-10-25 18:05:37 +02:00
5b1948df26 reverse engineer protocol 1 value 2022-10-25 17:22:08 +02:00
389242f493 make a copy of cmd, ArudinoJson alters original one 2022-10-24 20:59:07 +02:00
d232bc4ffa write json directly into Serial 2022-10-24 20:58:46 +02:00
ac8dd2c807 refactor into smaller functions 2022-10-24 20:54:45 +02:00
cb95fbba71 echo every command in array 2022-10-24 20:54:38 +02:00