From a45aba714b371158bd42e33be53d4cd2bc6b53c6 Mon Sep 17 00:00:00 2001 From: Ben Dodd Date: Tue, 21 Jun 2022 13:57:41 +0100 Subject: [PATCH 1/2] Use correct format for timer event example --- source/behavior/entities/format/components/timer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/behavior/entities/format/components/timer.json b/source/behavior/entities/format/components/timer.json index 1ab3933e..547a5958 100644 --- a/source/behavior/entities/format/components/timer.json +++ b/source/behavior/entities/format/components/timer.json @@ -69,7 +69,10 @@ { "time": 1, "looping": true, - "time_down_event": "self:reset" + "time_down_event": { + "event": "example:foo", + "target": "self" + } } ] } From 57693248c0bbf47ded60ee98fdf7d075a4538d13 Mon Sep 17 00:00:00 2001 From: Ben Dodd Date: Tue, 21 Jun 2022 13:59:15 +0100 Subject: [PATCH 2/2] Add comment for random_time_choices value --- source/behavior/entities/format/components/timer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/behavior/entities/format/components/timer.json b/source/behavior/entities/format/components/timer.json index 547a5958..f63a85b5 100644 --- a/source/behavior/entities/format/components/timer.json +++ b/source/behavior/entities/format/components/timer.json @@ -58,7 +58,8 @@ }, "value": { "type": "integer", - "description": "UNDOCUMENTED: value", + "description": "The value in seconds that would be used if this section was picked", + "$comment": "UNDOCUMENTED", "title": "Value" } }