Frontend Panel for Diabetics using a Dexcom CGM

Binary helper is on or off.

Come to think of it, why would you need to use a helper at all?

As I said, I am hopelessly lost in YAML, but I try.
Something like this in three automations:

{% if states("sensor.sensor.blood_sugar")|float > 75}
# Light turn on
{% else %}
# Light turn off
{% endif %}
1 Like

I was told better to use a helpers though at first I was trying in one Automation but now its better even harder with what to do really. Also hard for me to explain it all and how the lamp is behaving! I have two sets of light one are Leds the other Beside lamp and I want both to run like sunset sunrise. but then after this th exchanging of the light colour only on the lamp so the other will turn on as normal when I used the motion sensor I have setup to detect me when I stick my hand out to go to my mobile, this triggers the Leds to come on!

I’m also no good on Yaml only to copy and past into it or try to change the code a little if I feel its right and I have backed up.

Not at all sure where I would put this code your showing me. I been side tracked due to a shed coming to be thinking on this! Takes me ages to get my head around to knowing what to try.

Too many variables really but should be easy is maybe I should start again with a new lamp and keep it off the other things I already have setup! Then is one fails the other will work as normal :slight_smile: Also any excuse for a new Lamp :rofl: :rofl: :kissing_closed_eyes:

Not sure what a Binary helper is on or off is? never used it before!

It’s getting it to the colour but its harder to get it to go back to a normal colour!