64 Commits

Author SHA1 Message Date
d6bbd78bec Quick fix for the lights turning on in the middle of the night
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-29 02:39:43 +01:00
d42afecd67 Added option to activate computer through mqtt
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-03 02:15:06 +01:00
51958a0542 Added automation for door that temporarily sets presence (15 min) if no one is present yet
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-03 00:04:57 +01:00
2b4e66b978 Added missing prefix argument
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-26 18:44:22 +01:00
eef5385f75 Mixer automation now listens to actual remote
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-26 18:39:20 +01:00
8e0cc2140f Adjusted illuminance thresholds once again
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-25 23:24:44 +01:00
10351018c0 Adjusted illuminance value
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-24 20:49:20 +01:00
00f623ab45 Actally enable setting the flag on the hue bridge
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-23 22:33:13 +01:00
abda5cc24f Also adjusted timer
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-23 22:23:06 +01:00
ca976b1143 First tune to on off value for light sensor
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-23 22:20:49 +01:00
f13ee65ead Added light sensor
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-23 01:16:46 +01:00
780f633c90 Updated .drone.yml to include oauth url
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 04:07:20 +01:00
6f5b3d13f7 Made the url used to check the token a config option
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-22 03:33:00 +01:00
501775654f More refactoring, made zigbee2mqtt prefix a config option
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-21 23:47:15 +01:00
4227bd92b5 Url is now actually passed to the computer struct for wol
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-21 21:58:22 +01:00
301551596a Fixed topic for overall presence automation
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-19 04:54:12 +01:00
5aefcf0157 More refactoring, moved kettle auto off out of the kettle implementation and into a seperate automation
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-19 04:48:05 +01:00
20e7e830a6 Renamed output binary to avoid conflict
Some checks failed
continuous-integration/drone/push Build is failing
2022-11-19 03:57:44 +01:00
c091ad0782 Finished major refactor
Some checks failed
continuous-integration/drone/push Build is failing
2022-11-19 03:50:12 +01:00
01b2d492ba All devices are now stored in a central map, part of large refactor
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-18 21:12:09 +01:00
6368fce40d Pass parameters directly instead of through a config struct 2022-11-18 20:09:52 +01:00
2df59cdb17 Started work on significant refactor of the codebase 2022-11-18 19:51:58 +01:00
c49ee841fd Added timestamp to presence state and use mqtt instead of channel for overall presence
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-18 18:50:36 +01:00
07fa5fc986 Added caching for authorization
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-18 05:30:21 +01:00
4c023ad933 Did some groundwork for setting up more complex interactions
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-18 04:27:43 +01:00
2aff4d937a Made the kasa integration more robust and added GetState function to get the current state 2022-11-18 04:05:13 +01:00
028ede0721 The current state of the kettle is now retained on mqtt, so we do not have to ask for it anymore 2022-11-18 03:43:34 +01:00
3dac6c66f6 Updated mqtt address to the correct address
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-16 05:39:45 +01:00
32f3d013f8 Fixed Dockerfile and build script
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-16 05:33:09 +01:00
9f4be2d76e Implemented better config system
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-16 05:20:59 +01:00
644f038732 Turn off speakers and mixer when no one is present
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-15 04:42:32 +01:00
656b040cdc Turn off all devices that we manage if no one is present 2022-11-15 04:00:48 +01:00
bfeedece77 Added new device: computer
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-15 03:16:08 +01:00
ad5b8f9d29 Fixed network setup for docker deploy
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-15 01:10:52 +01:00
dd03ae56ee Reorganized code, added google home intergrations and added zigbee2mqtt kettle
Some checks failed
continuous-integration/drone/push Build is failing
2022-11-15 01:03:30 +01:00
dace0eba29 Refactored code and added support for kasa smart plugs
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-24 00:42:42 +02:00
76a8c5e620 Added hue bridge discovery and check to make sure we are connected
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-18 04:03:58 +02:00
8b9e139b36 Fixed ntfy not working when deployed
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-17 03:55:10 +02:00
748e12b1e3 Added debugging prints
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-17 03:53:00 +02:00
c8a61c0a8a Fixed missing newline
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 22:35:02 +02:00
0936242a41 Fixed wrong symbol in drone config
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 22:30:59 +02:00
c6bf97c3db Added error check
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 22:29:11 +02:00
e5a6b75f62 Added notifcation when presence state changes
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 22:24:32 +02:00
e3edee3e09 Added missing leaving home code
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 21:40:36 +02:00
b4031e4198 Refactored code to make it more readable
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-16 21:34:19 +02:00
ba0fbd4f9c Simplified things even more, now all the logic is done on the hue bridge and we just update a virtual sensor
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-14 17:57:13 +02:00
3dbac64e0a Fixed drone file
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-14 03:31:02 +02:00
c97a3c03bd Directly use the hue api v2 as this gives more control
Some checks failed
continuous-integration/drone/push Build is failing
2022-09-14 03:24:18 +02:00
f015629d47 Switched from OwnTracks to a more generic mqtt solution that supports multiple devices
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-13 00:27:09 +02:00
cba9d0a596 Hopefully fixed state being out of sync
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-22 22:14:12 +02:00