diff options
-rw-r--r-- | kauf-plug-lite.yaml | 15 | ||||
-rw-r--r-- | kauf-plug-minimal.yaml | 2 | ||||
-rw-r--r-- | kauf-plug.yaml | 8 |
3 files changed, 15 insertions, 10 deletions
diff --git a/kauf-plug-lite.yaml b/kauf-plug-lite.yaml index ba390ce..fab1985 100644 --- a/kauf-plug-lite.yaml +++ b/kauf-plug-lite.yaml @@ -6,7 +6,7 @@ substitutions: # in your local yaml file by redefining them. # # packages: - # kauf.plf10: github://KaufHA/PLF10/kauf-plug.yaml + # kauf.plf10: github://KaufHA/PLF10/kauf-plug-lite.yaml # name: kauf-plug # **** CHANGE DEVICE NAME TO SOMETHING UNIQUE PER DEVICE. RENAME YAML FILE TO SAME NAME. **** @@ -15,7 +15,7 @@ substitutions: # https://esphome.io/components/esphome.html#esphome-creators-project project_name: Kauf.PLF10 - project_ver_num: "1.99" + project_ver_num: "2.00" project_ver_let: l # https://esphome.io/components/switch/gpio.html?highlight=restore_mode @@ -70,6 +70,7 @@ substitutions: sub_change_mode_every: "1" sub_update_interval: 10s sub_initial_mode: CURRENT + select_monitor_mode_initial_option: "10s P / 40s V,I" # GPIO definitions sub_pm_sel_pin: GPIO12 @@ -171,7 +172,7 @@ ota: # https://esphome.io/components/web_server.html web_server: - # local: true + local: true # https://esphome.io/components/binary_sensor/index.html @@ -307,7 +308,7 @@ script: - id: script_setting_reboot mode: restart # only reboot plug settings are static for 10s. Another change restarts timer. then: - - lambda: ESP_LOGD("kauf-plug.yaml","Setting change requiring reboot detected, rebooting in 10 seconds to effect change."); + - lambda: ESP_LOGCONFIG("kauf-plug.yaml","Setting change requiring reboot detected, rebooting in 10 seconds to effect change."); - delay: 10s - button.press: restart_button @@ -719,7 +720,8 @@ select: - " 2s P,I Only" - " 2s P,V Only" - "YAML Configured" - initial_option: "10s P / 40s V,I" + - " 2s P / 8s V,I" + initial_option: $select_monitor_mode_initial_option restore_value: true icon: mdi:wrench-clock entity_category: config @@ -741,6 +743,9 @@ select: id(hlw_main).set_update_interval(10000); id(hlw_main).set_change_mode_every(4294967295); id(hlw_main).set_initial_mode(hlw8012::HLW8012_INITIAL_MODE_VOLTAGE); } + else if ( x == " 2s P / 8s V,I" ) { + id(hlw_main).set_update_interval(2000); + id(hlw_main).set_change_mode_every(1); } else if ( x == " 2s P,I Only" ) { id(hlw_main).set_update_interval(2000); id(hlw_main).set_change_mode_every(4294967295); diff --git a/kauf-plug-minimal.yaml b/kauf-plug-minimal.yaml index d46a437..a2ad1a1 100644 --- a/kauf-plug-minimal.yaml +++ b/kauf-plug-minimal.yaml @@ -49,7 +49,7 @@ esphome: # https://esphome.io/components/esphome.html#esphome-creators-project project: name: "Kauf.PLF10" - version: "1.99(m)" + version: "2.00(m)" # https://esphome.io/components/esp8266.html diff --git a/kauf-plug.yaml b/kauf-plug.yaml index b92196a..ab5a800 100644 --- a/kauf-plug.yaml +++ b/kauf-plug.yaml @@ -6,7 +6,7 @@ substitutions: # in your local yaml file by redefining them. # # packages: - # kauf.plf10: github://KaufHA/PLF10/kauf-plug-lite.yaml + # kauf.plf10: github://KaufHA/PLF10/kauf-plug.yaml # name: kauf-plug # **** CHANGE DEVICE NAME TO SOMETHING UNIQUE PER DEVICE. RENAME YAML FILE TO SAME NAME. **** @@ -15,7 +15,7 @@ substitutions: # https://esphome.io/components/esphome.html#esphome-creators-project project_name: Kauf.PLF10 - project_ver_num: "1.992" + project_ver_num: "2.00" project_ver_let: y # https://esphome.io/components/switch/gpio.html?highlight=restore_mode @@ -144,8 +144,8 @@ external_components: - source: type: git url: https://github.com/KaufHA/common - #ref: v2022.11.01 - refresh: 0s + ref: v2022.11.18 + refresh: 365250d # https://esphome.io/components/wifi.html |