I’ve created an automation but it didn’t work and I have no idea why.
Does somebody have an Idea?
I want to create the automation in the gui.
trigger:
The light in front of my house should be switched on by different triggers.
schedule (provided by an helper)
brithness outside (provided by an KNX weatherstation)
start of home assistant
condition:
an condition is that the light should only be switched on when the autmation is switched on by an switch (provided by KNX)
action:
switch light depending on schedule and brightness outside.
This is my automation but it didn’t work and I cant finde the mistake in it.
Absolute beginner with problems understanding the automation here.
![Automation light in front of the house|615x500]
Post the full YAML for the automation. Click the three dots, , “edit as YAML”, copy and paste the code in here as a code block (</> button or surround with three backticks:
```
code pasted here
```
It should look like this:
alias: "your automation"
description: ""
trigger:
- platform: state
[usw]
I haven’t seen this. Because in my mind a light is switched on with a switch. But understand in concept of home assistant it might not work.
I changed it from switch to light and will double check if it is working now.
Aditionally I tried to recreate the combination of switch and light. But as you mentioned it is not possibel to combine both. Don’t now how I set it up, maybe it is beacause of the huge amount of changes during the creation of the automation.
But I have a further question. In the following code there are two different entities listed below if.
What is the connection of the entities? “OR” or “AND” wenn I don’t add a separate connection block?