Hi
Anyone who can help with setup Ikea Panels to dim light after a specified clock at night?
I have a hall with 2 panels and a motion sensor. I want them to dim to 50% at night.
I is a newbie to HA.
In advance, Thanks
Hi
Anyone who can help with setup Ikea Panels to dim light after a specified clock at night?
I have a hall with 2 panels and a motion sensor. I want them to dim to 50% at night.
I is a newbie to HA.
In advance, Thanks
This should get you started. Youll need to customize time and entity ID for your config.
Edit: this will turn them on to 50% at 20:00. Reading your OP again it seems like you may want to turn them on to 50% if the motion sensor is triggered after a certain time. You may want to look at the tradfri app for this. As the motion sensor isn’t integrated into HA all you could do is let the motion sensor turn the lights on and then dim them to 50% once HA sees them go on.
- alias: "Dim Hall Ikea Panels"
trigger:
platform: time
at: '20:00' #adjust this time as needed
action:
- service: light.turn_on
data:
entity_id:
- light.hallway1 #adjust these to match your config
- light.hallway2
brightness_pct: 50
Thanks, I will try that.
And you are right. I want to set that for 50% when it is triggered by motion.
Where do I put your code? in configuration.yaml?
Could I do something like:
If the light is changing state to “on” and the time is 20:00, then set dim to 50%?
This will be closer to what you want. However, the lights will be triggered by the motion sensor and turn on to whatever was the last state (I assume), then once HA receives the ‘on’ state they will dim to 50%
If they return to the last brightness you could use the above automation to set the brightness at a certain time, then turn them off. Then the next time they are triggered by the motion sensor they should hopefully turn on to 50%.
- alias: "Dim Hall Ikea Panels"
trigger:
- platform: state
entity_id:
- light.hallway1 #adjust these to match your config
- light.hallway2
from: 'off'
to: 'on'
condition:
condition: time
after: '20:00:00'
action:
- service: light.turn_on
data:
entity_id:
- light.hallway1 #adjust these to match your config
- light.hallway2
brightness_pct: 50
Hi Again
First of all, sorry for the late answer. Lot’s of work;-)
I have almost made it funktion, mostly by your code and by build-in auto generator.
The only problem is now, that the light will not turn off after the set timer ( one minute)
To get it to use full strength during day, I assume I just can switch the time-set and use 100% instead.
Update!
It does only work, when I switch stae in HA.
Not if it is the motion sensor that triggers the state
Hi Finn
Did you get it to work??
It would be nice to set light in bathroom to dim at night