-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also include manually config entries in include group (#1746)
- Loading branch information
1 parent
4c63894
commit ea73ce7
Showing
5 changed files
with
129 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
========= | ||
Composite | ||
========= | ||
|
||
The composite strategy allows you to compose the power calculation of multiple strategies. | ||
So you could use the ``fixed`` strategy when a certain condition applies, and the ``linear`` when another condition applies. | ||
|
||
Currently this is a YAML only feature | ||
|
||
Configuration options | ||
--------------------- | ||
|
||
+---------------+-------+--------------+----------+------------------------------------+ | ||
| Name | Type | Requirement | Default | Description | | ||
+===============+=======+==============+==========+====================================+ | ||
| strategies | list | **Required** | | List of objects with strategy configuration and condition | | | ||
+---------------+-------+--------------+----------+------------------------------------+ | ||
|
||
**Example** | ||
|
||
.. code-block:: yaml | ||
powercalc: | ||
sensors: | ||
- entity_id: light.test | ||
composite: | ||
strategies: | ||
- condition: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters