Skip to content

Commit e08cf33

Browse files
author
Robert Schindler
committed
[schedy] Improved generic2 actor sample config in docs
1 parent 97cc387 commit e08cf33

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/apps/schedy/actors/generic2/config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ values:
2121
# Additionally, you don't have to include all attributes in every single value,
2222
# only the first N attributes which values are provided for are compared against
2323
# the entity's state for the value to match.
24-
- value: ["value of 1st attribute", "value of 2nd attribute", ...]
24+
- value: ["on", "*"]
2525
# The services that have to be called in order to make the actor report this value.
2626
calls:
2727
# Which service to call
@@ -31,10 +31,16 @@ values:
3131
# "{attr2}" for the value of the second attribute and so on to pass the correct
3232
# attribute values to the service call as needed in order to bring the entity
3333
# to the state represented by the value you returned from your schedule.
34+
# The placeholder "{entity_id}" can be used to insert the actor's entity id.
35+
# For instance, if the value
36+
# ["on", 75]
37+
# was returned by a schedule, the following sample would render to:
38+
# {"param1": "something", "param2": 75}
3439
data:
35-
param1: "value1"
40+
param1: "something"
3641
param2: "{attr2}"
37-
# Set to false if you don't want the entity_id field to be included in service data.
42+
# Set to false if you don't want the entity_id field to be included in service
43+
# data automatically.
3844
#include_entity_id: true
3945

4046
# More values#

0 commit comments

Comments
 (0)