Hi,
I’m trying to identify when the washing machine is finished.
My home-assistant configuration is based on Shelly 1PM with a power metering feature.
I have 2 automation:
- washing machine started - detect when washing machine power measure is more than 5W for 5 Minutes. when this happens the boolean input ‘washing_machine_running’ is change to ON. This is working as expected.
-
washing machine finished - detect when the power consumption is less than 3W for 1 minute and the boolean input is ON, then change the boolean to OFF and run a shell_command. I did check the power consumption and when the machine is ON the power consumption is 3 or more. when it is finished it is 2 or 3 for a few minutes and then it becomes 0.
This is the config:
- id: 'xxxxxxx'
alias: washing_machine finished and play announcement
description: detect when washing machine finished working
trigger:
- below: '3'
entity_id: sensor.shelly_shsw_pm_1_current_consumption
for: 'minutes: 1'
platform: numeric_state
condition:
- condition: state
entity_id: input_boolean.washing_machine_running
state: 'on'
action:
- data: {}
entity_id: input_boolean.washing_machine_running
service: input_boolean.turn_off
- data: {}
service: shell_command.kvisa
- service: logbook.log
data: {}
mode: single
I cant figure out why it is not working
Any help will be appreciated
Thanks.