How To Gradually Increase & Dim A Light In Home Assistant Withiout Using Transition
Ғылым және технология
In this video, I will cover how to create an automation which gradually increase and dims a bulb over time without the need for using the transition service.
I will also cover how to create a templated sensor to grab the brightness attribute value of a light.
CODE:
Sensor: pastecode.io/s/jppkwm6k
Automation: pastecode.io/s/np5biwob
Visit our website at hassassistant.com.
Thank you for watching, please LIKE and SUBSCRIBE and hit the NOTIFICATION button so you're updated on future content.
Hope you found this tutorial helpful!
____ DEVICES! _____________________________________________________________________________________________________
CONBEE STICK (ENABLES ZIGBEE DEVICES TO CONNECT TO HOME ASSISTANT):
UK: amzn.to/3X5QH3E
US: amzn.to/3p2EFeY
OUTDOORLED STRIP (REQUIRES TUYA ZIGBEE HUB OR CONBEE STICK AND PI)
GLOBAL LINK: s.click.aliexpress.com/e/_DnM...
AQARA ZIGBEE MOTION SENSORS AND DOOR SENSORS (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/465Qq55
US: amzn.to/42CTJxx
AQARA LIGHT BULB E27 (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/460ed6m
AQARA LIGHT SWITCH (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/3N60UJ0
US: amzn.to/3CLvbYV
AQARA BATTERY REMOTE LIGHT SWITCH (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/3p5JpR1
US: amzn.to/43Xdf8X
BUY A RASPBERRY PI HERE (TO HOST HOME ASSISTANT):
UK: amzn.to/3p6NN27
US: amzn.to/3CqwhJl
BROADLINK RM4 PRO (TO CONTROL INFRARED DEVICES SUCH AS TV & RF DEVICES SUCH AS PROJECTOR SCREENS)
UK: amzn.to/3pbfaYN
US: amzn.to/3PbZPSp
ZIGBEE PLUG SOCKET (REQUIRES ZIGBEE HUB SUCH AS HUBITAT OR SMARTTHINGS):
UK: amzn.to/3P86VHJ
US: amzn.to/43VpGSO
ZIGBEE SPOTLIGHTS & RGB REMOTE
UK: amzn.to/3p1ml5Q
US: amzn.to/3CLwd7f
ROBOROCK ROBOVACS
UK: amzn.to/3NairPY
US: amzn.to/3CtutPO
4K HORIZON PRO PROJECTOR IN THE BEDROOM
UK: amzn.to/3NskbWb
US: amzn.to/42DpbMi
AMAZON ECHO 4TH GENERATION:
UK: amzn.to/43SYDaG
US: amzn.to/3p3Ddc9
ECHO SHOW 10
UK: amzn.to/3N7Q9FX
US: amzn.to/3NqVUjw
Пікірлер: 25
Been trying to script an automation for my son's light bulbs to gradually turn on to help him wake up in the morning. I usually work in Node Red, but opted to use the baked in automations for this. I toiled over this, struggling to find some documentation to get this to work - and nothing was working. You, my friend, are a true hero. This was incredible. I love no 10 minutes of describing and never getting to the point.
I really like your channel because you give working solutions without too much talk about nothing. You should have way more subscribers than you have.
@HassAssistant
Жыл бұрын
Really appreciate it Daniel. It's still early days with this channel. I'm extremely greatful for the response of you guys so far 👍🏻
Nice and clear. But why do you need a template sensor for the brightness? Why not just use a template condition in the repeat loop?
Thank you so much for this. I was struggling with a similar automation. My son has 3 smart lights mounted in the ceiling fan in his room. I have them in a group in HA. I've been wanting to start an automation that starts at a specific time of night on school nights that turns the light on to a specific color (regardless of the current state or color of the light) then reduce the brightness every 5 minutes or so over the next 20 minutes. I adapted what I needed from your solution and thus far it works flawlessly. I spoke a little too soon. I didn't want the light to turn all the way off, but stop at 1% brightness as that's how he likes it. Now I gotta figure that out.
This is a very fresh approach to smoothing out motion activated lights that don't support transition. I'm using this for my under bed motion activated led strip to minimize any potential sleep disturbances from abrupt light changes. I hadn't used repeat in any of my automations before, so I was happy to add another tool to my toolbox. Thanks.
i've been trying to find a solution for this for a little while. none of my bulbs have the transition capability. thanks so much!
This is great! Now I'm going to see if I can do this with my heat and/or with my blinds :) Thank you!
Awesome video.. very detailed... thanks for sharing...
Very useful, thanks for sharing.
thanks very brilliant idea
Nicely done. Thank You
Hi Adam, really like your videos...can you make some video to cover basics like how to check for different state that can be available for any entity
does this work the same way witha smart switch vs a smart bulb
Thanks Adam, but the sensor not retrieving the Brightness it's only on or off! not value any idea why?
Adding that sensor section made my other sensors stop working. How can I manually add a sensor without overriding any existing sensors?
value_template: "{{ state_attr('light.entity', 'brightness') }}"
it doesnt work I copied everything and check configuration always gives an error
i take it this only works if wired back to a dimmable smart switch or otherwise if the bulb is a smart bulb
Hmm, for me transition just works.... Say when it gets dark (trigger) and I want to turn on the lights slowly. (action) My actions looks as follows: No repeat just straight : call-service -> light on transition (time in seconds it takes to reach the brightness for example 5 seconds) brightness 50% Works like a charm.
@AlexDiamantopulo
11 ай бұрын
I don't have this parameter, any idea why?
Good content but hard to hear with the loud background music. Fine for intro sequence, not needed for main video.
@HassAssistant
Жыл бұрын
thanks for the heads up.
Error: Until condition [{'condition': 'state', 'entity_id': ['sensor.kitchen_brightnes'], 'state': '5', 'match': 'all'}] terminated because it looped 10000 times
boss