Hi,
I’m trying to start my dishwasher when I’ve enough solar energy.
I have two uses cases:
- The diswhasher is ready but there is not enough solar excedent
- The solar excedent and the dishwasher becomes ready.
The usecase 1 is perfect and already working
The usecase 2 is partially working: It does start instantly if their is enough solar power, but if it was just closed at some “peak” of energy, it will consider ready.
is there a way to add, as a condition(not a trigger) that it must be in this state for a given amount of time?
alias: Start dishwasher when enough power and dishes dirty
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.grid_export_power
for:
hours: 0
minutes: 5
seconds: 0
above: 2.0
- platform: state
entity_id:
- binary_sensor.lave_vaisselle_door
to: "off"
condition:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.vaisselle_sale
state: "on"
- condition: state
entity_id: binary_sensor.lave_vaisselle_door
state: "off"
- condition: state
entity_id: sensor.lave_vaisselle_operation_state
state: Ready
- condition: numeric_state
entity_id: sensor.grid_export_power
above: 2.0
action:
- service: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.lave_vaisselle_power
- delay: "00:00:10"
- service: home_connect.start_program
data:
device_id: af59a88273788a4573d17914afb5eff4
program: Dishcare.Dishwasher.Program.Auto2
mode: single
I’m looking for some equivalent of the “for” of the trigger.