Commit Graph

169 Commits

Author SHA1 Message Date
d281d70d8c chore: update dependencies 2025-08-01 20:57:25 -05:00
8fe6bc0cff chore: reformat, normalize imports 2025-08-01 20:44:38 -05:00
9b8ef545a6 refactor: websockets into 'connect' module, rename & adjust generally 2025-08-01 20:34:45 -05:00
102a4e7438 refactor: minor changes 2025-08-01 18:25:39 -05:00
d51f6d5946 refactor: move 'parse' back to internal root 2025-08-01 18:18:16 -05:00
26b8892ff6 refactor: move event_types into types/ pkg, make methods public, small fixes 2025-08-01 18:16:25 -05:00
21358b73e1 refactor: move types out of app.go into types/, renamed module files 2025-08-01 18:08:01 -05:00
3d178ad05e refactor: rename request_types.go 2025-08-01 17:10:03 -05:00
c91c4f85c3 refactor: rename module to github.com/Xevion/go-ha v0.7.0 2025-08-01 17:04:11 -05:00
5698a30b37 refactor: move http module into internal root, remove deprecated handling 2025-08-01 17:03:28 -05:00
a8d4cefaab chore: remove extension from LICENSE file
Also slight refactor for NewBaseServiceRequest
v0.6.5
2025-08-01 16:55:44 -05:00
7081d06001 refactor: rename files into common naming, rename GetId to NextId, document function 2025-08-01 16:55:44 -05:00
55a390e69c refactor: move parsing into internal/parse module, move other functions into misc 2025-08-01 16:55:44 -05:00
378bc29e7e refactor: use atomic.Int64 for underlying GetId implementation v0.6.4 2025-08-01 16:55:44 -05:00
393191ccb5 refactor: remove unused http.go post() method 2025-08-01 16:55:44 -05:00
e35f296d70 refactor: remove internal priority_queue module, switch to Workiva implementation 2025-08-01 16:55:44 -05:00
b3001e7f6e fix: fix always cancelled connection context, improper ctx v0.6.3 2025-08-01 16:55:44 -05:00
2bcb4c2594 feat: better close message, add channel capacity v0.6.2 2025-08-01 16:55:44 -05:00
a71ec6ed25 chore: tidy module 2025-08-01 16:55:44 -05:00
e41898db77 test: add tests for app & Close() methods v0.6.1 2025-08-01 16:55:44 -05:00
1226867b8e refactor: make fork independent, rename PriorityQueue 2025-08-01 16:55:44 -05:00
f01f8dd602 ci: add basic CI for build & test 2025-08-01 16:55:44 -05:00
e608843b09 feat: add Close() method to app, context aware channels 2025-08-01 16:55:44 -05:00
Sam Lewis
a25c550648 fix event listener documentation 2025-06-02 20:28:00 -04:00
Sam Lewis
b275a9c107 fix event listener documentation 2025-06-02 20:13:10 -04:00
saml-dev
b72b494a15 Merge pull request #34 from saml-dev/gen
Generate a constants file for entities
2025-06-02 20:04:21 -04:00
Sam Lewis
7cf78177f3 update README 2025-06-02 20:02:27 -04:00
Sam Lewis
75f0b6b848 add include and exclude options for generation 2025-06-01 20:21:06 -04: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
Sam Lewis
1700dbdeb9 add Timer service 2025-05-31 14:22:59 -04:00
saml-dev
cd839c618a Merge pull request #30 from zimnyjakub/main
Add List func  to state
2025-01-22 23:00:39 -05:00
Jakub Zimny
7f279c688c address PR comments 2025-01-22 08:39:55 +01:00
saml-dev
0984a31798 Merge pull request #31 from saml-dev/adaptive-lighting
add adaptive lighting service
2025-01-20 20:30:29 -05:00
Sam Lewis
65672dc311 add adaptive lighting service 2025-01-20 20:30:07 -05:00
Jakub Zimny
98e3583c6f No need to add as field struct 2025-01-20 23:39:53 +01:00
Jakub Zimny
5b43c79783 fix compilation error 2025-01-20 23:38:56 +01:00
Jakub Zimny
84f9726b09 Add functionality to list entities from REST endpoint 2025-01-20 23:32:12 +01:00
saml-dev
05131faa98 Merge pull request #29 from saml-dev/fix-urls
URL fixes
2025-01-19 21:26:12 -05:00
Sam Lewis
004e79749a update README 2025-01-19 21:18:21 -05:00
Sam Lewis
56ccdfbdb2 two url fixes:
- default scheme for legacy connection params
- set paths for http and websocket APIs
2025-01-19 20:58:16 -05:00
saml-dev
c27e596dad Merge pull request #26 from metalmatze/golanglint-ci-fixes
Fix default golanglint-ci errors
2025-01-17 21:25:44 -05:00
saml-dev
b37667f1db Merge pull request #24 from metalmatze/service-errors
Return Service errors
2025-01-17 20:36:30 -05:00
Matthias Loibl
ccebcb869f Fix default golanglint-ci errors
These errors show up when simply running `golangci-lint run ./...` on the project.
2025-01-17 17:59:30 +01:00
Matthias Loibl
02b6c413f1 Return Service errors
Additionally, removed the context that gets passed into the Services but isn't used in one of them. The websockets APIs also don't have any use for context.
2025-01-17 17:50:06 +01:00
saml-dev
24f814b768 Merge pull request #23 from metalmatze/url
Parse URL and pass it to clients
2025-01-17 09:03:12 -05: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
saml-dev
066441762b Merge pull request #19 from mhagger/too-many-slashes 2024-03-28 14:26:02 -04:00
Michael Haggerty
261a628542 SetupConnection(): remove excess slash in URI
The extra slash was added (presumably by accident) in
https://github.com/saml-dev/gome-assistant/pull/17.
2024-03-23 23:48:10 +01:00
saml-dev
93600c2ed0 Merge pull request #17 from dsiebel/tls-support 2024-03-09 16:55:05 -05:00