From 370f6966e842217c2e1addf03b5c108c2c783588 Mon Sep 17 00:00:00 2001 From: gn0st1c Date: Fri, 16 Mar 2018 05:48:21 +0300 Subject: [PATCH 1/3] Update platformio.ini typo tonbux --- code/platformio.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/platformio.ini b/code/platformio.ini index 7cce6271..393eb4c9 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -1473,7 +1473,7 @@ upload_port = "${env.ESPURNA_IP}" upload_flags = --auth=${env.ESPURNA_AUTH} --port 8266 extra_scripts = ${common.extra_scripts} -[env:tunbox-powerstrip02] +[env:tonbux-powerstrip02] platform = ${common.platform} framework = arduino board = esp01_1m @@ -1484,7 +1484,7 @@ build_flags = ${common.build_flags} -DTONBUX_POWERSTRIP02 monitor_baud = 115200 extra_scripts = ${common.extra_scripts} -[env:tunbox-powerstrip02-ota] +[env:tonbux-powerstrip02-ota] platform = ${common.platform} framework = arduino board = esp01_1m From e4e19426ede69256140b2d09f14ba0ac069a1499 Mon Sep 17 00:00:00 2001 From: Ryan Jarvis Date: Sat, 17 Mar 2018 10:56:27 -0700 Subject: [PATCH 2/3] Fix some typos in the Hass info --- code/espurna/homeassistant.ino | 2 +- code/html/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/homeassistant.ino b/code/espurna/homeassistant.ino index f3a400d1..14be576b 100644 --- a/code/espurna/homeassistant.ino +++ b/code/espurna/homeassistant.ino @@ -26,7 +26,7 @@ void _haSendMagnitude(unsigned char i, JsonObject& config) { config["platform"] = "mqtt"; config["device_class"] = "sensor"; config["state_topic"] = mqttTopic(magnitudeTopicIndex(i).c_str(), false); - config["unit_of_measurement"] = magnitudeUnits(type); + config["unit_of_measurement"] = String("\"") + magnitudeUnits(type) + String("\""); } diff --git a/code/html/index.html b/code/html/index.html index f791a4f3..31619cf5 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -857,7 +857,7 @@
These are the settings you should copy to your Home Assistant "configuration.yaml" file. - If any of the sections below (switch, light, sensor) already exists, do not dupplicate it, + If any of the sections below (switch, light, sensor) already exists, do not duplicate it, simply copy the contents of the section below the ones already present.
From 2ea551d417b627ffbf258ea89d2f1c393ae6ccf3 Mon Sep 17 00:00:00 2001 From: gn0st1c Date: Sun, 18 Mar 2018 16:36:18 +0300 Subject: [PATCH 3/3] set KMC HLW8012 upstream voltage resistor set KMC HLW8012 upstream voltage resistor to 2 * 1M --- code/espurna/config/hardware.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 507fd916..68722f99 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -1458,6 +1458,8 @@ #define HLW8012_CF1_PIN 5 #define HLW8012_CF_PIN 4 + #define HLW8012_VOLTAGE_R_UP ( 2 * 1000000 ) // Upstream voltage resistor + // ----------------------------------------------------------------------------- // Euromate (?) Wifi Stecker Shuko // https://www.obi.de/hausfunksteuerung/wifi-stecker-schuko/p/2291706