156 Commits

Author SHA1 Message Date
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
jackson
1f1f4e97ca add domains: alarm_control_panel, cover, media_player, scene 2023-01-29 19:14:10 -05:00
Sam Lewis
bbfdf31e51 update docs 2023-01-28 10:42:11 -05:00
saml-dev
9c6ed56f5c Update README.md 2023-01-28 10:28:56 -05:00
Sam Lewis
447400868d switch back to pointers, but this time add etl := etl when iterating over list to set correct pointer 2023-01-13 21:57:08 -05:00
Sam Lewis
18bab6f784 go mod tidy 2023-01-12 22:34:02 -05: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
a868c08d40 resolve lint for double import 2022-12-28 17:56:09 -05:00
Sam Lewis
ac97d82cfe fix sun offset 2022-12-28 17:53:59 -05:00
Sam Lewis
aa1bc3f4a4 update docs 2022-12-12 08:38:45 -05:00
Sam Lewis
c8128b5dba change to vanity url saml.dev 2022-12-12 00:15:00 -05:00
Sam Lewis
40c5fe76ba fix bug with entityListeners using .Duration 2022-12-09 19:40:51 -05:00
Sam Lewis
ffb9c9f08b continue instead of return 2022-11-27 23:46:02 -05:00
Sam Lewis
60349852e6 add OnlyOnDates to schedule, change exceptionday to exceptiondates everywhere 2022-11-26 23:36:19 -05:00
Sam Lewis
555bafa2e5 update docs 2022-11-13 20:37:25 -05:00
Sam Lewis
ced79559e5 split daily schedule and interval 2022-11-13 20:17:00 -05:00
Sam Lewis
83998b5e7e only trigger ETL if newState != oldState 2022-11-10 20:32:32 -05:00
Sam Lewis
f6c68fe8ca add comment 2022-11-10 20:27:34 -05:00