Skip to content

Commit

Permalink
Notification: "when_relative" for "chronometer" (#1044)
Browse files Browse the repository at this point in the history
* Notification: "when_relative" for "chronometer"

* Update docs/notifications/basic.md

---------

Co-authored-by: Joris Pelgröm <[email protected]>
  • Loading branch information
Roffild and jpelgrom authored Mar 22, 2024
1 parent facc846 commit 588d4cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/notifications/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ You may want to utilize [notification timeouts](#notification-timeout) or [repla

- chronometer - true to enable chronometer mode
- when - the timestamp to count up or down to (seconds since 01/01/1970)
- <span class='beta'>BETA</span> when_relative - true makes the value of "when" relative in seconds like "timeout"

```yaml
automation:
Expand All @@ -580,8 +581,10 @@ automation:
message: >-
Next Alarm At {{ states('sensor.<your_device_id_here>_next_alarm') }}
data:
timeout: 120
chronometer: true
when: "1609459200"
when: 120
when_relative: true
```

### Alert Once
Expand Down

0 comments on commit 588d4cd

Please sign in to comment.