mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-03-03 07:14:10 +01:00
Fix and improve POW dishwasher and washer configs
- Remove redundant interval block overriding status_led behavior - Add UART id and reference it explicitly in cse7766 - Replace manual power factor template with native cse7766 power_factor sensor - Remove redundant switch_led control from bi-stable relay actions - Fix stray quote in energy sensor name (dishwasher) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,21 +16,11 @@ esp32:
|
|||||||
advanced:
|
advanced:
|
||||||
minimum_chip_revision: "3.1"
|
minimum_chip_revision: "3.1"
|
||||||
|
|
||||||
interval:
|
|
||||||
- interval: 30s
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
wifi.connected:
|
|
||||||
then:
|
|
||||||
- light.turn_on: wifi_status_led
|
|
||||||
else:
|
|
||||||
- light.turn_off: wifi_status_led
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
|
|
||||||
uart:
|
uart:
|
||||||
|
- id: cse7766_uart
|
||||||
rx_pin: 16
|
rx_pin: 16
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
parity: EVEN
|
parity: EVEN
|
||||||
@@ -120,6 +110,7 @@ output:
|
|||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
uart_id: cse7766_uart
|
||||||
current:
|
current:
|
||||||
name: Current
|
name: Current
|
||||||
id: a_sensor
|
id: a_sensor
|
||||||
@@ -143,10 +134,15 @@ sensor:
|
|||||||
then:
|
then:
|
||||||
- light.turn_off: switch_led
|
- light.turn_off: switch_led
|
||||||
energy:
|
energy:
|
||||||
name: Energy"
|
name: Energy
|
||||||
id: wh_sensor
|
id: wh_sensor
|
||||||
filters:
|
filters:
|
||||||
- throttle_average: ${update_interval}
|
- throttle_average: ${update_interval}
|
||||||
|
power_factor:
|
||||||
|
name: Power Factor
|
||||||
|
id: power_factor
|
||||||
|
filters:
|
||||||
|
- throttle_average: ${update_interval}
|
||||||
|
|
||||||
- platform: total_daily_energy
|
- platform: total_daily_energy
|
||||||
name: Total Daily Energy
|
name: Total Daily Energy
|
||||||
@@ -155,12 +151,6 @@ sensor:
|
|||||||
- multiply: 0.001
|
- multiply: 0.001
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
|
|
||||||
- platform: template
|
|
||||||
name: Power Factor
|
|
||||||
device_class: power_factor
|
|
||||||
id: power_factor
|
|
||||||
lambda: return id(w_sensor).state / id(v_sensor).state / id(a_sensor).state;
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Relay
|
name: Relay
|
||||||
@@ -180,7 +170,6 @@ switch:
|
|||||||
on_turn_on:
|
on_turn_on:
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
- switch.turn_off: relay_on # bi-stable relay so no need to keep on
|
- switch.turn_off: relay_on # bi-stable relay so no need to keep on
|
||||||
- light.turn_on: switch_led
|
|
||||||
interlock: [relay_off]
|
interlock: [relay_off]
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -191,7 +180,6 @@ switch:
|
|||||||
on_turn_on:
|
on_turn_on:
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
- switch.turn_off: relay_off # bi-stable relay so no need to keep on
|
- switch.turn_off: relay_off # bi-stable relay so no need to keep on
|
||||||
- light.turn_off: switch_led
|
|
||||||
interlock: [relay_on]
|
interlock: [relay_on]
|
||||||
|
|
||||||
time:
|
time:
|
||||||
|
|||||||
@@ -16,21 +16,11 @@ esp32:
|
|||||||
advanced:
|
advanced:
|
||||||
minimum_chip_revision: "3.1"
|
minimum_chip_revision: "3.1"
|
||||||
|
|
||||||
interval:
|
|
||||||
- interval: 30s
|
|
||||||
then:
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
wifi.connected:
|
|
||||||
then:
|
|
||||||
- light.turn_on: wifi_status_led
|
|
||||||
else:
|
|
||||||
- light.turn_off: wifi_status_led
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
|
|
||||||
uart:
|
uart:
|
||||||
|
- id: cse7766_uart
|
||||||
rx_pin: 16
|
rx_pin: 16
|
||||||
baud_rate: 4800
|
baud_rate: 4800
|
||||||
parity: EVEN
|
parity: EVEN
|
||||||
@@ -120,6 +110,7 @@ output:
|
|||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: cse7766
|
- platform: cse7766
|
||||||
|
uart_id: cse7766_uart
|
||||||
current:
|
current:
|
||||||
name: Current
|
name: Current
|
||||||
id: a_sensor
|
id: a_sensor
|
||||||
@@ -147,6 +138,11 @@ sensor:
|
|||||||
id: wh_sensor
|
id: wh_sensor
|
||||||
filters:
|
filters:
|
||||||
- throttle_average: ${update_interval}
|
- throttle_average: ${update_interval}
|
||||||
|
power_factor:
|
||||||
|
name: Power Factor
|
||||||
|
id: power_factor
|
||||||
|
filters:
|
||||||
|
- throttle_average: ${update_interval}
|
||||||
|
|
||||||
- platform: total_daily_energy
|
- platform: total_daily_energy
|
||||||
name: Total Daily Energy
|
name: Total Daily Energy
|
||||||
@@ -155,12 +151,6 @@ sensor:
|
|||||||
- multiply: 0.001
|
- multiply: 0.001
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
|
|
||||||
- platform: template
|
|
||||||
name: Power Factor
|
|
||||||
device_class: power_factor
|
|
||||||
id: power_factor
|
|
||||||
lambda: return id(w_sensor).state / id(v_sensor).state / id(a_sensor).state;
|
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: Relay
|
name: Relay
|
||||||
@@ -180,7 +170,6 @@ switch:
|
|||||||
on_turn_on:
|
on_turn_on:
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
- switch.turn_off: relay_on # bi-stable relay so no need to keep on
|
- switch.turn_off: relay_on # bi-stable relay so no need to keep on
|
||||||
- light.turn_on: switch_led
|
|
||||||
interlock: [relay_off]
|
interlock: [relay_off]
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -191,7 +180,6 @@ switch:
|
|||||||
on_turn_on:
|
on_turn_on:
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
- switch.turn_off: relay_off # bi-stable relay so no need to keep on
|
- switch.turn_off: relay_off # bi-stable relay so no need to keep on
|
||||||
- light.turn_off: switch_led
|
|
||||||
interlock: [relay_on]
|
interlock: [relay_on]
|
||||||
|
|
||||||
time:
|
time:
|
||||||
|
|||||||
Reference in New Issue
Block a user