Govee Products and Automation Setup

Hi everyone, I wanted to share my experience with Govee products and ask for some advice on setting up an automation. I recently purchased a Govee humidifier and some RGBIC LED strip lights, and I must say, they’ve really transformed my kitchen! The combination of the humidifier and the colorful lighting makes the space feel so much cozier, especially on Friday nights. My cat, however, thinks it’s a whole new world—sometimes I swear he’s trying to figure out if he’s an owl or a tech enthusiast! :owl:

That said, I’ve been trying to set up an automation where the porch lights turn on if the front door opens between 10 PM and 5 AM. I’ve written out the automation code, but it’s not working as expected. The lights should turn on when the door opens and turn off after 10 seconds if the door is closed. I’m not sure where I’m going wrong, and I’d love some tips or suggestions. Here’s the code I’ve been working with:

alias: "Porch Lights On "
description: “”
trigger:

  • type: opened
    platform: device
    device_id: 572302359fd0bc80e248d6f31e0bdbea
    entity_id: binary_sensor.front_door_sensor
    domain: binary_sensor
    for:
    hours: 0
    minutes: 0
    seconds: 0
    condition:
  • condition: time
    after: “22:00:00”
    before: “00:00:00”
    weekday:
    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
    • sun
  • condition: time
    after: “00:01:00”
    before: “05:00:00”
    weekday:
    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
      action:
  • type: turn_on
    device_id: fce1179ec9feb7de71b556f9f068d5a0
    entity_id: light.porch_lights
    domain: light
    mode: single

alias: "Porch Light Off "
description: “”
trigger:

  • type: not_opened
    platform: device
    device_id: 572302359fd0bc80e248d6f31e0bdbea
    entity_id: binary_sensor.front_door_sensor
    domain: binary_sensor
    for:
    hours: 0
    minutes: 0
    seconds: 10
    condition:
  • condition: time
    after: “22:00:00”
    before: “00:00:00”
    weekday:
    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
  • condition: time
    after: “00:01:00”
    before: “05:00:00”
    weekday:
    • mon
    • tue
    • wed
    • thu
    • fri
    • sat
      action:
  • type: turn_off
    device_id: fce1179ec9feb7de71b556f9f068d5a0
    entity_id: light.porch_lights
    domain: light
    mode: single

I’m really looking forward to getting this automation sorted out and maybe even expanding it to include more smart devices around the house. If anyone has any advice or similar experiences, I’d love to hear about it! Thanks in advance for your help, and I hope you’re all enjoying your Govee products as much as I am. :star2: