-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add example section for APCUPSD #38813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -141,6 +141,30 @@ Some sensors are disabled by default, since they provide information that is onl | |||||||||||||||||||
- UPS Transfer from Battery (XOFFBATT) | ||||||||||||||||||||
- UPS Transfer to Battery (XONBATT) | ||||||||||||||||||||
|
||||||||||||||||||||
## Examples | ||||||||||||||||||||
|
||||||||||||||||||||
### Send me a push notification when UPS load is high | ||||||||||||||||||||
|
||||||||||||||||||||
{% raw %} | ||||||||||||||||||||
|
||||||||||||||||||||
```yaml | ||||||||||||||||||||
alias: "APC UPS Load High Notification" | ||||||||||||||||||||
description: "Notify when APC UPS load is too high" | ||||||||||||||||||||
mode: single | ||||||||||||||||||||
triggers: | ||||||||||||||||||||
- trigger: numeric_state | ||||||||||||||||||||
entity_id: | ||||||||||||||||||||
- sensor.gogoups_load | ||||||||||||||||||||
above: 80 | ||||||||||||||||||||
conditions: [] | ||||||||||||||||||||
actions: | ||||||||||||||||||||
- action: notify.notify | ||||||||||||||||||||
data: | ||||||||||||||||||||
message: "APC UPS load is high: {{ states('sensor.apc_ups_load') }}%" | ||||||||||||||||||||
``` | ||||||||||||||||||||
Comment on lines
+160
to
+164
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct action syntax and entity naming. Proposed diff: @@ -161,6 +161,6
- actions:
- - action: notify.notify
- data:
- message: "APC UPS load is high: {{ states('sensor.apc_ups_load') }}%"
+action:
+ - service: notify.notify
+ data:
+ message: "APC UPS load is high: {{ states('sensor.apcupsd_loadpct') }}%" 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||
|
||||||||||||||||||||
{% endraw %} | ||||||||||||||||||||
|
||||||||||||||||||||
## Data updates | ||||||||||||||||||||
|
||||||||||||||||||||
The integration {% term polling polls %} data from your APC UPS Daemon every 60 seconds by default. | ||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix YAML trigger configuration.
The keys
triggers:
and innertrigger:
syntax do not match Home Assistant’s official automation schema. Use a singulartrigger
key withplatform
rather thantrigger:
.Suggested diff:
📝 Committable suggestion