Commit Graph
10 Commits
Author SHA1 Message Date
Dreaded_X 1532958a86 feat: Added Typed impl for all automation devices
To accomplish this a basic implementation was also provided for some
types in automation_lib
2025-10-15 00:45:37 +02:00
Dreaded_X 4e28ad0f85 feat!: Improve device type registration
Build and deploy / build (push) Successful in 10m37s
Build and deploy / Deploy container (push) Successful in 38s
Instead of one function that contains all the device types available in
`automation_devices` a global registry is used were each device can
register itself.
2025-09-10 03:02:05 +02:00
Dreaded_X 2dbd491b81 refactor!: Rewrote device implementation macro once again
This time with a bit more though put into the design of the code, as a
result the macro should be a lot more robust.

This did result in the macro getting renamed from LuaDevice to Device as
this should be _the_ Device macro.
The attribute also got renamed from traits() to device(traits()) and the
syntax got overhauled to allow for a bit more expression.
2025-09-10 01:58:48 +02:00
Dreaded_X 5383e7265d feat!: ActionCallback can now receive any amount of arguments
ActionCallback now only has one generics argument that has to implement
IntoLuaMulti, this makes ActionCallback much more flexible as it no
longer always requires two arguments.
2025-09-10 01:46:12 +02:00
Dreaded_X 4980f4888e Removed unused event code 2025-08-31 05:01:56 +02:00
Dreaded_X 2d9e3d26f2 Send laundy notification from lua 2025-08-31 03:55:08 +02:00
Dreaded_X 5d342afb1f Converted macro to derive macro 2025-08-31 03:54:20 +02:00
Dreaded_X d2b01123b8 Made the impl_device macro more explicit about the implemented traits
This also converts impl_device into a procedural macro and get rid of a
lot of "magic" that was happening.
2025-08-31 00:38:58 +02:00
Dreaded_X c5262dcf35 Update to rust 1.89 and edition 2024 2025-08-31 00:38:58 +02:00
Dreaded_X 8877b24e84 Reorganized project 2024-12-08 00:15:03 +01:00