New POW devices - dishwasher and washer

This commit is contained in:
2026-02-11 23:03:12 +01:00
parent 86051c9f1a
commit 9812f5ed03
2 changed files with 47 additions and 61 deletions

View File

@@ -1,28 +1,20 @@
substitutions: substitutions:
device: pow-2 device: pow-dishwasher
name: POW 2 name: Dishwasher POW
comment: "DEV" comment: Living Room & Kitchen
update_interval: 10s update_interval: 10s
esphome: esphome:
name: mcu-${device} name: mcu-${device}
friendly_name: ${name} friendly_name: ${name}
comment: ${comment} comment: ${comment}
on_boot: # Set the initial state of the template switch to the actual relay state. This will NOT change the state.
priority: 250.0 # Wait until WiFi is connected to allow the sensor some time to settle
then:
- if:
condition:
lambda: 'return id(v_sensor).state > 10;'
then:
- switch.turn_on: relay_1
else:
- switch.turn_off: relay_1
esp32: esp32:
board: nodemcu-32s variant: esp32
framework: framework:
type: esp-idf type: esp-idf
advanced:
minimum_chip_revision: "3.1"
interval: interval:
- interval: 30s - interval: 30s
@@ -79,7 +71,7 @@ binary_sensor:
lambda: |- lambda: |-
if (isnan(id(w_sensor).state)) { if (isnan(id(w_sensor).state)) {
return {}; return {};
} else if (id(w_sensor).state > 4) { } else if (id(w_sensor).state > 2) {
// Running // Running
return true; return true;
} else { } else {
@@ -173,21 +165,13 @@ switch:
- platform: template - platform: template
name: Relay name: Relay
optimistic: true optimistic: true
restore_mode: ALWAYS_ON
id: relay_1 id: relay_1
turn_off_action:
- switch.turn_on: relay_off
turn_on_action: turn_on_action:
- switch.turn_on: relay_on - switch.turn_on: relay_on
- platform: gpio turn_off_action:
restore_mode: ALWAYS_OFF - switch.turn_on: relay_off
internal: true
id: relay_off
pin: 4
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]
- platform: gpio - platform: gpio
restore_mode: ALWAYS_OFF restore_mode: ALWAYS_OFF
internal: true internal: true
@@ -199,7 +183,16 @@ switch:
- light.turn_on: switch_led - light.turn_on: switch_led
interlock: [relay_off] interlock: [relay_off]
- platform: gpio
restore_mode: ALWAYS_OFF
internal: true
id: relay_off
pin: 4
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: time:
- platform: homeassistant - !include common/time/homeassistant.yaml
id: ha_time
timezone: Europe/Bratislava

View File

@@ -1,28 +1,20 @@
substitutions: substitutions:
device: pow-1 device: pow-washer
name: POW 1 name: Washer POW
comment: "DEV" comment: Washroom
update_interval: 10s update_interval: 10s
esphome: esphome:
name: mcu-${device} name: mcu-${device}
friendly_name: ${name} friendly_name: ${name}
comment: ${comment} comment: ${comment}
on_boot: # Set the initial state of the template switch to the actual relay state. This will NOT change the state.
priority: 250.0 # Wait until WiFi is connected to allow the sensor some time to settle
then:
- if:
condition:
lambda: 'return id(v_sensor).state > 10;'
then:
- switch.turn_on: relay_1
else:
- switch.turn_off: relay_1
esp32: esp32:
board: nodemcu-32s variant: esp32
framework: framework:
type: esp-idf type: esp-idf
advanced:
minimum_chip_revision: "3.1"
interval: interval:
- interval: 30s - interval: 30s
@@ -173,21 +165,13 @@ switch:
- platform: template - platform: template
name: Relay name: Relay
optimistic: true optimistic: true
restore_mode: ALWAYS_ON
id: relay_1 id: relay_1
turn_off_action:
- switch.turn_on: relay_off
turn_on_action: turn_on_action:
- switch.turn_on: relay_on - switch.turn_on: relay_on
- platform: gpio turn_off_action:
restore_mode: ALWAYS_OFF - switch.turn_on: relay_off
internal: true
id: relay_off
pin: 4
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]
- platform: gpio - platform: gpio
restore_mode: ALWAYS_OFF restore_mode: ALWAYS_OFF
internal: true internal: true
@@ -199,7 +183,16 @@ switch:
- light.turn_on: switch_led - light.turn_on: switch_led
interlock: [relay_off] interlock: [relay_off]
- platform: gpio
restore_mode: ALWAYS_OFF
internal: true
id: relay_off
pin: 4
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: time:
- platform: homeassistant - !include common/time/homeassistant.yaml
id: ha_time
timezone: Europe/Bratislava