Commit graph

345 commits

Author SHA1 Message Date
Paulus Schoutsen
262e77d969
Blueprint: descriptions + descriptive errors () 2020-12-03 16:44:18 +01:00
Paulus Schoutsen
ff4897a09e
Fix using execute on the notify_leaving_zone () 2020-12-02 16:21:00 +01:00
Paulus Schoutsen
6c9c280bbb
Migrate notify-leaving-zone to use mobile app device action () 2020-12-02 13:07:04 +01:00
Paulus Schoutsen
648f9e100d
Use light turn on service () 2020-12-02 10:53:26 +01:00
Bram Kragten
d93687b5ac
Update area and target selectors add sequence selector ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 09:30:49 +01:00
Paulus Schoutsen
1c9c99571e
Use !input instead of !placeholder ()
* Use !input instead of !placeholder

* Update input name

* Lint

* Move tests around
2020-12-01 18:21:36 +01:00
Paulus Schoutsen
e406a47293
Allow configuring the delay in the motion light blueprint () 2020-11-28 23:56:15 +01:00
Paulus Schoutsen
dd513147a5
Add a service target () 2020-11-28 23:33:32 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Paulus Schoutsen
dc5f7aedd7
Verify that we register blueprints on automation setup () 2020-11-20 15:57:57 +01:00
Paulus Schoutsen
df25b53bb8
Fix automation in packages () 2020-11-13 22:49:01 +01:00
Franck Nijhof
6f326a7ea4
Add support for multiple event triggers in automation ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-12 11:58:28 +01:00
HomeAssistant Azure
4b9ba79584 [ci skip] Translation update 2020-11-11 00:10:27 +00:00
Paulus Schoutsen
0fb587727c
Add initial blueprint support ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-11-02 15:00:13 +01:00
HomeAssistant Azure
b102ad731f [ci skip] Translation update 2020-10-22 00:09:52 +00:00
HomeAssistant Azure
994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
HomeAssistant Azure
6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
Paulus Schoutsen
8ae3f575dd
Add extended validation for script repeat/choose () 2020-10-05 14:03:48 +02:00
Paulus Schoutsen
5117a16841
Extract variable rendering () 2020-09-11 12:24:16 +02:00
Paulus Schoutsen
aa9dff572e
Add default variables to script helper () 2020-09-10 20:41:42 +02:00
Phil Bruckner
4486251382
Add max_exceeded log level option to automations & scripts () 2020-09-02 11:05:14 +02:00
HomeAssistant Azure
5ce62c8446 [ci skip] Translation update 2020-09-02 00:03:29 +00:00
J. Nick Koston
dda4cf4d58
Tune logbook performance to accomodate recent changes () 2020-08-30 09:20:31 +02:00
Phil Bruckner
b315df2118
Reduce automation state changes by using script helper's last_triggered attribute () 2020-08-28 14:51:15 -05:00
Phil Bruckner
e6141ae558
Add description of what caused an automation trigger to fire ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-28 17:02:12 +02:00
Paulus Schoutsen
2a1fe9d29a
Add websocket trigger/condition commands () 2020-08-24 23:01:57 +02:00
Phil Bruckner
76ead858cf
Add wait_for_trigger script action ()
* Add wait_for_trigger script action

* Add tests

* Change script integration to use config validator
2020-08-21 11:38:25 +02:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code () 2020-08-17 11:54:56 -05:00
Phil Bruckner
580e229cf2
Create variable with result of wait_template and accept template for timeout option () 2020-08-12 13:42:06 -05:00
Phil Bruckner
716fa63e73
Update script helper constructor parameters ()
Add domain and make it and name required.

Add optional running_description.
2020-08-12 11:39:05 -05:00
Phil Bruckner
192fe58fc8
Time trigger can also accept an input_datetime Entity ID () 2020-08-11 15:16:28 -05:00
Phil Bruckner
9e12e3f96c
Allow automation to be turned off without stopping actions () 2020-08-01 21:31:47 -05:00
Franck Nijhof
fa9866db96
Add support for multiple time triggers in automations ()
* Add support for multiple time triggers in automations

* Attach with single callback

* Patch time in tests

* Improve test coverage

* Adjusting my facepalm moment
2020-07-29 14:51:30 -10:00
Phil Bruckner
bbc8748e3b
Stop automation runs when turned off or reloaded ()
* Add automation turn off / reload test

* Stop automation runs when turned off or reloaded
2020-07-25 12:19:55 +02:00
Eugenio Panadero
8cfffd00d6
Fix state automation trigger () ()
for scenarios of enabling/disabling (~ creating/removing) entities,
so it does not trigger in removal if a `to: xxx` is defined, and also
does not trigger in creation if a `from: xxx` is present.
2020-07-23 14:17:11 -05:00
Phil Bruckner
65d1dfba62
Update automation logger to include object_id like scripts () 2020-07-22 10:55:49 -05:00
Pascal Vizeli
f4c3f5d074
Revert breaking change for Automation ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-07-15 20:38:29 +02:00
Bram Kragten
7d77fa92c2
Add mode info attributes to script and automation ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-14 10:47:59 -07:00
Phil Bruckner
63e55bff52
Remove legacy script mode and simplify remaining modes () 2020-07-10 17:00:57 -07:00
Phil Bruckner
91271f388c
Add new repeat loop for scripts and automations () 2020-07-10 13:37:19 -05:00
J. Nick Koston
34ccb6588c
Cleanup async_track_state_change and augment docstring ()
* Cleanup async_track_state_change and augment docstrings.

Skip from_state and to_state matching in
async_track_state_change when they are None

Optimize the state change listener for the most
common use case: no to_state and from_state
matching.

* Update benchmark to be more realistic (previously we assumed only one entity was present in the whole instance)

* Add more tests to ensure behavior is preserved

* Ensure new behavior matches test

* remove MATCH_ALL from zone automation since its the default anyways

* Might as well use async_track_state_change_event instead since MATCH_ALL is removed
2020-07-05 17:31:33 -05:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
J. Nick Koston
c1aaceebb6
Use async_track_state_change_event for automation numeric_state ()
Calling async_track_state_change_event directly
is faster than async_track_state_change (see ) and has
slightly lower latency triggering state updates
2020-07-05 13:05:53 -07:00
Phil Bruckner
f7c4900d5c
Enhance automation integration to use new features in script helper () 2020-07-05 09:25:15 -05:00
J. Nick Koston
4acc6f333e
Improve scalability of state change event routing () 2020-06-27 14:46:45 -07:00
Paulus Schoutsen
5bc6ed4cef
Add logbook platforms ()
* Add logbook platforms

* Fix logbook describe test
2020-06-24 18:14:50 -07:00
Erik Montnemery
747490ab34
Support reconfiguring MQTT config entry () 2020-06-22 17:49:01 -07:00
Bas Nijholt
dcb04acc65
Set automation last_triggered earlier ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-03 20:08:37 +02:00
Franck Nijhof
e6fe34e64d
Migrate automation to use describe_event for logbook () 2020-06-01 17:18:40 -07:00
Franck Nijhof
1883b1d2a2
Add config reloaded events for automation and scene () 2020-06-01 15:19:00 -07:00