|
567 | 567 | </li> |
568 | 568 |
|
569 | 569 | <li class="md-nav__item"> |
570 | | - <a href="#weighting" class="md-nav__link"> |
| 570 | + <a href="#weightingmultipliers" class="md-nav__link"> |
571 | 571 | <span class="md-ellipsis"> |
572 | | - Weighting |
| 572 | + Weighting/Multipliers |
| 573 | + </span> |
| 574 | + </a> |
| 575 | + |
| 576 | +</li> |
| 577 | + |
| 578 | + <li class="md-nav__item"> |
| 579 | + <a href="#dangerous-settings" class="md-nav__link"> |
| 580 | + <span class="md-ellipsis"> |
| 581 | + Dangerous settings |
| 582 | + </span> |
| 583 | + </a> |
| 584 | + |
| 585 | + <nav class="md-nav" aria-label="Dangerous settings"> |
| 586 | + <ul class="md-nav__list"> |
| 587 | + |
| 588 | + <li class="md-nav__item"> |
| 589 | + <a href="#calculate-with-incomplete-data" class="md-nav__link"> |
| 590 | + <span class="md-ellipsis"> |
| 591 | + Calculate with incomplete data |
| 592 | + </span> |
| 593 | + </a> |
| 594 | + |
| 595 | +</li> |
| 596 | + |
| 597 | + <li class="md-nav__item"> |
| 598 | + <a href="#minimum-required-minutes-in-slots" class="md-nav__link"> |
| 599 | + <span class="md-ellipsis"> |
| 600 | + Minimum required minutes in slots |
573 | 601 | </span> |
574 | 602 | </a> |
575 | 603 |
|
|
578 | 606 | </ul> |
579 | 607 | </nav> |
580 | 608 |
|
| 609 | +</li> |
| 610 | + |
| 611 | + </ul> |
| 612 | + </nav> |
| 613 | + |
581 | 614 | </li> |
582 | 615 |
|
583 | 616 | <li class="md-nav__item"> |
|
952 | 985 | </li> |
953 | 986 |
|
954 | 987 | <li class="md-nav__item"> |
955 | | - <a href="#weighting" class="md-nav__link"> |
| 988 | + <a href="#weightingmultipliers" class="md-nav__link"> |
| 989 | + <span class="md-ellipsis"> |
| 990 | + Weighting/Multipliers |
| 991 | + </span> |
| 992 | + </a> |
| 993 | + |
| 994 | +</li> |
| 995 | + |
| 996 | + <li class="md-nav__item"> |
| 997 | + <a href="#dangerous-settings" class="md-nav__link"> |
| 998 | + <span class="md-ellipsis"> |
| 999 | + Dangerous settings |
| 1000 | + </span> |
| 1001 | + </a> |
| 1002 | + |
| 1003 | + <nav class="md-nav" aria-label="Dangerous settings"> |
| 1004 | + <ul class="md-nav__list"> |
| 1005 | + |
| 1006 | + <li class="md-nav__item"> |
| 1007 | + <a href="#calculate-with-incomplete-data" class="md-nav__link"> |
956 | 1008 | <span class="md-ellipsis"> |
957 | | - Weighting |
| 1009 | + Calculate with incomplete data |
| 1010 | + </span> |
| 1011 | + </a> |
| 1012 | + |
| 1013 | +</li> |
| 1014 | + |
| 1015 | + <li class="md-nav__item"> |
| 1016 | + <a href="#minimum-required-minutes-in-slots" class="md-nav__link"> |
| 1017 | + <span class="md-ellipsis"> |
| 1018 | + Minimum required minutes in slots |
958 | 1019 | </span> |
959 | 1020 | </a> |
960 | 1021 |
|
|
963 | 1024 | </ul> |
964 | 1025 | </nav> |
965 | 1026 |
|
| 1027 | +</li> |
| 1028 | + |
| 1029 | + </ul> |
| 1030 | + </nav> |
| 1031 | + |
966 | 1032 | </li> |
967 | 1033 |
|
968 | 1034 | <li class="md-nav__item"> |
@@ -1060,20 +1126,26 @@ <h3 id="minimummaximum-values">Minimum/Maximum Values<a class="headerlink" href= |
1060 | 1126 | <p class="admonition-title">Info</p> |
1061 | 1127 | <p>If hours mode is set to <strong>minimum</strong>, then a minimum and/or maximum rate must be specified in order for the target timeframe sensor to know what the cut off is for discovered times.</p> |
1062 | 1128 | </div> |
1063 | | -<h3 id="weighting">Weighting<a class="headerlink" href="#weighting" title="Permanent link">#</a></h3> |
| 1129 | +<h3 id="weightingmultipliers">Weighting/Multipliers<a class="headerlink" href="#weightingmultipliers" title="Permanent link">#</a></h3> |
1064 | 1130 | <div class="admonition info"> |
1065 | 1131 | <p class="admonition-title">Info</p> |
1066 | | -<p>This is only available for <strong>continuous</strong> target timeframe sensors in <strong>exact</strong> hours mode.</p> |
| 1132 | +<p>This is only available for <strong>continuous</strong> target value sensors in <strong>exact</strong> hours mode.</p> |
1067 | 1133 | </div> |
1068 | | -<p>There may be times when the device you're wanting the target timeframe sensor to turn on doesn't have a consistent power draw. You can specify a weighting which can be applied to each discovered 30 minute slot. This can be specified in a few different ways. Take the following example weighting for a required 2 hours.</p> |
| 1134 | +<p>There may be times when the device you're wanting the target value sensor to turn on doesn't have a consistent power draw. You can specify a weighting/multiplier which can be applied to the value of each discovered 30 minute slot. This can be specified in a few different ways. Take the following example weighting/multiplier for a required 2 hours.</p> |
1069 | 1135 | <ul> |
1070 | | -<li><code>1,1,2,1</code> - This applies a weighting of 1 to the first, second and forth slot and a weighting of 2 to the third slot. This will try and make the lowest slot fall on the third slot, as long as the surrounding slots are cheaper than other continuous slots.</li> |
1071 | | -<li><code>*,2,1</code> - This applies a weighting of 1 to the first, second and forth slot and a weighting of 2 to the third slot. The <code>*</code> can be used as a placeholder for the standard weighting of 1 for all slots before the ones specified.</li> |
1072 | | -<li><code>1,1,2,*</code> - This applies a weighting of 1 to the first, second and forth slot and a weighting of 2 to the third slot. The <code>*</code> can be used as a placeholder for the standard weighting of 1 for all slots after the ones specified.</li> |
1073 | | -<li><code>2,*,2</code> - This applies a weighting of 2 to the first and forth slot and a weighting of 1 to all slots in between. The <code>*</code> can be used as a placeholder for the standard weighting of 1 for all slots in between the specified slots.</li> |
| 1136 | +<li><code>1,1,2,1</code> - This applies a weighting/multiplier of 1 to the first, second and forth slot and a weighting/multiplier of 2 to the third slot. This will try and make the lowest slot fall on the third slot, as long as the surrounding slots are cheaper than other continuous slots.</li> |
| 1137 | +<li><code>*,2,1</code> - This applies a weighting/multiplier of 1 to the first, second and forth slot and a weighting/multiplier of 2 to the third slot. The <code>*</code> can be used as a placeholder for the standard weighting/multiplier of 1 for all slots before the ones specified.</li> |
| 1138 | +<li><code>1,1,2,*</code> - This applies a weighting/multiplier of 1 to the first, second and forth slot and a weighting/multiplier of 2 to the third slot. The <code>*</code> can be used as a placeholder for the standard weighting/multiplier of 1 for all slots after the ones specified.</li> |
| 1139 | +<li><code>2,*,2</code> - This applies a weighting/multiplier of 2 to the first and forth slot and a weighting/multiplier of 1 to all slots in between. The <code>*</code> can be used as a placeholder for the standard weighting/multiplier of 1 for all slots in between the specified slots.</li> |
1074 | 1140 | </ul> |
1075 | | -<p>Each slot weighting must be a whole number or decimal number and be positive.</p> |
1076 | | -<p>You can also use weightings to ignore slots. This can be done by assigning a value of 0 for the desired slot.</p> |
| 1141 | +<p>Each slot weighting/multiplier must be a whole number or decimal number and be positive.</p> |
| 1142 | +<p>You can also use weightings/multipliers to ignore slots. This can be done by assigning a value of 0 for the desired slot.</p> |
| 1143 | +<h3 id="dangerous-settings">Dangerous settings<a class="headerlink" href="#dangerous-settings" title="Permanent link">#</a></h3> |
| 1144 | +<p>These settings can have undesired effects and are not recommended to be changed, but there might be certain scenarios where this is the desired outcome.</p> |
| 1145 | +<h4 id="calculate-with-incomplete-data">Calculate with incomplete data<a class="headerlink" href="#calculate-with-incomplete-data" title="Permanent link">#</a></h4> |
| 1146 | +<p>By default, the target timeframe isn't calculated if there isn't enough data for the period of time being evaluated. For example, if you have a look ahead hours set to 4 hours, it's 9pm and you only have data up to midnight, then the next target timeframe will not be calculated. If you turn this setting on, then the sensor will attempt to look for 4 hours worth of data if available, otherwise it will evaluate with whatever data is available (in this scenario 2 hours between 10pm and 12am).</p> |
| 1147 | +<h4 id="minimum-required-minutes-in-slots">Minimum required minutes in slots<a class="headerlink" href="#minimum-required-minutes-in-slots" title="Permanent link">#</a></h4> |
| 1148 | +<p>By default, 30 minute slots that are part way through are not considered when evaluating rolling target time frames. For example, if you are looking for the best slots for the next 4 hours and it's 10:01, then only slots between 10:30 to 14:30 will be evaluated. This threshold can be changed here to a lower value if you want to take account of slots that are partially in the past. For example if this was set to 29, then the previous example would evaluate slots between 10:00 to 14:00.</p> |
1077 | 1149 | <h2 id="attributes">Attributes<a class="headerlink" href="#attributes" title="Permanent link">#</a></h2> |
1078 | 1150 | <p>The following attributes are available on each sensor</p> |
1079 | 1151 | <table> |
@@ -1195,6 +1267,11 @@ <h2 id="attributes">Attributes<a class="headerlink" href="#attributes" title="Pe |
1195 | 1267 | <td>datetime</td> |
1196 | 1268 | <td>The datetime the target times collection was last evaluated. This will occur if all previous target times are in the past and all values are available for the requested future time period. For example, if you are targeting 16:00 (day 1) to 16:00 (day 2), and you only have values up to 23:00 (day 1), then the target timeframes won't be calculated.</td> |
1197 | 1269 | </tr> |
| 1270 | +<tr> |
| 1271 | +<td><code>calculate_with_incomplete_data</code></td> |
| 1272 | +<td>boolean</td> |
| 1273 | +<td>Determines if calculations should occur when there isn't enough data to satisfy the look ahead hours</td> |
| 1274 | +</tr> |
1198 | 1275 | </tbody> |
1199 | 1276 | </table> |
1200 | 1277 | <h2 id="services">Services<a class="headerlink" href="#services" title="Permanent link">#</a></h2> |
|
0 commit comments