Hey,
after two days of tinkering around and reading several docs I’m afraid I can’t find a solution which satisfies me, since I’m rather new in the automation game:
I’ve got a Ikea Tradfri 5-button remote which I’m using with the help of the blueprint from epmatt to control my bedroom ceiling light.
So far no problem, but I’ve got also two (grouped) bedside lights which I trigger with another on/off switch located next to the bed, whilst the 5-button remote is placed next to the door of the room.
When I get up in the morning, I (or my alarm autmation) turns the bedside lights on, which I would like to be able to turn off using the 5-button remote on my way out of the room.
But I don’t want to turn the ceiling light on when turning the bediside lights off or wan’t to turn the bedisde lights on when using the 5-button remote.
A short table to clarify my plan:
State of ceiling light:
Off
On
On
Off
State of bedside light:
Off
Off
On
On
Action of remote:
Turns on ceiling light
Turns on ceiling light
Turns off ceiling & bedside light
Turns off bedside light
I managed to get it to work with to additional automations but without using the blueprint (to simple control the light temperature and brigthness):
The automation to turn the light on:
alias: Automatisierung Test an Schlafzimmer
description: ''
trigger:
- device_id: 49c4e4ffa55aef50f7b9e1396f1f0fc3
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition:
- condition: state
entity_id: light.lampe_schlafzimmer_decke
state: 'off'
- condition: state
entity_id: light.schlafzimmer_nachttisch_leuchten
state: 'off'
action:
- type: turn_on
device_id: e418671b88493dbb0598e89f0f36f16b
entity_id: light.lampe_schlafzimmer_decke
domain: light
mode: single
And the automation to turn the light(s) off:
alias: Automatisierung Test aus Schlafzimmer
description: ''
trigger:
- device_id: 49c4e4ffa55aef50f7b9e1396f1f0fc3
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition:
- condition: or
conditions:
- condition: state
entity_id: light.lampe_schlafzimmer_decke
state: 'on'
- condition: state
entity_id: light.schlafzimmer_nachttisch_leuchten
state: 'on'
action:
- type: turn_off
device_id: e418671b88493dbb0598e89f0f36f16b
entity_id: light.lampe_schlafzimmer_decke
domain: light
- type: turn_off
device_id: 288a9f2eb9eb9006b922aee855fb7485
entity_id: light.lampe_schlafzimmer_nachttisch_links
domain: light
- type: turn_off
device_id: 49995da6d0d1b5092596bf117c308d6c
entity_id: light.lampe_schlafzimmer_nachttisch_rechts
domain: light
mode: single
Is it possible to get the function I want into with the capabilities of the blueprint?
I tried to add to add an cascaded and / or condition, but I’m afraid that that’s not possible.
Which way would you suggest to solve my little puzzle? ![:smiley: :smiley:]()
Thanks in advance
Thomas
1 post - 1 participant
Read full topic