sfkjkjkjb
(lkvfbicv)
1
Is anyone able to help me achieve the following?
motion sensor detections motion, lights flash red twice then go to white / on.
using develop tool I can see this when changing bulb to red
"entity_id": "light.innr_xxxxx_lighstrip",
"state": "on",
"attributes": {
"min_mireds": 140,
"max_mireds": 650,
"effect_list": [
"colorloop"
],
"supported_color_modes": [
"color_temp",
"hs",
"xy"
],
"color_mode": "xy",
"brightness": 51,
"hs_color": [
0,
100
],
"rgb_color": [
255,
0,
0
],
"xy_color": [
0.701,
0.299
]
but not sure how to automate this.
sfkjkjkjb
(lkvfbicv)
2
It’s all working via Conbee stick and Deconz, can control it fine via sliders and colour wheel etc, but cant get automation to work.
I’ve tried using the service but it doesn’t do anything
and I can see attributes
Can make it flash, when using “device” but cant get colour to change, not sure what I’m missing.
Hellis81
(Hellis81)
3
This should make it turn red.
service: light.turn_on
target:
entity_id: light.innr_xxxxx_lighstrip
data:
rgb_color:
- 255
- 0
- 0
not sure what you mean by “flash”, does that mean turn off? Change color to white?
sfkjkjkjb
(lkvfbicv)
4
ah progress this does indeed make it turn red, thanks. i can build from this.
sfkjkjkjb
(lkvfbicv)
5
I want to when motion is detection by sensor
set light to RED and then off then RED (like a quick on and off and on = flash)
Then set it to like a normal white afterwards
sfkjkjkjb
(lkvfbicv)
6
i think my problem was not having it like this
but instead like this
255,0,0
as It seems to be responding to my changes better now.
Hellis81
(Hellis81)
7
I think you could use [255,0,0]
.
Anyways… This is probably what you want.
alias: New Automation
description: ''
mode: single
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor
to: 'on'
condition: []
action:
- service: light.turn_on
target:
entity_id: light.innr_xxxxx_lighstrip
data:
rgb_color:
- 255
- 0
- 0
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_off
target:
entity_id: light.innr_xxxxx_lighstrip
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.innr_xxxxx_lighstrip
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_on
target:
entity_id: light.innr_xxxxx_lighstrip
data:
rgb_color:
- 255
- 255
- 255
now you just need to replace the xxxxx with masterbedroom.
sfkjkjkjb
(lkvfbicv)
8
thank you so much for your help.
Now I have the bones, I need to tinker with time of day and brightness and not in the middle of the night etc.
sfkjkjkjb
(lkvfbicv)
9
the problem i have is when its powered on the lights flash and I can get then to return to previous scene.
when off they run but the colour doesn’t return to white, so next time the bulb is on, it is on red for example.