Skip to content

Commit b2c8b9b

Browse files
author
committed
Deployed 9c956dc with MkDocs version: 1.6.1
1 parent ae1dde2 commit b2c8b9b

File tree

5 files changed

+233
-26
lines changed

5 files changed

+233
-26
lines changed

faq/index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,15 @@
574574
</span>
575575
</a>
576576

577+
</li>
578+
579+
<li class="md-nav__item">
580+
<a href="#ive-setup-a-target-timeframe-with-the-default-time-period-0000-0000-or-a-rolling-target-timeframe-looking-ahead-for-24-hours-but-its-not-updating-is-something-broken" class="md-nav__link">
581+
<span class="md-ellipsis">
582+
I've setup a target timeframe with the default time period (00:00-00:00) or a rolling target timeframe looking ahead for 24 hours but it's not updating. Is something broken?
583+
</span>
584+
</a>
585+
577586
</li>
578587

579588
<li class="md-nav__item">
@@ -646,6 +655,15 @@
646655
</span>
647656
</a>
648657

658+
</li>
659+
660+
<li class="md-nav__item">
661+
<a href="#ive-setup-a-target-timeframe-with-the-default-time-period-0000-0000-or-a-rolling-target-timeframe-looking-ahead-for-24-hours-but-its-not-updating-is-something-broken" class="md-nav__link">
662+
<span class="md-ellipsis">
663+
I've setup a target timeframe with the default time period (00:00-00:00) or a rolling target timeframe looking ahead for 24 hours but it's not updating. Is something broken?
664+
</span>
665+
</a>
666+
649667
</li>
650668

651669
<li class="md-nav__item">
@@ -678,6 +696,32 @@
678696
<h1 id="faq">FAQ<a class="headerlink" href="#faq" title="Permanent link">#</a></h1>
679697
<h2 id="ive-updated-the-configuration-of-one-of-my-target-timeframe-sensors-but-its-not-updating-is-there-something-wrong">I've updated the configuration of one of my target timeframe sensors but it's not updating. Is there something wrong?<a class="headerlink" href="#ive-updated-the-configuration-of-one-of-my-target-timeframe-sensors-but-its-not-updating-is-there-something-wrong" title="Permanent link">#</a></h2>
680698
<p>For some reason when you update the configuration via the integration page, the associated entities don't update. You'll need to reload the parent entry to get the configuration to take effect. This is something I'm currently investigating.</p>
699+
<h2 id="ive-setup-a-target-timeframe-with-the-default-time-period-0000-0000-or-a-rolling-target-timeframe-looking-ahead-for-24-hours-but-its-not-updating-is-something-broken">I've setup a target timeframe with the default time period (00:00-00:00) or a rolling target timeframe looking ahead for 24 hours but it's not updating. Is something broken?<a class="headerlink" href="#ive-setup-a-target-timeframe-with-the-default-time-period-0000-0000-or-a-rolling-target-timeframe-looking-ahead-for-24-hours-but-its-not-updating-is-something-broken" title="Permanent link">#</a></h2>
700+
<p>By default, the target timeframe sensors require the supporting data for the specified time periods to be available in order to be calculate. For example if it was <code>00:00</code> on <code>1/12/2025</code>, then the standard target timeframe would require data for <em>at least</em> between <code>2025-12-01T00:00</code> and <code>2025-12-01T00:00</code>. If this is not the case, then the sensor will not be evaluated. This is made clearer by the <code>values_incomplete</code> attributes of the <a href="../setup/target_timeframe/#attributes">target timeframe</a> and <a href="../setup/rolling_target_timeframe/#attributes">rolling target timeframe</a>.</p>
701+
<p>For some data sources, this might cause issues due to the data available (e.g. When you're on the Agile tariff of <a href="../blueprints/#octopus-energy">Octopus Energy UK</a> where data is available in advanced up to <code>23:00</code>).</p>
702+
<p>In this scenario, you have two options.</p>
703+
<ol>
704+
<li>The recommended approach would be to adjust the time period that the target timeframe looks at. See below for example suggestions </li>
705+
</ol>
706+
<table>
707+
<thead>
708+
<tr>
709+
<th>Data Source</th>
710+
<th>Standard Target Timeframe Recommendation</th>
711+
<th>Rolling Target Timeframe Recommendation</th>
712+
</tr>
713+
</thead>
714+
<tbody>
715+
<tr>
716+
<td>Agile tariff for <a href="../blueprints/#octopus-energy">Octopus Energy UK</a></td>
717+
<td>Have an end time before or equal to <code>23:00</code> (e.g. <code>23:00-23:00</code> if you want to look at a full 24 hours)</td>
718+
<td>Because data refreshes around <code>16:00</code> and will go up to <code>23:00</code>, then your look ahead hours should be no more than <code>7</code> to ensure it's working <code>99%</code> of the time</td>
719+
</tr>
720+
</tbody>
721+
</table>
722+
<ol>
723+
<li>Set the configuration option to <a href="../setup/target_timeframe/#calculate-with-incomplete-data">calculate with incomplete data</a>. This <em>could</em> have undesired consequences in the calculations (e.g. picking times that look odd retrospectively because the full data wasn't available at the time of picking), so use with caution.</li>
724+
</ol>
681725
<h2 id="how-do-i-increase-the-logs-for-the-integration">How do I increase the logs for the integration?<a class="headerlink" href="#how-do-i-increase-the-logs-for-the-integration" title="Permanent link">#</a></h2>
682726
<p>If you are having issues, it would be helpful to include Home Assistant logs as part of any raised issue. This can be done by following the <a href="https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging">instructions</a> outlined by Home Assistant.</p>
683727
<p>You should run these logs for about a day and then include the contents in the issue. Please be sure to remove any personal identifiable information from the logs before including them.</p>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

setup/rolling_target_timeframe/index.html

Lines changed: 90 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,37 @@
567567
</li>
568568

569569
<li class="md-nav__item">
570-
<a href="#weighting" class="md-nav__link">
570+
<a href="#weightingmultipliers" class="md-nav__link">
571571
<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
573601
</span>
574602
</a>
575603

@@ -578,6 +606,11 @@
578606
</ul>
579607
</nav>
580608

609+
</li>
610+
611+
</ul>
612+
</nav>
613+
581614
</li>
582615

583616
<li class="md-nav__item">
@@ -952,9 +985,37 @@
952985
</li>
953986

954987
<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">
9561008
<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
9581019
</span>
9591020
</a>
9601021

@@ -963,6 +1024,11 @@
9631024
</ul>
9641025
</nav>
9651026

1027+
</li>
1028+
1029+
</ul>
1030+
</nav>
1031+
9661032
</li>
9671033

9681034
<li class="md-nav__item">
@@ -1060,20 +1126,26 @@ <h3 id="minimummaximum-values">Minimum/Maximum Values<a class="headerlink" href=
10601126
<p class="admonition-title">Info</p>
10611127
<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>
10621128
</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>
10641130
<div class="admonition info">
10651131
<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>
10671133
</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>
10691135
<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>
10741140
</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>
10771149
<h2 id="attributes">Attributes<a class="headerlink" href="#attributes" title="Permanent link">#</a></h2>
10781150
<p>The following attributes are available on each sensor</p>
10791151
<table>
@@ -1195,6 +1267,11 @@ <h2 id="attributes">Attributes<a class="headerlink" href="#attributes" title="Pe
11951267
<td>datetime</td>
11961268
<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>
11971269
</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>
11981275
</tbody>
11991276
</table>
12001277
<h2 id="services">Services<a class="headerlink" href="#services" title="Permanent link">#</a></h2>

0 commit comments

Comments
 (0)