Hi all!
I have a custom board with esp32. One of it’s pins is connected to MOSFET, that drives power LEDs.
My idea is that it will gradually turn on the LEDs from 0% to 100% at specified time in a day, and finish turning on after specified number of minutes, imiting sunrise.
I configured LEDC and monochromatic light components, and time component for turning it on. I would like to be able to set time of turn on, and time of gradual turning on (can be separated integers for hours and minutes of turn on, and another for amount of minutes to be fully on).
I can use Home Assistant sensor component in Esphome to be able to read value from HA, but I need this sensor to be configured in HA. Is it possible? How? My current configuration for this sensor looks like this:
sensor:
- platform: template
sensors:
led_settings_hours:
friendly_name: "LED light hours time of enable"
unit_of_measurement: 'hours'
value_template: "{{ }}"
led_settings_minutes:
friendly_name: "LED light minutes time of enable"
unit_of_measurement: 'minutes'
value_template: "{{ }}"
led_settings_timeto100p:
friendly_name: "Time after LEDs are set to 100%"
unit_of_measurement: 'minutes'
value_template: "{{ }}"
I don’t know what to write in value_template section. Am I going to the right direction at all?