Commit Graph

32 Commits

Author SHA1 Message Date
bc75f7005c feat(config)!: Device creation function is now named entry
It now has to be called 'setup', this makes it possible to just
include the table as a whole in devices and it will automatically call
the correct function.
2025-10-20 05:02:04 +02:00
1ffccd955c refactor(config)!: Move scheduler out of device_manager
Due to changes made in mlua the new scheduler is much simpler. It also
had no real business being part of the device manager, so it has now been
moved to be part of the returned config.
2025-10-20 04:48:28 +02:00
5801421378 refactor: Move main.rs to bin/automation.rs 2025-10-20 04:48:22 +02:00
8877b24e84 Reorganized project 2024-12-08 00:15:03 +01:00
e9f080ef19 Moved and improved hallways logic with lua
All checks were successful
Build and deploy / Build application (push) Successful in 4m7s
Build and deploy / Build container (push) Successful in 1m18s
Build and deploy / Deploy container (push) Successful in 21s
2024-12-06 01:27:35 +01:00
9d4b52b511 Implemented new timeout mechanism for ikea_outlet
All checks were successful
Build and deploy / Build application (push) Successful in 5m24s
Build and deploy / Build container (push) Successful in 1m8s
Build and deploy / Deploy container (push) Successful in 19s
2024-12-04 03:03:53 +01:00
157bbf923f Added generic action callback 2024-11-30 05:44:23 +01:00
8b04435537 No more global LUA
All checks were successful
Build and deploy / Build application (push) Successful in 3m45s
Build and deploy / Build container (push) Successful in 54s
Build and deploy / Deploy container (push) Successful in 29s
2024-11-30 05:10:40 +01:00
02d6630ac6 Started work on reimplementing schedules 2024-05-07 00:05:37 +02:00
55237a2ba2 Improved the internals of the LuaDeviceConfig macro and improve the
usability of the macro
2024-05-07 00:05:36 +02:00
f4a1b507e5 Everything needed to construct a new device is passed in through lua 2024-05-07 00:05:36 +02:00
db17b68e90 Feature: Schedule devices turning on/off
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 00:01:13 +01:00
12ca577a65 Added trait for devices that can turn off a given timeout 2023-08-14 02:58:13 +02:00
a67e47997b More refactoring 2023-08-11 03:16:23 +02:00
58ade33c42 Also moved ntfy into devices as it is a quasi device
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-24 04:44:19 +02:00
40c0ac5144 Moved quasi-devices into the devices module and made event related device traits part of the event module
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-24 04:28:17 +02:00
28ce9c9d82 Moved mqtt messages to a seperate file 2023-04-24 02:50:30 +02:00
1a9d99fed9 Moved traits into seperate module 2023-04-14 22:34:40 +02:00
88e9b8f409 Big refactor from using a seperate channel for all the different kind of events to a single event channel
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 01:06:08 +02:00
3645b53f7c Applied rust fmt
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-10 01:33:39 +02:00
de9203b8d5 Suppress incomplete feature warning caused by specialization 2023-04-10 01:30:43 +02:00
4844bd5d79 Added debug bridge to publish state on mqtt
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-17 20:14:36 +01:00
13f5c87c03 Improved error handling 2023-01-12 02:20:09 +01:00
82859d8e46 Added authentication to fullfillment endpoint 2023-01-06 03:34:33 +01:00
f88c7a5695 Added hue_bridge to bridge across the presence and darkness events 2023-01-05 03:01:21 +01:00
c9b2127eed Some cleanup and added light sensor 2023-01-03 20:46:37 +01:00
3c0f4bf3b3 Added ntfy.sh integration 2022-12-29 02:36:05 +01:00
924b3cf862 Added OnPresence trait that allows devices to act on changes in presence 2022-12-29 00:24:00 +01:00
fb455b4e4c Config is passed directly to IkeaOutlet and now supports turning off automatically after a specified amount of time 2022-12-27 22:27:41 +01:00
f735216dc4 Devices and some settings are now loaded from the config file instead of hardcoded 2022-12-27 04:00:35 +01:00
e88e2fe48b Finished basic google home implementation with some slight refactors along the way 2022-12-16 06:54:31 +01:00
68cbccd72c Started work on rust rewrite of automation system 2022-12-10 18:03:01 +01:00