@ATWindsor wrote:
Setup; I have an input.boolean, that is on when the washing machine goes on (the logic for that is in another automation). I want to turn that input boolean off if the following conditions are met:
- The power is below 20 watts for more then 2 minutes
OR- The power is below 40 watts for more then 2 minutes AND the machine (that is the input boolean) has been on for at least and hour.
I tried the automation underneath, but it seems like “for:” is not allowed for “numeric state” only “state”. Any suggestions on how to solve this?
- alias: Vaskemaskin av #triggers when the machhine goes on trigger: - platform: state entity_id: input_boolean.kjellerbad_vaskemaskin to: 'on' condition: condition: or #conditon 1 conditions: - condition: numeric_state entity_id: sensor.kjellerbad_vaskemaskin_power below: 20 for: seconds: 120 #condition 2 - condition: and conditions: - condition: numeric_state entity_id: sensor.kjellerbad_vaskemaskin_power below: 40 for: seconds: 120 - condition: state entity_id: input_boolean.kjellerbad_vaskemaskin state: 'on' for: minutes: 60 action: service: input_boolean.turn_off entity_id: input_boolean.kjellerbad_vaskemaskin
Posts: 1
Participants: 1