power: document triggers & conditions (Labs feature)#45730
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
bf2ca91 to
d769bd3
Compare
|
I'm still seeing a combination of behavior options. Here's what we're changing:
We should be using each over any in the documentation. |
|
@silamon Thanks! You're right, I missed a couple. To clarify, this only changed for triggers, right? Edit: the two remaining occurrences of |
d769bd3 to
69c22ce
Compare
There was a problem hiding this comment.
Pull request overview
This PR documents the Power integration’s Labs triggers and condition using the split-page documentation format, expanding the Power integration docs to include dedicated pages for the new trigger/condition types and adding example automations.
Changes:
- Added new trigger docs for
power.changedandpower.crossed_threshold. - Added a new condition doc for
power.is_value. - Updated the Power integration page to include triggers/conditions sections and practical automation examples.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| source/_integrations/power.markdown | Expands the integration page with contextual guidance (power vs. energy), and adds example automations. |
| source/_triggers/power.changed.markdown | New split-page trigger documentation for reacting to matching power value changes. |
| source/_triggers/power.crossed_threshold.markdown | New split-page trigger documentation for reacting to power threshold crossings (enter/leave zones). |
| source/_conditions/power.is_value.markdown | New split-page condition documentation for testing current power values against a threshold. |
| options: | ||
| threshold: | ||
| type: below | ||
| value: | ||
| number: 3 | ||
| unit_of_measurement: "W" |
| options: | ||
| threshold: | ||
| type: above | ||
| value: | ||
| number: 10 | ||
| unit_of_measurement: "W" |
| options: | ||
| threshold: | ||
| type: below | ||
| value: | ||
| number: 2500 | ||
| unit_of_measurement: "W" |
| --- | ||
|
|
||
| This {% term integration %} provides automation triggers and conditions for sensors and number entities with device class power. There are no configuration options for this integration. | ||
| This {% term integration %} provides automation triggers and conditions for sensors with the power device class. Use it when you want to react to how much power a device or circuit is using right now. There are no configuration options for this integration. |
Proposed change
Document the Power integration Labs triggers and condition using the current split-page format. This updates the integration page, adds trigger pages for
power.changedandpower.crossed_threshold, and adds a condition page forpower.is_value.Type of change
currentbranch).currentbranch).nextbranch).nextbranch).Additional information
Checklist
currentbranch.nextbranch.