Commit Graph

53 Commits

Author SHA1 Message Date
746e19eb8c
Use own struct to deserialize hue switch state and added hold actions 2025-01-28 22:48:02 +01:00
3905df690b
Reworked air filter integration
All checks were successful
Build and deploy / Build application (push) Successful in 5m8s
Build and deploy / Build container (push) Successful in 2m19s
Build and deploy / Deploy container (push) Successful in 35s
2025-01-22 03:12:13 +01:00
e8d5698835
Updated dependencies 2024-12-08 00:53:31 +01:00
8877b24e84
Reorganized project 2024-12-08 00:15:03 +01:00
6b8d0b7d56
Added hue wall switches
All checks were successful
Build and deploy / Build application (push) Successful in 4m9s
Build and deploy / Build container (push) Successful in 53s
Build and deploy / Deploy container (push) Successful in 32s
2024-11-30 22:17:16 +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
ae2c27551f
Initial upgrade to mlua 0.10
All checks were successful
Build and deploy / Build application (push) Successful in 7m59s
Build and deploy / Build container (push) Successful in 2m54s
Build and deploy / Deploy container (push) Successful in 19s
2024-11-30 04:47:52 +01:00
d11e79cdfa
Devices now keep type in lua
All checks were successful
Build and deploy / Build application (push) Successful in 4m5s
Build and deploy / Build container (push) Successful in 1m9s
Build and deploy / Deploy container (push) Successful in 37s
2024-08-08 01:36:11 +02:00
14e14ca479
No need for Arc<RwLock<_>> inside the device wrapper anymore
All checks were successful
Build and deploy / Build application (push) Successful in 4m27s
Check / Run checks (push) Successful in 2m14s
Build and deploy / Build container (push) Successful in 55s
Build and deploy / Deploy container (push) Has been skipped
2024-07-26 01:17:12 +02:00
758500a071
Cleanup 2024-07-09 00:00:00 +02:00
d84ff8ec8e
Initial google home trait macro 2024-07-08 23:59:59 +02:00
c7fc25d239
Fix: Scheduled function can not run async functions
Since Lua is not Send, this turned out to be a bit more complicated.
In order to make it work the async function needs to be pinned to a
single thread.
It works now, but the implementation looks a bit messy. Not sure it can
be improved through.
2024-05-07 00:05:38 +02:00
bf3d757710
Added lua function to get the current hostname
This makes it possible to set options depending on what machine we are
running
2024-05-07 00:05:38 +02: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
bfc73c7bd3
Device config is now done through lua 2024-05-07 00:05:36 +02:00
3689a52afd
Replaced impl_cast with a new and improved trait
All checks were successful
Build and deploy automation_rs / Build automation_rs (push) Successful in 4m0s
Build and deploy automation_rs / Build Docker image (push) Successful in 52s
Build and deploy automation_rs / Deploy Docker container (push) Successful in 28s
With this trait the impl_cast macros are no longer needed, simplifying
everything.
This commit also improved how the actual casting itself is handled.
2024-05-05 00:33:21 +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
dd4be4a2ee
Switched from toml to yaml for configuration
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-05 22:41:48 +01:00
0298e7891e
Use wakey fork on git.huizinga.dev instead of github.com 2023-09-01 21:16:13 +02:00
044c38ba86
More refactoring 2023-08-18 03:07:16 +02:00
cff9cb4bf6
Further improvements to how devices are created 2023-08-17 01:47:05 +02:00
b1506f8e63
Improved the way devices are instantiated from their respective configs
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-16 02:17:21 +02:00
522fe27f11
Converted google home traits to be async
Some checks failed
continuous-integration/drone/push Build is failing
2023-08-11 03:46:44 +02:00
330523166f
Store devices wrapped in Arc RwLock 2023-08-11 02:24:58 +02:00
7733e8cc8f
cargo update 2023-08-09 23:51:09 +02:00
f4c1ac5c9b
Moved most config structs to be in the same file as what they are for 2023-04-13 05:12:39 +02:00
854098e292
Added tokio-console support 2023-04-12 03:34:58 +02:00
ca8821b406
Rewrote impl_cast as a proc_macro to make it easier to work with 2023-04-12 01:20:21 +02:00
aa8963bd4a
Directly send wol packet instead of using the webhook
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-19 22:19:26 +01:00
a0cefa8302
Improved error handling
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2023-01-18 22:37:57 +01:00
81d4322ce9
Removed outdated feature on eui48 2023-01-17 17:18:24 +01:00
13f5c87c03 Improved error handling 2023-01-12 02:20:09 +01:00
220c68cd65 Converted more of the codebase to async 2023-01-10 00:37:13 +01:00
5b9d24e82f Switched to channels for communication between different parts of the code 2023-01-09 23:50:50 +01:00
0b22d0c6b7 Switched to a maintained fork of dotenv 2023-01-09 01:39:40 +01:00
8bc203cb2d Reduced the amount of indirect dependencies 2023-01-07 04:58:13 +01:00
50ff5b162e
Switched from std::RwLock to parking_lot 2023-01-06 23:16:36 +01:00
d06c0b6980
Environment variables can now be used directly inside the config instead of requiring special handling 2023-01-06 04:07:50 +01:00
cfd10a7daf
Refactored how we deal with blocking code and added AudioSetup 2023-01-03 05:26:00 +01:00
06e511758b
Switched to tracing 2022-12-29 06:14:01 +01:00
3c0f4bf3b3
Added ntfy.sh integration 2022-12-29 02:36:05 +01:00
8dc3fd42e7
Switched from warp to axum 2022-12-28 05:22:36 +01:00
2b4ddf82b6
Added WakeOnLAN device, some small refactoring and improved error handling 2022-12-28 03:27:25 +01:00
6c4ae9ec35 Instead of using pollster we use tokio::spawn to spawn a seperate task for subscribing and publishing to mqtt 2022-12-25 01:29:30 +01:00
1299443a7c
Moved some config over to an actual config file, improved error handling 2022-12-24 04:47:06 +01:00
7e3c3223b2
Adjusted how we requre Sync + Send, added logger, cleanup dependencies, and added web server using warp and tokio 2022-12-23 04:40:08 +01:00
e88e2fe48b
Finished basic google home implementation with some slight refactors along the way 2022-12-16 06:54:31 +01:00
4de0b31ec8
Added macro to generate cast traits and impls automatically 2022-12-14 05:49:51 +01:00