Commit Graph

61 Commits

Author SHA1 Message Date
Quentame 552eeeddf6
`conditional` & `entity-filter`: add ability to filter through `entity_id` & add `entity-filter` `conditional`'s conditions (#19182)
* entity-filter: add ability to filter through entity_id value

* review: test filter value against undefined

Co-authored-by: karwosts <32912880+karwosts@users.noreply.github.com>

* review: better handle state values that could be mixed with an entity_id

* Add multiple filter/condition types

* Fix automation's NumericStateCondition above/below types

* Replace operator condition by state for string or number

* Move to condition: type & attr

* Remove enable attr

* fix condition state array

* Remove necessary undefined check

* Move to condition: use same codebase as conditionnal card

* Fix entities error 'read properties of undefined' + conditions first

* Fix lint

* Merge condition to set the entity to filter on

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>

* review: make numeric_state below & above working together again, with entity_id support

* shorthand getValueFromEntityId

* review: states are string

* Split legacy state filter and condition logic

* Fix types

* Fix type

* Update gallery doc

* Fix operator in while numaric array

* Rename condition card header in gallery

* Don't use real gas station name

* Update gallery

* Update card is entity in condition change

* Don't check for entity id in state condition

* Improve check

* Update condition card demo

* Revert "Don't check for entity id in state condition"

This reverts commit f5e6a65a37.

* Use set instead of list

* Update demo

---------

