Hello all
I was communicating with Node red support and they suggested i post this question in this forum
I have this automation running in home assistant and it works perfectly
However in node red the call service node to turn on light does not override the shelly lightbulb brightness setting in the shelly app.
The requirements are:
If notion is detected
check luminosity if below 5
check time range if daty time the turn on light brightness 60%. If night time turn on light brightness 20%
s outlined in the flow the does go to full completion in both timeframes.
If i set the light level of the bulb in the shelly app the flow will turn on the light at the bulb setting and not as the prescribed 60 or 20% (this is my issue).
As far as I can see the luminance level is a set condition on which to trigger and continue the flow.
I am definitely to inexperienced to identify if the illuminance node changes the message. As far as i see it it only acts as a threshold
In the time range node I interpreted it as being the top level true (within day time) and the lower connection would be false for all event outside the day time range . Therefore night shift. I do not know it it creates a message IMHO i think it only is setting the parameters for day and night. In the debug node i do not see any evidence of any new or additional message.
Just to mention yesterday the flow was divided in 2 separate flows one for day and one for night.
I had the same issue with both of these
At least this is my understanding
I just tested the sequence and here is a copy of the debug nos for the flow
12/3/2023, 3:19:08 PM[node: Motion Detected](http://192.168.1.112:8123/api/hassio_ingress/JeXK6fWVzk2zs66R1f1inIgAejGgIEVbYkOEpL_3X6Q/#)msg : Object
object
payload: "on"
data: object
entity_id: "binary_sensor.multisensor_6_motion_detection"
old_state: object
entity_id: "binary_sensor.multisensor_6_motion_detection"
state: "off"
attributes: object
device_class: "motion"
friendly_name: "Entrance Hall Sensor Motion detection"
last_changed: "2023-12-03T12:26:43.080121+00:00"
last_updated: "2023-12-03T12:26:43.080121+00:00"
context: object
id: "01HGQTAB08DZTGEV0VFCGSPGC1"
parent_id: null
user_id: null
new_state: object
entity_id: "binary_sensor.multisensor_6_motion_detection"
state: "on"
attributes: object
last_changed: "2023-12-03T14:19:08.161314+00:00"
last_updated: "2023-12-03T14:19:08.161314+00:00"
context: object
timeSinceChangedMs: 3
topic: 0
_msgid: "583399c1b4cf48f7"
12/3/2023, 3:19:08 PM[node: Illuminance](http://192.168.1.112:8123/api/hassio_ingress/JeXK6fWVzk2zs66R1f1inIgAejGgIEVbYkOEpL_3X6Q/#)msg.payload : number
8
12/3/2023, 3:19:08 PMLight on Daysent data : msg :
object
domain: "light"
service: "turn_on"
data: object
area_id: "entrance_hall"
device_id: "79672ab21f9ab0c866d2d8a2259e60ac"
entity_id: "light.shelly_shbduo_1_98cdac2ba9b9"
12/3/2023, 3:19:08 PM[node: Time of Day](http://192.168.1.112:8123/api/hassio_ingress/JeXK6fWVzk2zs66R1f1inIgAejGgIEVbYkOEpL_3X6Q/#)msg.Time of day : undefined
undefined
12/3/2023, 3:19:08 PM[node: Light on 60%](http://192.168.1.112:8123/api/hassio_ingress/JeXK6fWVzk2zs66R1f1inIgAejGgIEVbYkOEpL_3X6Q/#)msg.payload : number
8
The light did turn on (by coincidence it was set at 60%) at 60% and after the set time it did turn off
as far as i understand as long as the motion detection sensor is on
the luminance and the time are on conditions to be met in order to turn on the light.
I do not know what message is required by the bulb for the luminance to be overridden…
In the home assistant automation I do not need to set, send. or input any additional parameters
Thank you for your help