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 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.
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