@sandoz.cloud wrote:
i am trying to make a automation, that brightens and dims lights after sunset after movement is detected by xiaomi body sensor
The lights are turned on by another automation when the sun is down, at 30%
I want them to 90% for 3 minutes, and then return to 30% again
I am using xiaomi body sensors for thisI currently use this, brightening to 90% is ok, but they dont go back to 30 after 3 minutes
- alias: "Garage links On" trigger: - platform: state entity_id: binary_sensor.motion_garage_occupancy to: 'on' condition: - condition: state entity_id: sun.sun state: below_horizon action: - service: homeassistant.turn_on entity_id: light.garage_links data: brightness_pct: '90' transition: 3 # - service: notify.notify # data: # message: Office Motion Light On - alias: "Garage links Off" trigger: - platform: state entity_id: binary_sensor.motion_garage_occupancy to: 'off' for: minutes: 3 action: - service: homeassistant.turn_off entity_id: light.garage_links data: brightness_pct: '30' transition: 3 # - service: notify.notify # data: # message: Office Motion Light Off
Posts: 2
Participants: 2