My automation won’t start.
It is enabled and if I click on run actions it works perfect.
But it won’t start. The trigger never fires.
Can anyone help. What am I missing?
Its a simple automation.
If sensor numeric state is below 50% then fire action.
YAML code:
alias: water
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.xiaomi_miflora_moisture
for:
hours: 0
minutes: 0
seconds: 1
below: '50'
condition:
- condition: state
entity_id: switch.lumi_lumi_plug_mmeu01_on_off
state: 'Off'
action:
- service: switch.turn_on
target:
device_id: 19ceb5c376dcdd0af98ea9fa70ba2f29
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- service: switch.turn_off
target:
device_id: 19ceb5c376dcdd0af98ea9fa70ba2f29
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
mode: single
initial_state: 'on'