Hi! I’ve created a nightlight based on ESP-home, using an D1 mini board and an RGB NeoPixel Jewel light. Using the on_time
trigger I turn the light on, change the colours to some preset values using the light.turn_on
action and after a while I turn the light off using the light.turn_off
action.
Heavily summarised version of the yaml configuration:
light:
- platform: neopixelbus
id: neopixel_jewel
type: GRB
variant: WS2812
pin: GPIO2
num_leds: 7
name: NeoPixel Jewel
time:
- platform: homeassistant
id: homeassistant_time
on_time:
- hours: 6
minutes: 30
seconds: 0
then:
- light.turn_on:
# Turn on and set color to Red
id: neopixel_jewel
brightness: 50%
red: 100%
green: 0%
blue: 0%
- hours: 7
minutes: 0
seconds: 0
then:
- light.turn_on:
# Turn on and set color to Green
id: neopixel_jewel
brightness: 60%
red: 0%
green: 100%
blue: 0%
- hours: 7
minutes: 30
seconds: 0
then:
# Turn off
- light.turn_off: neopixel_jewel
All works fine, and the light turns on and off and changes brightness and color exactly as scheduled. However, in the Logbook and in the history of the Light entity that is created, all I see is that the light is turned on at 06:30 and turned off at 07:30, the change of color is not represented in the Logbook.
What can I do to make the color change appear in the logbook? I tried adding a logger.log statement, but that only seams to appear in the ESP-Home device log, but not in the Logbook for that entity in Home Assistant. Thanks a lot in advance!