Skip to content

Commit

Permalink
Added setpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Oct 14, 2023
1 parent 86d2b47 commit 6431804
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h5 class="modal-title">Description {{ v['name']['name'].replace("_", " ") }}</h
{% if v['customData']['domain'] == 'Scene' %}
<option {% if v['type'].replace('action.devices.types.', '').lower() == 'scene' %}selected {% endif %} value="scene">Scene</option>
{% endif %}
{% if v['customData']['domain'] == 'Thermostat' %}
{% if (v['customData']['domain'] in ['Thermostat', 'Setpoint']) %}
<option {% if v['type'].replace('action.devices.types.', '').lower() == 'thermostat' %}selected {% endif %} value="thermostat">Thermostat</option>
{% endif %}
<option {% if v['type'].replace('action.devices.types.', '').lower() == 'light' %}selected {% endif %} value="light">Light</option>
Expand All @@ -160,7 +160,7 @@ <h5 class="modal-title">Description {{ v['name']['name'].replace("_", " ") }}</h
</select>
</div>
</div>
{% if v['customData']['domain'] == 'Thermostat' %}
{% if (v['customData']['domain'] in ['Thermostat', 'Setpoint']) %}
<div class="row mb-3">
<label for="inputText" class="col-sm-3 col-form-label">minThreehold</label>
<div class="col-sm-2">
Expand All @@ -182,15 +182,15 @@ <h5 class="modal-title">Description {{ v['name']['name'].replace("_", " ") }}</h
</div>
</div>
{% endif %}
{% if (v['customData']['domain'] == 'Thermostat' and 'actual_temp_idx' in v['customData']) %}
{% if (v['customData']['domain'] in ['Thermostat', 'Setpoint'] and 'actual_temp_idx' in v['customData']) %}
<div class="row mb-3">
<label for="inputText" class="col-sm-3 col-form-label">actual_temp_idx</label>
<div class="col-sm-2">
<input type="number" class="form-control" value="{{ v['customData']['actual_temp_idx'] }}">
</div>
</div>
{% endif %}
{% if (v['customData']['domain'] == 'Thermostat' and 'selector_modes_idx' in v['customData']) %}
{% if (v['customData']['domain'] in ['Thermostat', 'Setpoint'] and 'selector_modes_idx' in v['customData']) %}
<div class="row mb-3">
<label for="inputText" class="col-sm-3 col-form-label">selector_modes_idx</label>
<div class="col-sm-2">
Expand Down Expand Up @@ -314,4 +314,4 @@ <h5 class="modal-title">Description {{ v['name']['name'].replace("_", " ") }}</h
setInterval(refreshDimmers, updateInterval, updateDimmers_block)
setInterval(refreshSelectors, updateInterval, updateSelectors_block)

</script>
</script>

0 comments on commit 6431804

Please sign in to comment.