Added possibility to refresh individual Zigbee attributes.

This commit is contained in:
Ziver Koc 2022-05-23 23:19:21 +02:00
parent 7cf6849e5d
commit 95ff5b81c0
2 changed files with 59 additions and 4 deletions

View file

@ -151,10 +151,11 @@
<table class="table table-hover table-condensed">
<thead>
<th>ID</th>
<th>Name</th>
<th>Last Value</th>
<th>Last Report Time</th>
<th>ID</th>
<th>Name</th>
<th>Last Value</th>
<th>Last Report Time</th>
<th></th>
</thead>
{{#.getAttributes()}}
<tr>
@ -162,6 +163,20 @@
<td>{{.getName()}}</td>
<td>{{.getLastValue()}}</td>
<td><span class="timestamp">{{.getLastReportTime().getTimeInMillis()}}</span></td>
<td>
<form method="POST">
<input type="hidden" name="nodeAddress" value="{{.cluster.zigbeeEndpoint.node.getIeeeAddress()}}">
<input type="hidden" name="endpointId" value="{{.cluster.zigbeeEndpoint.getEndpointId()}}">
<input type="hidden" name="clusterId" value="{{.cluster.getClusterId()}}">
<input type="hidden" name="attributeId" value="{{.getId()}}">
<div class="btn-toolbar pull-right">
<button type="submit" class="btn btn-primary btn-xs" name="action" value="refresh">
<span class="glyphicon glyphicon-refresh"></span>
</button>
</div>
</form>
</td>
</tr>
{{/.getAttributes()}}
</table>