You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: octoprint_tplinksmartplug/templates/tplinksmartplug_settings.jinja2
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,15 @@
90
90
</div>
91
91
</div>
92
92
</div>
93
+
<divclass="row-fluid">
94
+
<divclass="control-group">
95
+
<divclass="controls">
96
+
<labelclass="checkbox">
97
+
<inputtype="checkbox"title="{{ _('When enabled plugs with the option enabled will be automatically powered off during OctoPrint shutdown.') }}"data-toggle="tooltip"data-bind="checked: settings.settings.plugins.tplinksmartplug.event_on_shutdown_monitoring, tooltip: {}" /> {{ _('Shutdown Event Monitoring') }}
98
+
</label>
99
+
</div>
100
+
</div>
101
+
</div>
93
102
<divclass="row-fluid">
94
103
<divclass="control-group">
95
104
<divclass="controls">
@@ -221,7 +230,7 @@
221
230
<tr>
222
231
<td><divclass="controls"><labelclass="checkbox"><inputtype="checkbox"title="{{ _('When enabled the on and off commands will be sent to the plug using timers similar to the Kasa app. This is helpful for when you want to run a system command to cleanly shutdown your pi prior to power it off.') }}"data-toggle="tooltip"data-bind="checked: useCountdownRules, tooltip: {container: '#TPLinkPlugEditor'}"/> {{ _('Use Timers') }}</label></div></td>
223
232
<td></td>
224
-
<td></td>
233
+
<td><divclass="controls"><labelclass="checkbox"><inputtype="checkbox"title="{{ _('Automatically power off this plug when Shutdown Event Monitoring is enabled.') }}"data-toggle="tooltip"data-bind="checked: event_on_shutdown, enable: $root.settings.settings.plugins.tplinksmartplug.event_on_shutdown_monitoring(), tooltip: {container: '#TPLinkPlugEditor'}"disabled /> {{ _('Off with Shutdown') }}</label></div></td>
225
234
</tr>
226
235
<tr>
227
236
<td><divclass="controls"><labelclass="control-label">{{ _('Timer On Delay') }}</label><divclass="input-append"data-toggle="tooltip"data-bind="tooltip: {container: '#TPLinkPlugEditor'}"title="{{ _('Amount of time for Timer to wait before powering on.') }}"><inputtype="number"min="1"data-bind="value: countdownOnDelay, enable: useCountdownRules()"class="input input-mini"disabled /><spanclass="add-on">{{ _('secs') }}</span></div></div></td>
0 commit comments