niges204
(Nige)
October 11, 2025, 3:33pm
1
Sorry but i am a newbie, my automation turn on the lights but it wont turn them off, without me doing it manually or running the action? i have all the updates from HA. the lights are TP-Link & Govee if that helps.
Thank you in advance, have tried everything.
Nige S
francisp
(Francis)
October 11, 2025, 3:38pm
2
How can we help you. You don’t give any details. For example, show your automation, properly formatted.
Show your automation here, otherwise we can’t help.
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
October 11, 2025, 4:15pm
4
Help with formatting:
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question .
niges204
(Nige)
October 11, 2025, 10:55pm
5
On
alias: Patio Sunset On +15mins
description: “”
triggers:
trigger: sun
event: sunset
offset: “00:15:00”
conditions:
actions:
action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 75
target:
device_id: 315ee0ac37573de8536a22cb7d2eed78
mode: single
Off
alias: Patio Off @ 23:30
description: “”
triggers:
trigger: time
at: “23:30:00”
conditions:
actions:
action: light.turn_off
metadata: {}
data: {}
target:
device_id: 315ee0ac37573de8536a22cb7d2eed78
mode: single
tom_l
October 11, 2025, 10:59pm
6
https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16
Also:
Background
When you start writing automations, a device trigger seems the obvious choice. Everybody knows what a device is and it comes at the top of the UI dropdown list.
[image]
It works… but it is certainly not a “great way to start” because it is storing up problems for the future. Far better to use an entity, with state or numeric_state.
This topic is part of the community-driven cookbook where you can find other topics you might be interested in or might like to contribute to.
Devi…