Having observed the last period, I’ve found a pattern I would like to use in an automation.
So when the bedroom cover opens, and the light in the kitchen is on, and it is morning,it should turn on the coffee machine.
So I did this:
- id: '1582005662999'
alias: Kitchen - turn on coffeemachine when curtain goes up
description: ''
trigger:
- device_id: 2bf1e4e20e774e14b96e3d66b87c0a27
domain: cover
entity_id: cover.rullegardin_i_sovevaerelse
platform: device
type: opening
condition:
- after: 05:00
before: '12:00'
condition: time
- condition: state
entity_id: group.lys_koekken
state: 'on'
action:
- entity_id: switch.coffeemachine_relay
service: switch.turn_on
But I don’t see the switch getting turned on.
The curtain was opened via the IKEA remote.
The group was set to ‘on’ and the timeframe was correct, but no automation.
Will the automation be marked as triggered even if the conditions are false, or is it only when the conditions are met it’s marked? (just to narrow down there the problem is).
I’ll test more when I get home from work.