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>