* Add Node card * Add Node selection dropdown * Add refresh node service and auto visible options * Add replace node and replace failed node to node options * Add node information * Add node group configuration * Add Wakeup and fix group associations * Make Node info expandable * Add refresh entity * Cleanup * Add set_config and print_config parameter * styling * indention * lint error * thank you @adgelbfish * Hide correctly * Add Entity info * Indents * Add Group fetched from API * Add API to get config options * Initialize empty array * Add config handling * add OZW log * missing style * Bug in other groupmembers * Fix set-configparameter * Fix set-association * Tweaks to associations * Add usercodes * Tweaks * Tweaks * Target node text * Move computed servicedata to property * Start splitting * Split part 2, network * Splitting 3 * cleanup * refresh on setting with delay * fix servicedata * Splitting 4 groups * Splitting 5 config and wakeup * Splitting done. * Final tweaks, lint and removal of logging
53 lines
1.1 KiB
HTML
53 lines
1.1 KiB
HTML
<link rel="import" href="../../bower_components/polymer/polymer.html">
|
|
<link rel="import" href="../../bower_components/paper-card/paper-card.html">
|
|
<link rel="import" href="../../bower_components/paper-button/paper-button.html">
|
|
|
|
<dom-module id='ozw-log'>
|
|
<template>
|
|
<style include="iron-flex ha-style">
|
|
.content {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
paper-card {
|
|
display: block;
|
|
margin: 0 auto;
|
|
max-width: 600px;
|
|
}
|
|
</style>
|
|
<paper-card heading='OZW Log'>
|
|
<div class='help-text'>
|
|
<pre>[[ozwLogs]]</pre>
|
|
</div>
|
|
<div class="card-actions">
|
|
<paper-button raised on-tap='refreshLog'>Refresh</paper-button>
|
|
</div>
|
|
</paper-card>
|
|
</template>
|
|
</dom-module>
|
|
<script>
|
|
|
|
Polymer({
|
|
is: 'ozw-log',
|
|
|
|
properties: {
|
|
hass: {
|
|
type: Object,
|
|
},
|
|
|
|
ozwLogs: {
|
|
type: String,
|
|
value: ''
|
|
},
|
|
},
|
|
|
|
refreshLog: function () {
|
|
this.ozwLogs = 'Loading ozw log...';
|
|
this.hass.callApi('GET', 'zwave/ozwlog')
|
|
.then(function (info) {
|
|
this.ozwLogs = info;
|
|
}.bind(this));
|
|
},
|
|
});
|
|
</script>
|