#Change RGB LED based on thermostat temperature esphome
1 messages · Page 1 of 1 (latest)
By describing in text exactly what you want. That's not only useful for us but also for yourself.
You shold create an Automation that is based on the State of the Thermostat Temperature. When the state changes your automation runs an action to change the color of the LED.
alias: gagitest
description: ""
triggers:
- trigger: state
entity_id:
- sensor.current_temperature_3
conditions:
- condition: state
entity_id: climate.homekit_controller
state: heat
actions:
- variables:
gaggitemp: "{{int(states('sensor.current_temperature_3'))}}"
- action: light.turn_on
metadata: {}
data:
rgb_color:
- "{{ gaggitemp*2 }}"
- 0
- "{{ 255 - gaggitemp*2 }}"
target:
entity_id: light.esphome_web_rgb_led_strip
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
mode: single
ok i got something that mostly works, but not sure how to do better colors, should go from a blueish purple to bright red over the temperature range i am looking at
it does some kind of pulse everytime it updates though even if it isn't changing the color. so every second i get a little flicker as if it was turning off and then setting the new color