Browse Source

Moved HA settings to its own tab in web UI

pull/611/head
Xose Pérez 6 years ago
parent
commit
6ffdeb5020
4 changed files with 2393 additions and 2390 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +2
    -2
      code/espurna/homeassistant.ino
  3. +2385
    -2384
      code/espurna/static/index.html.gz.h
  4. +6
    -4
      code/html/index.html

BIN
code/espurna/data/index.html.gz View File


+ 2
- 2
code/espurna/homeassistant.ino View File

@ -152,7 +152,7 @@ String _haGetConfig() {
_haSendSwitch(i, config, type);
output += "\n" + type + ":\n";
output += type + ":\n";
bool first = true;
for (auto kv : config) {
if (first) {
@ -176,7 +176,7 @@ String _haGetConfig() {
_haSendMagnitude(i, config);
output += "\nsensor:\n";
output += "sensor:\n";
bool first = true;
for (auto kv : config) {
if (first) {


+ 2385
- 2384
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 6
- 4
code/html/index.html View File

@ -810,6 +810,8 @@
<div class="page">
<fieldset>
<legend>Discover</legend>
<div class="pure-g">
<label class="pure-u-1 pure-u-lg-1-4">Discover</label>
<div class="pure-u-1 pure-u-lg-1-4"><input type="checkbox" name="haEnabled" tabindex="14" /></div>
@ -826,11 +828,11 @@
<input class="pure-u-1 pure-u-lg-1-4" name="haPrefix" type="text" tabindex="15" />
</div>
<legend>Configuration</legend>
<div class="pure-g">
<div class="pure-u-0 pure-u-lg-1-4"></div>
<div class="pure-u-1-2 pure-u-lg-1-4"><button class="pure-button button-ha-config pure-u-23-24">Show HA config</button></div>
<div class="pure-u-0 pure-u-lg-1-4"></div>
<span class="pure-u-1 pure-u-lg-3-4" id="haConfig" name="haConfig"></span>
<div class="pure-u-1-2 pure-u-lg-1-4"><button class="pure-button button-ha-config pure-u-11-12">Show HA config</button></div>
<div class="pure-u-1 pure-u-lg-3-4"><span id="haConfig" name="haConfig"></span></div>
</div>


Loading…
Cancel
Save