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:
2026-02-19 10:56:34 +01:00
parent 1c8c319406
commit a8b71d99dd
2 changed files with 15 additions and 39 deletions

View File

@@ -16,21 +16,11 @@ esp32:
advanced:
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:
common: !include common/common.yaml
uart:
- id: cse7766_uart
rx_pin: 16
baud_rate: 4800
parity: EVEN
@@ -120,6 +110,7 @@ output:
sensor:
- platform: cse7766
uart_id: cse7766_uart
current:
name: Current
id: a_sensor
@@ -143,10 +134,15 @@ sensor:
then:
- light.turn_off: switch_led
energy:
name: Energy"
name: Energy
id: wh_sensor
filters:
- throttle_average: ${update_interval}
power_factor:
name: Power Factor
id: power_factor
filters:
- throttle_average: ${update_interval}
- platform: total_daily_energy
name: Total Daily Energy
@@ -155,12 +151,6 @@ sensor:
- multiply: 0.001
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:
- platform: template
name: Relay
@@ -180,7 +170,6 @@ switch:
on_turn_on:
- delay: 500ms
- switch.turn_off: relay_on # bi-stable relay so no need to keep on
- light.turn_on: switch_led
interlock: [relay_off]
- platform: gpio
@@ -191,7 +180,6 @@ switch:
on_turn_on:
- delay: 500ms
- switch.turn_off: relay_off # bi-stable relay so no need to keep on
- light.turn_off: switch_led
interlock: [relay_on]
time: