AI is good but it can get things wrong. If you donāt know and it spits out an answer you think great⦠thanks⦠but if you know it is wrong and you say āThat is not right it can do that because of ABCā then is says āYes your absolutely right, sorry about thatā¦ā and then spits out the same answer. Not good.
Your using scripts and HA has no idea if the light in ON through the script. This is why we use a toggle helper, it acts like a light so when we run the script to turn ON the light we also turn ON the toggle helper. Now the automation knows the light is ON (through the toggle helper ) ⦠if you manual turn OFF the light and the toggle helper is ON the automation thinks the light is ON. It is not perfect but it is the only way to do this.
So if your light is ON and the toggle helper is OFF the automation thinks the light is OFF because your using scripts. Just think of the toggle helper as your light⦠if it is OFF the the light is OFF, it it is ON then the light is on. That is how the automation see it.
What you can do is add one of your lights used in the script as an entity as well as your script (the automation will run in the correct sequence ), donāt use any light control options and let the script do the work. Then the automation can see the light is ON.
Hi guys!
First of all, thanks for the excellent automation! I also hope youāll move the file from Gist to a GitLab/GitHub repository, to simplify version tracker and changes.
I have a door open sensor and it fires events as Opened ā Closed, and another mmWave sensors, which fires occupancy events as Cleared ā Detected. Is it possible somehow to setup triggers events not for OFF ā ON changes only?
I know were it could be coming from in the code but I trying to get more information. I donāt just want to change things on the fly as it can effect other users.
I see your using a group for your lights . What if you just enter in the light entities rather than the group? I can give you code to try butā¦
Let us know if removing the group and entering the entities works.
I have thought about it but I just want to keep it simple.
You will need to do a template binary sensor and invert it. Then use this as your trigger.
To create a Template binary sensor, follow these steps:
Navigate to Settings > Device & Services > Helpers tab at the top.
Click the Create helper button.
Select Template and then choose Template a binary sensor.
Next, provide a Name that you like and Device class. If applicable, you can link this template to an existing device so it appears under that deviceās details but you probably wont do this.
In the State template field, add the code below, replacing binary_sensor.your_inverted_sensor_here with your entity ID you would like to invert.
Your Time is global so the automation will only work between 12:07 am till 12:22 am. Disable this option.
Your are stoped because your LUX sensor is higher than 120 lux. It will only turn ON when your lux sensor is below 120 lux. You could disable this option to and see if the lights turn ON and the enable it, then test it.
Note your night light time condition is from 12:22am till the next day at 12:06am. You will need to look at that to.
If I want to control 4 lights in same zone in a group for example, 2 lights will turn on between lx 200 and 700 and all 4 between lx 30 to 200, can we do that using your blueprint? Also preferably, 2 with different color temperatures.
Clock takes time from selected zone for home assistant or from anywhere else?
Impressive work. I feel like what I want it quite simple, but Iām just confused on how to set it up.
I have a seperate automation handling the various lights (canned ceiling lights, various LEDs signs/strips, smart plugs, etc) in a specific room via one of those 4 button switches. So I have like 12 different scenes being triggered based on the button they press. What I was wanting to setup with this is basically If no motion or presence is detected then trigger the scene to turn off all the lights.
Currently on the blueprint I can only figure out how to achieve the opposite, to trigger a scene when motion/presence IS detected. But I want to do the opposite, I donāt care how the different lights were turned on, IF it doesnāt sense anyone in the room for X amount of time, then turn the lights off.
I would like to create the same graphs that you show in the āSun Elevation Settingsā section of the FAQ. In the second image you say this is how it looks in a sensor card, but I cannot for the life of me figure out how to recreate the graph on my own dashboard using the Sensor card. Would you mind providing a bit more detail on how that graph is created? I am on the most recent version of HA (15.2 I believe).
Thereās a chance that thereās a relationship between the two (unable to read brightness if the light does not communicate). Would it be possible to not raise an error for specific automations?
Hello everyone!
My yaml code that I paste into the schema in automation looks like below, but unfortunately it doesnāt work. When I enter the user interface, the ātriggerā field is empty. Could I ask for advice? What am I doing wrong?
You will need to have 2 automations. It can be done with the blueprint but because your asking for the lights to turn ON or be able to turn ON at different lux levels then you will need to create 2 automations using the blueprint. You then can select the different colour temps.
This is a bit tricky as you need to create template sensors. If you like PM me with your YAML of your automation and I can walk you through it.
This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
This error is saying you have no brightness attribute in your lights.
Zigbee recently had an update that caused issues for many users. I donāt use Zigbee myself, but I recommend checking the forums for details on the update and its impact on entities.
In Home Assistant, go to Developer Tools and inspect your lights. Check the entity attributes to see if brightness is still present. Some users have resolved issues by removing and re-adding their devices, but before doing that, search the forums to see if thereās a better solution. The goal is to ensure the brightness attribute is available in your light entity.