Hello,
It work some times and mostly not.
The above code was for test only so I set short times to check settings. Here is my final configuration.
I want to get google home device announce that wash is done. For this I have set following as my understanding.
- When machine starts, it takes 2- 5 watts while you set timer etc.
- When machine start washing it takes around 190-230 watts until completed.
- in between, it takes 6-5 watts again for water drain and refill.
So I have set that if machine take power more than 1 watt for atleast 10 minutes or more. It should trigger and added condition that power must be less than .3 for 30 seconds to run actions.
Because when machine is started, it takes more than 1 watt. and when it complete it takes 0 watts.
Now its not running and I don’t know why. Is there any way to troubleshoot? So I am making any mistake in my configuration?
Please advice.
- id: '1622563811541'
alias: 'Washing Machine automation '
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.sonoff_1000000_power
attribute: power
for: 00:10:00
above: '1'
condition: []
action:
- wait_for_trigger:
- platform: numeric_state
entity_id: sensor.sonoff_1000000_power
below: '.3'
for: 00:00:30
attribute: power
continue_on_timeout: false
- service: media_player.volume_set
target:
entity_id:
- media_player.kitchen_speaker
- media_player.bedroom_speaker
- media_player.office_speaker
data:
volume_level: 1
- wait_template: 00:00:15
- service: tts.google_translate_say
data:
message: washing done
entity_id: media_player.bedroom_speaker
- service: tts.google_translate_say
data:
entity_id: media_player.kitchen_speaker
message: washing done
- service: notify.mobile_app_iphone
data:
title: Washing is done
message: Take of the cloths from machine
- service: switch.turn_off
target:
entity_id: switch.sonoff_1000000
mode: restart