###################################################################### # @CCOSTAN - Follow Me on X # For more info visit https://www.vcloudinfo.com/click-here # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # ------------------------------------------------------------------- # Kitchen Helper Light - Turn off helper after the main light stays off # Powers down `light.k4` after 20 minutes only when `light.k1` remains off. # ------------------------------------------------------------------- ###################################################################### - alias: Shutdown Helper light id: 124f95f6-78ca-4c22-9348-1f3a1da2d803 trigger: - platform: state entity_id: light.k4 to: 'on' for: '00:20:00' condition: condition: state entity_id: light.k1 state: 'off' action: - service: light.turn_off entity_id: light.k4