Hi
I have started working on using automation within HA, have managed to get door sensors to work as triggers andf eel comfortable with that. My latest attempt is to turn off my dihswasher off when it is less than 3watts after x amount of time. I did a lot of searching and between the UI and yaml editing I came up with the bit below. Only it is not working. It never triggers despite the dishwasher plug being on and at below 5 watts for the last hour.
Here is the Yaml stuff
"alias: Dishwasher Auto Off
description: “”
trigger:
- platform: numeric_state
entity_id: sensor.smart_plug_mss310_power_w_main_channel_3
for:
hours: 0
minutes: 3
seconds: 0
below: 5
condition: []
action: - type: turn_off
device_id: device id
entity_id: entity id
domain: switch
mode: single"