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
saml-dev
93b79102e9
Merge pull request #18 from mhagger/fire-event
2024-03-09 16:52:35 -05:00
Michael Haggerty
68398b02b0
Add a way to fire Home Assistant events
2024-03-09 17:31:25 +01:00
Sam Lewis
c28cba8e91
add Script service
2024-02-25 21:49:04 -05:00
Dominik Siebel
8b436ce4ee
feat: support secure connections
2024-02-22 11:28:05 +01:00
Sam Lewis
a9aad16cf3
Merge branch 'main' of https://github.com/saml-dev/gome-assistant
2023-12-29 21:30:44 -05:00
Sam Lewis
47a9910fda
add zwavejs service
2023-12-29 21:30:41 -05:00
saml-dev
2133637bcf
Merge pull request #16 from jluzny/refactor/use-slog-library
...
Refactor/use slog library
2023-12-28 23:00:47 -05: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
b3a38013c6
Added daily schedule test. Migrated relevant files to slog.
2023-12-09 21:08:50 +01:00
Jiri Luzny
a4fbbe5ac3
Setup pretty logging and start refactoring of the library to slog
2023-12-09 21:08:50 +01:00
saml-dev
16fb52b8ee
Merge pull request #14 from jluzny/feature/example-of-simple-live-tests
2023-12-07 09:27:30 -05:00
Jiri Luzny
983ac712d8
Fixed typo in an assert message.
2023-12-05 19:04:01 +01:00
Jiri Luzny
596024ce25
Added check of entity state change callback.
2023-12-04 21:56:27 +01:00
Jiri Luzny
5b1ee13fa3
renamed to example package to allow correct build
2023-11-15 03:40:05 +01:00
Jiri Luzny
7aa407a515
Fix of assert condition
2023-11-12 21:50:50 +01:00
Jiri Luzny
60b851ddfa
aligned module name
2023-11-12 21:37:13 +01:00
Jiri Luzny
7c4e1ab8e3
Initial version of the sample live tests
2023-11-12 21:23:00 +01:00
saml-dev
701ff4df58
Merge pull request #12 from saml-dev/feat-enabled-disabled-list
...
feat: EnabledWhen / DisabledWhen upgrades
2023-10-23 11:12:10 -04:00
Sam Lewis
049b0e0011
add some unit tests for some of the checkers
2023-10-22 23:13:47 -04:00
Sam Lewis
1932f1edf7
make an interface for State object
2023-10-22 18:16:20 -04:00
Sam Lewis
824d6c12d1
refactor all automation types to take a list
2023-10-22 18:07:42 -04:00
Sam Lewis
3ec6608714
began refactor, added interface to set up for unit testing
2023-10-22 00:56:12 -04:00
saml-dev
025e7115fa
Merge pull request #11 from saml-dev/feat--enabled/disabled
...
Feat--enabled/disabled
2023-10-08 19:42:28 -04:00
Sam Lewis
3cb96800f9
allow empty string for state
2023-10-08 19:29:28 -04:00
Sam Lewis
9d7701c481
rename to DisabledWhen and EnabledWhen
2023-10-07 14:36:42 -04:00
Sam Lewis
a06f62d1ba
add enable/disable function to every builder
2023-10-07 14:02:24 -04:00
Sam Lewis
eb26a44459
two things:
...
fix bug with newer HA versions by sending int id instead of string
add warning to logs when receiving unsuccessful websocket response
2023-06-11 14:09:13 -04:00
saml-dev
d16f646423
Merge pull request #8 from LubosD/feature/fix-latlong-crash
...
Fix a crash in State.getLatLong()
2023-06-06 18:35:21 -04:00
Lubos Dolezel
ff9f6cb95e
Fix a crash in State.getLatLong()
2023-06-02 12:11:40 +02:00
Sam Lewis
1dd8eaa58d
add climate service
2023-05-01 00:53:52 -04:00
saml-dev
eb6718a796
Merge pull request #7 from LubosD/feature/avoid-panic-on-disconnect
...
Avoid panic on disconnect, provide connection errors
2023-03-12 14:40:49 -04:00
Lubos Dolezel
27ece198ef
Reflect the API change in README.md
2023-03-07 18:36:05 +01: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
Lubos Dolezel
23f87fef8b
Avoid panic on disconnect
2023-03-07 18:18:14 +01:00
saml-dev
d61d3c6a75
Merge pull request #5 from LubosD/feature/service-and-state-getters
...
Add getters for Service and State
2023-03-03 16:31:17 -05:00
Lubos Dolezel
35a269715b
Add getters for Service and State
2023-02-28 12:01:25 +01:00
saml-dev
531091dd66
Merge pull request #4 from LubosD/feature/ws_write_locking
...
Fix panics due to concurrent websocket writes
2023-02-26 17:57:40 -05:00
saml-dev
8961f89514
Merge pull request #3 from LubosD/feature/number_service_floats
...
Number.SetValue() should accept a float instead of int
2023-02-26 17:54:05 -05:00
Lubos Dolezel
f27cbfb299
Fix panics due to concurrent websocket writes
2023-02-24 11:49:26 +01:00
Lubos Dolezel
0ec8f2ff4e
Number.SetValue() should accept a float instead of int
2023-02-21 18:33:25 +01:00
saml-dev
8bee96aeff
Merge pull request #1 from jcwearn/add-additional-domains
...
Add Domains: alarm_control_panel, cover, media_player, scene, tts, vacuum
2023-02-01 21:41:01 -05:00
jackson
6e49b13f89
add vacuum domain/services
2023-01-31 20:31:10 -05:00
jackson
47bff5da71
correct methods
2023-01-30 21:05:17 -05:00
jackson
cae0c275ca
add tts domain/services
2023-01-30 21:00:03 -05:00
jackson
abf47b223f
Use correct service
2023-01-30 20:59:41 -05:00