f4a1b507e5
Everything needed to construct a new device is passed in through lua
Dreaded_X2024-04-25 01:35:23 +02:00
bfc73c7bd3
Device config is now done through lua
Dreaded_X2024-04-24 02:31:05 +02:00
f50bc4bd0c
Replaced impl_cast with a new and improved trait With this trait the impl_cast macros are no longer needed, simplifying everything. This commit also improved how the actual casting itself is handled.
Dreaded_X2024-05-05 00:33:21 +02:00
3689a52afd
Replaced impl_cast with a new and improved trait With this trait the impl_cast macros are no longer needed, simplifying everything. This commit also improved how the actual casting itself is handled.
Dreaded_X2024-05-05 00:33:21 +02:00
cde9654a78
Fix: Memory leak 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.
Dreaded_X2024-05-03 01:07:24 +02:00
40ba4c47cf
Fix: contact sensor turns off lights even if they were already on
Dreaded_X2024-04-26 06:00:53 +02:00
476688e3cb
Always turn all the lights on when a contact sensor is activated, not matter the previous state
Dreaded_X2024-03-05 20:06:00 +01:00
6e4a63e9d7
Improvement: Job names could be better
Dreaded_X2023-11-23 23:06:54 +01:00
b4427f2140
Fix: Wake On LAN is not working The docker container needs to be created with the network option set to one of the networks otherwise it will not work.
Dreaded_X2023-11-23 23:04:26 +01:00
234e891418
Fix: main is used instead of master, only builds for feature/action Accidentally used main instead of master in the workflow. Also hardcoded feature/action as the only feature branch that triggers a build, instead any feature branch will now trigger a build.
Dreaded_X2023-11-23 00:47:19 +01:00
39f9b997ed
Fix: Only master branch should push the docker image
Dreaded_X2023-11-23 00:17:48 +01:00
cdb02eb5dd
Feature: Deploy Docker container after it is created
Dreaded_X2023-11-22 00:59:52 +01:00
c77064b5b9
Feature: Use Gitea Actions to build automation_rs Builds automation_rs and the corresponding docker image. The binary is uploaded as an artifact and the image is uploaded to the registry.
Dreaded_X2023-11-16 01:45:45 +01:00
0298e7891e
Use wakey fork on git.huizinga.dev instead of github.com
Dreaded_X2023-09-01 21:16:13 +02:00
15cde02a8d
You can now add remotes to IkeaOutlets
Dreaded_X2023-08-24 02:21:16 +02:00
1ba20c3390
You can now add remotes to HueGroups
Dreaded_X2023-08-24 01:49:55 +02:00
5d6faddce1
Increased mqtt queue size as a temporary fix
Dreaded_X2023-08-24 01:48:10 +02:00
9628b8a94b
HueLight is now HueGroup and uses a scene to turn the light on, the contact sensor will also not override the current light state if it is already on
Dreaded_X2023-08-18 04:08:15 +02:00
690090016e
Turn off the device directly if the timeout is set to zero
Dreaded_X2023-08-14 03:05:06 +02:00
b97b682a5e
Contact sensor can now turn on device when opened and turn them off again after a timeout
Dreaded_X2023-08-14 02:58:58 +02:00
12ca577a65
Added trait for devices that can turn off a given timeout
Dreaded_X2023-08-14 02:58:13 +02:00
e38c5eed31
AudioSetup now takes the name of two already created devices and stores a reference to the devices instead of creating and owning the devices directly
Dreaded_X2023-08-14 01:51:45 +02:00
76b75b0cfb
The light in the bathroom will now turn off automatically after 45 min
Dreaded_X2023-08-13 23:20:07 +02:00
58ade33c42
Also moved ntfy into devices as it is a quasi device
Dreaded_X2023-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
Dreaded_X2023-04-24 04:28:17 +02:00
28ce9c9d82
Moved mqtt messages to a seperate file
Dreaded_X2023-04-24 02:50:30 +02:00
8f515ccf75
Moved mqtt parse error to error.rs
Dreaded_X2023-04-24 02:46:02 +02:00
0ad42c029e
Small refactor related to device creation
Dreaded_X2023-04-14 22:35:15 +02:00
1a9d99fed9
Moved traits into seperate module
Dreaded_X2023-04-14 21:53:52 +02:00
b7329b58ee
Everything is now implemented as a Device using device_traits with all events going through a single place
Dreaded_X2023-04-14 05:46:04 +02:00
88e9b8f409
Big refactor from using a seperate channel for all the different kind of events to a single event channel
Dreaded_X2023-04-14 01:06:08 +02:00
72ab48df42
The device create function is now standarized using a trait
Dreaded_X2023-04-13 05:41:32 +02:00
f4c1ac5c9b
Moved most config structs to be in the same file as what they are for
Dreaded_X2023-04-13 05:12:39 +02:00
2aa13e7706
Automatically convert the mqtt config into the MqttOptions struct
Dreaded_X2023-04-13 03:26:00 +02:00
18bca5abf4
ntfy notifications are now send through a channel, allowing notifications to be send from other places in the program
Dreaded_X2023-01-24 19:00:38 +01:00
6c8b73f60f
Use format macro instead of directly concating
Dreaded_X2023-01-20 16:44:49 +01:00
8511cde67e
Adjusted the darkness lower threshold
Dreaded_X2023-01-20 00:24:29 +01:00
aa8963bd4a
Directly send wol packet instead of using the webhook
Dreaded_X2023-01-19 16:35:35 +01:00