Compare commits

..

19 Commits

Author SHA1 Message Date
631fac5061 Fixed typo in README.md and added mosquitto as word
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 5m9s
Build and deploy automation_rs / Build Docker image (push) Successful in 36s
Build and deploy automation_rs / Deploy Docker container (push) Has been skipped
2024-05-03 01:08:44 +02:00
bf3ce9efd4 Started work on reimplementing schedules 2024-05-03 01:08:44 +02:00
ff428e3d20 Fixed spelling mistakes 2024-05-03 01:08:44 +02:00
8d8878218c Moved last config items to lua + small cleanup 2024-05-03 01:08:44 +02:00
8ad11e7965 Fixed visibility of device configs 2024-05-03 01:08:43 +02:00
42eb4b3fa5 LuaDevice macro now uses LuaDeviceCreate trait to create devices from configs 2024-05-03 01:08:43 +02:00
c91de03333 mqtt client is now created in lua 2024-05-03 01:08:43 +02:00
3fed29e0ef DeviceManager no longer handles subscribing and filtering topics, each device has to do this themselves now 2024-05-03 01:08:43 +02:00
b928964b41 Improved how devices are created, ntfy and presence are now treated like any other device 2024-05-03 01:08:43 +02:00
e5447ba4b0 Moved schedule config from yml to lua 2024-05-03 01:08:43 +02:00
0f3992dacc Set lua warning function 2024-05-03 01:08:43 +02:00
c2efd1e110 Slight macro cleanup 2024-05-03 01:08:43 +02:00
ffe06fde6e Improved the internals of the LuaDeviceConfig macro and improve the
usability of the macro
2024-05-03 01:08:43 +02:00
4781610fcd Use helper types to process config input into the right type 2024-05-03 01:08:42 +02:00
7cc9a2a090 Added helper type to convert from ip addr to socketaddr with the correct port 2024-05-03 01:08:42 +02:00
45c9e9e1d4 Added rename option to macro 2024-05-03 01:08:42 +02:00
7f0b2b3021 Everything needed to construct a new device is passed in through lua 2024-05-03 01:08:42 +02:00
463b5347b4 Device config is now done through lua 2024-05-03 01:08:42 +02:00
cde9654a78 Fix: Memory leak
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 4m19s
Build and deploy automation_rs / Build Docker image (push) Successful in 1m3s
Build and deploy automation_rs / Deploy Docker container (push) Successful in 31s
It turns out that console-subscriber has a memory leak, this is fixed in
main, but there has not been a new release yet. So for now we go back
to tracing subscriber.
2024-05-03 01:07:24 +02:00

View File

@@ -47,7 +47,8 @@ async fn main() {
async fn app() -> anyhow::Result<()> {
dotenv().ok();
console_subscriber::init();
tracing_subscriber::fmt::init();
// console_subscriber::init();
info!("Starting automation_rs...");