Commit Graph

20 Commits

Author SHA1 Message Date
8fe6bc0cff chore: reformat, normalize imports 2025-08-01 20:44:38 -05:00
c91c4f85c3 refactor: rename module to github.com/Xevion/go-ha 2025-08-01 17:04:11 -05:00
1226867b8e refactor: make fork independent, rename PriorityQueue 2025-08-01 16:55:44 -05:00
Sam Lewis
25076130d8 home zone changed to optional 2025-06-01 17:50:03 -04:00
Sam Lewis
79811571ca codegen works 2025-06-01 17:27:36 -04:00
Matthias Loibl
b5d35235f8 Parse URL and pass it to clients
Right now, this SDK only works with IP:Port.
I'm however running on https://home.example.com and need https or wss and an implicit port 443.

Using net/url should be the best option.
2025-01-17 01:46:35 +01:00
Jiri Luzny
628544c7a0 Log and propagate error instead of using Fatal 2023-12-26 23:28:41 +01:00
Jiri Luzny
ccb0f19d41 Migrated rest of the obvious logs/prints to slog. 2023-12-09 22:01:32 +01:00
Jiri Luzny
5b1ee13fa3 renamed to example package to allow correct build 2023-11-15 03:40:05 +01:00
Sam Lewis
1932f1edf7 make an interface for State object 2023-10-22 18:16:20 -04:00
Lubos Dolezel
754ffafeae Don't exit the app on connection failures, expose the error in the API 2023-03-07 18:30:40 +01:00
Sam Lewis
e58a75388e fix bug when registering multiple listeners and change sunrise/sunset to non-ha impl 2023-01-12 22:33:38 -05:00
Sam Lewis
c8128b5dba change to vanity url saml.dev 2022-12-12 00:15:00 -05:00
Sam Lewis
ced79559e5 split daily schedule and interval 2022-11-13 20:17:00 -05:00
Sam Lewis
1ec5878ff9 add state as second arg for eventListenerCallback 2022-11-08 22:48:34 -05:00
Sam Lewis
2575525528 make App exported 2022-11-04 21:10:14 -04:00
Sam Lewis
33a92d96bd documented general use cases 2022-11-02 00:04:40 -04:00
Sam Lewis
b0804e39d0 some tweaks/renames, schedule documentation 2022-11-01 01:20:15 -04:00
Sam Lewis
66e179c568 sunrise sunset working, not the cleanest solution but it works 2022-10-24 23:03:04 -04:00
Sam Lewis
f4d44cb6fe add LICENSE and README
types.go -> eventTypes.go
reorganize example folder structure
2022-10-19 23:26:58 -04:00