Added possibility to refresh individual Zigbee attributes.
This commit is contained in:
parent
7cf6849e5d
commit
95ff5b81c0
2 changed files with 59 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue