I’m trying to add 3 triggers for Blood readings and ned 3 Threshold helpers to turn Lights from Blue to red if low Range
and if high Range turn Lights red
And Turn lights blue if Normal Range.
I have made the 3 helpers but not sure how I had them into a Automation to do this process.
Any help be great on it.
I have managed to do it another way but the lights go red but do not come back to Blue when the range gets back into a Normal Range so someone mentioned to make a helper for it.
yes I was thinking I do not want the light on in normal range I just want the colour to go back to blue until sunset when the lights come on auto to motion.
Its a very hard one to do this as so complex and confusing.
Thanks
Will try tomorrow!
so you are saying to name my normal range helper to Abnormal Blood Reading?
what do I call the high Range and low range ones?
I cannot just have a Normal range as the light only needs to go red when below 73.5 and again only go red light when over 162 if it’s in between the Blue light and this needs to be 24/7 but the light does not have to be on 24/7 only after sunset with motion or if low but when back to normal light still needs to come on with motion after sunset
triggers:
- trigger: state
entity_id: binary_sensor.abnormal_blood_reading
from: 'off'
to: 'on'
conditions:
- condition: state # 'day' condition: from sunrise until sunset
entity_id: sun.sun
state: "above_horizon"
actions:
action: <turn your light red here>
Automation 2, normal range → blue light
triggers:
- trigger: state
entity_id: binary_sensor.normal_blood_reading
from: 'on'
to: 'off'
conditions:
- condition: state # 'day' condition: from sunrise until sunset
entity_id: sun.sun
state: "above_horizon"
actions:
action: <turn your light blue here>
I need it like you said but normally for me to walk into the bedroom the lights are not on until the sensors detect me then come on, why I say I need the lights to go to what even state it in at the time if I’m in the room or not in the room! High or low readings and I want the high reading to be a different colour as well, like orange or Amber colour, green for normal readings and red for the low readings.
I have still not got this setup to work right and had a break from it but think now’s the time to start again with new Leds Rainbow lights that Id like to go back to its presets set at Rainbow
for outside and do a new start to figure it all out., as I’m lost on it all now and nothing seems to work at all.
It also gets more complicated as I have at the moment got it set to sunset and sunrise which is ok for the lights to come on and off at them times but not for my blood readings they would only need to keep on during the day until my readings come back to normal. then go back off. But after sunset it still do it and the lights come on and off no matter in teh room or not if in the room then the lights would still need to be on if I’m detected.