Hi There,
Firstly thankyou for such a cool blueprint!
In this application I am using it for night lights. I have a string of RGB (not RGBW, important later) under the bed connected to a SHELLY RGB.
Triggers are:
Under bed sensor, by elevated sensors (the problem ish)
an everything presence sensor – PIR (not the MMwave, the PIR is to sensitive)
As it stands now the blueprint is set up with the PIR of the EPS to trigger the blueprint in a time window 1030pm to 6am and it works, with 2 reasonable issues.
Problems.
1: the RGB is just showing white.
(remember, its just an RGB strip.)
I have selected the entities for the Shelly RGB, chosen the colour and all it does is show white. i checked the YAML. as you will see below, it has the section to use the RGB section, and was not working. So i deleted the entries in your blueprint and you will see the updated code below.
I have to go out and i will test that code when i get back after 1030pm
Problem 2:
the second problem is that the PIR is way to sensitive, and as best as i can tell, i cant tune it. (i will send an email asking if there is a way) so reading your instructions I saw the section of grouping, and this would help with the advance version of this. I get up from the LHS and the light go green, the partner gets up from the RHS and the lights go PINK.
So I created a group with
PIR (default state off)
bed presence (default state off)
The problem is that they are both TRIGGERED, so when I lie on the bed it goes to ON and the PIR is triggered by movement, so I need a way to invert say the bed sensor so that when I am lying on it, it is off and when I get off its on so that the conditions of the dual sensors are meet. I need some sort of invert toggle of the bed for just the use of blueprint.
IE
there is movement – check
there is someone in bed – don’t turn on the light
or
there is movement – check
someone just got out of bed – check
Turn on the night light.
Clearly this is simplified example as the bed sensor has two sides to make it take notice of both sides and I would need to do a lot more programming to get this to work.
I will report back with the new code slice after 1030 when I get home.
And again thanks for the great blueprint!
-=-=-= Original code -=-=-=-=-
alias: Night Lights - Automation
description: ""
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.everything_presence_one_a8c724_pir
light_switch:
entity_id:
- light.shellyrgbw2_a7dd58_channel_1
- light.shellyrgbw2_a7dd58_channel_2
- light.shellyrgbw2_a7dd58_channel_3
include_light_control:
- use_brightness
light_brightness: 1
include_light_colour_control: use_rgb_colour
light_rgb_colour:
- 0
- 6
- 97
include_time: time_enabled
after_time: "22:30:00"
before_time: "06:00:00"
time_delay: 1
light_rgbw_colour:
- 0
- 107
- 7
- 0
light_colour_temperature: 2500
-=-=-=- Modified code to test -=-=-=-
alias: Night Lights - Automation
description: ""
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.everything_presence_one_a8c724_pir
light_switch:
entity_id:
- light.shellyrgbw2_a7dd58_channel_1
- light.shellyrgbw2_a7dd58_channel_2
- light.shellyrgbw2_a7dd58_channel_3
include_light_control:
- use_brightness
light_brightness: 1
include_light_colour_control: use_rgb_colour
light_rgb_colour:
- 0
- 6
- 97
include_time: time_enabled
after_time: "22:30:00"
before_time: "06:00:00"
time_delay: 1
light_rgbw_colour: {}
light_colour_temperature: 2500
light_rgbww_colour: {}