Commit Graph

86 Commits

Author SHA1 Message Date
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
Sam Lewis
0f970c2732 fix runonstartup bug 2022-11-09 21:03:57 -05:00
Sam Lewis
e9f07b9b32 add number service 2022-11-09 20:31:06 -05:00
Sam Lewis
e5fe752d2c update docs 2022-11-09 20:17:52 -05:00
Sam Lewis
7fda113913 add etl.RunOnStartup 2022-11-09 20:16:35 -05:00
Sam Lewis
f7e212e1d1 fix sunset/sunrise schedule bug 2022-11-09 17:41:13 -05:00
Sam Lewis
4f1666f2af docs update 2022-11-08 23:38:21 -05:00
Sam Lewis
1ec5878ff9 add state as second arg for eventListenerCallback 2022-11-08 22:48:34 -05:00
Sam Lewis
5afa301f36 add before/after sunset/sunrise to state 2022-11-06 16:10:05 -05:00
Sam Lewis
ba9132745e add notify service 2022-11-06 15:00:39 -05:00
Sam Lewis
e3e7889574 adjust next schedule message 2022-11-04 23:03:16 -04:00
Sam Lewis
648eb62cfa fix bug when registering multiple schedules and >=1 are sunset/sunrise 2022-11-04 22:47:42 -04:00
Sam Lewis
2575525528 make App exported 2022-11-04 21:10:14 -04:00
Sam Lewis
055aa04aee decided State and Service are documented enough 2022-11-02 00:15:22 -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
cbfce76897 some tweaks/renames, schedule documentation 2022-11-01 01:20:05 -04:00
Sam Lewis
b2a4e26946 add Exceptions to schedules 2022-10-31 02:29:48 -04:00
Sam Lewis
b1928496cc add exceptions to entityListener 2022-10-31 02:14:13 -04:00
Sam Lewis
d158524783 add Exceptions to eventListener 2022-10-31 02:01:24 -04:00
Sam Lewis
d077c3feec DRY duration parsing 2022-10-31 01:36:40 -04:00