Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 109034

Automation with shelly not working - washing machine

$
0
0

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:

  1. 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.
  2. 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 :thinking:
Any help will be appreciated :pray:

Thanks.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 109034

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>