Afternoon again
I have the following code
light:
- platform: flux_led
automatic_add: true
devices:
192.168.1.25:
name: bedroom_led
192.168.1.27:
name: kitchen_led
sensor:
- platform: rest
resource: https://willsaps.herokuapp.com/api/v1/entries/current.json
name: Wills BG
value_template: '{{ value_json[0].sgv }}`
This returns a BG number which I would like to control the bedroom led
< 50 - Blue
> 50 < 200 Green
> 200 blue
Not been using HASS for long so would like some pointers on how to do this?