Co-authored-by: karwosts <32912880+karwosts@users.noreply.github.com>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-03-19 14:29:34 +01:00
Simon Lamon 28c21b1041
Localize trigger state in automation editor (#19554)
* trigger state

* Lokalize

* don't change existing trigger

* space

* Fixes
2024-01-30 23:36:39 +01:00
Bram Kragten 8f07e6f141
Group add automation elements in dialog (#19086)
* Group add automation elements in dialog

* Add search

* clear filter on close

* Split out services

* group services by integration type

* Update add-automation-element-dialog.ts

* fix typing

* clear filter on back

* Update add-automation-element-dialog.ts

* Fix search

* scroll to top

* Add service descriptions

* fix clipboard

* Move play media, sort services

* use helpers

* move to data

* Move building blocks to a group

* fix search

* Update add-automation-element-dialog.ts

* Update en.json

* fix alignment of single line and multi line items

* use repeat instead of map
2023-12-21 21:01:27 +01:00
Jonas Lang ad68782b79
Typo automation (#18266) 2023-10-18 13:42:30 +00:00
Simon Lamon c5056eb4d2
Allow Multiple Entities for Numeric State Trigger (#18064) 2023-10-12 09:37:19 +02:00
Paul Bottein f7f1a0c32d
Add better localize keys typings for config pages (#17815)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-09-05 11:39:03 +02:00
Bram Kragten 87aad75cc7
Add UI for conversation trigger (#17037) 2023-06-27 10:58:27 +02:00
Paul Bottein 1ee67937ec
Simplify usage on clipboard for automations and scripts (#16989) 2023-06-22 10:55:39 +02:00
RoboMagus 9b35c06eef
Add persistent_notification trigger (#16967)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-21 11:55:55 +02:00
karwosts 29846a168e
Add cut / copy / paste support to automation & script editor (#16488) 2023-05-24 11:47:33 +02:00
Eric Severance b1f9469002
Add webhook trigger allowed_methods/local_only options (#11680)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-04-14 16:33:21 +02:00
Franck Nijhof a6f9482bf6
Improve/extend description of conditions (#15943) 2023-03-28 16:43:00 +02:00
karwosts d00467a39c
Add `for` to UI for template trigger (#15534) 2023-02-21 17:27:56 +01:00
dependabot[bot] 282823ee83
Bump prettier from 2.8.1 to 2.8.3 (#15129)
* Bump prettier from 2.8.1 to 2.8.3

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.1 to 2.8.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.8.1...2.8.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* apply rules

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2023-01-18 14:16:42 -05:00
Bram Kragten 0b76183acd
Show non-editable automations in UI (#13900) 2022-09-29 12:11:29 -04:00
Paul Bottein b553a3fd92
Some fixes for automation picker and editor (#13634) 2022-09-07 07:47:56 -04:00
Paul Bottein 3ef567dcd5
Automation change mode dialog (#13591) 2022-09-05 17:43:34 +02:00
Franck Nijhof 44422086d7
Add alias support to all triggers (#13442) 2022-08-22 16:08:32 -05:00
Steve Repsher d7b888f761
Fix localize key types related to form schemas (Group 3) (#13400)
* Fix key type errors for card editors (Round 4)

* Fix key type errors for remaining form schemas
2022-08-17 23:57:26 -04:00
Allen Porter 72a36fb1cd
Add calendar trigger offsets in automation editor (#12486)
* Add calendar trigger offsets in automation editor

* Use duration selector for offset

* Fix typing for offsets/duratons
2022-05-12 07:42:15 -05:00
Bram Kragten 38b4090daa
Add support for enabling/disabling trigger/condition/action (#12493)
* Add support for enabling/disabling trigger/condition/action

* Add more visual indication of disabled

* review

* margin

* Dont make overflow transparent

* Change color of bar
2022-04-28 18:37:58 +02:00
Thomas Lovén b8c55f2f65
Evaluate condition shorthands in editors (#12473)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-28 08:36:17 -07:00
Paulus Schoutsen 3e188d1f87
Add shorthand condition to the gallery (#12400) 2022-04-25 10:00:28 +02:00
Allen Porter 958a1de2fd
Add calendar event end trigger to automation editor (#12389) 2022-04-23 00:19:23 -05:00
Allen Porter 36d30266e3
Add automation editor for calendar trigger (#12343) 2022-04-22 16:53:45 -05:00
Franck Nijhof 511368da13
Allow selecting multiple entities for state trigger (#12334)
Co-authored-by: Zack Barett <zackbarett@hey.com>
2022-04-15 19:03:14 +00:00
Paulus Schoutsen 125a601ae3
Select default mode if none set (#12306) 2022-04-11 12:08:37 -05:00
Paulus Schoutsen b3fa0cccb4 Add variables to automation trigger type 2022-03-27 20:33:22 -07:00
Nathan Orick b79c06ad71
Default to yaml editing when there are multiple states in condition (#10481) 2021-11-29 10:14:09 +01:00
Paulus Schoutsen dd11fb1b99
Add automation editor to gallery (#10392) 2021-10-25 15:53:32 +00:00
Bram Kragten 5dad18c85f
Make time inputs the same through the UI (#9766) 2021-08-12 22:52:26 +02:00
Bram Kragten de5a817953
Add UI for trigger condition (#9505) 2021-07-06 10:43:07 +02:00
Joakim Sørensen 21a3a8c594
Navigate cleanup (#9202) 2021-05-25 17:46:36 +02:00
Paulus Schoutsen 82ad5c103d
Handle configurations that don't wrap their action sequences in arrays (#8798) 2021-04-02 14:45:34 +02:00
Bram Kragten c11bbcf442
Add blueprint config to trace (#8751)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-04-01 23:37:46 +02:00
Paulus Schoutsen 3c75eb96f1
Adjust traces to latest API (#8656) 2021-03-16 10:43:30 -07:00
Paulus Schoutsen 5d2afdd825
Add motion light trace (#8637) 2021-03-14 15:03:50 +01:00
Paulus Schoutsen 7bd4eeb0df
Trace foundation (#8608) 2021-03-12 20:13:06 -08:00
Philip Allgaier 32ba8f4731
Make clear that automation run button skips conditions + remove word "execute" from UI (#8259)
* Do not skip conditions when triggering an automation

* Remove usage of word "execute"

* More concise function names
2021-02-25 14:17:31 +01:00
Nikfinn99 aba0e1f026
Automation - State Condition display 'for:' in frontend (#8124)
* Automation - State Condition display 'for:' in frontend

* rename variable to better name
2021-01-11 17:24:39 +01:00
Bram Kragten 25f7cbea5a
Add target selector (#7864)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 12:10:31 +01:00
Bram Kragten 4973d8f629
WIP initial Blueprint UI (#7695)
* WIP initial Blueprint UI

* Review comments

* localize
2020-11-18 12:19:59 +01:00
On Freund 30f34eee22
Add context to event trigger (#7182)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-10-21 17:26:45 +02:00
Bram Kragten c90c88ecbf
Bump typescript (4) and babel (#7249) 2020-10-07 17:58:56 +02:00
Tomasz dfb2a7153b
Add weekday to time contidion editor (#6848) 2020-09-28 12:28:43 +02:00
Bram Kragten de7ffb10cb
Automation editor tweaks (#6713)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-09-07 19:53:10 +02:00
Paulus Schoutsen c610f54977
Add methods for new trigger/condition commands (#6675) 2020-08-24 23:02:04 +02:00
Paulus Schoutsen d7e409b042
Add tag config panel (#6601)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-08-20 15:34:52 +02:00
Bram Kragten 16473c9177
Bump superstruct, add struct to automation action (#6436)
Co-authored-by: Zack Arnett <arnett.zackary@gmail.com>
2020-07-21 12:42:07 +02:00
Bram Kragten 352214ba0a
Add UI for the script and automation modes (#6367) 2020-07-13 10:52:37 +02:00