############################ Battery Automations, Scripts & Sensors ################################## # All entities to have the prefix: "battery_" or name: Battery: ###################################################################################################### light: - platform: rflink automatic_add: true devices: newkaku_013242b6_1: name: Exterior lights type: switchable newkaku_013242b5_1: name: Exterior lights REPEATER type: switchable input_boolean: ext_light_on_done: name: Bool switch, Ext light turned ON icon: mdi:car ext_light_off_done: name: Bool switch, Ext light turned OFF icon: mdi:car automation: - alias: Exterior lights ON in evening description: In the evening, turn the lights ON trigger: - platform: numeric_state entity_id: sensor.lux_outside_the_garage below: '100' condition: - condition: state entity_id: input_boolean.ext_light_on_done state: 'off' action: - service: light.turn_on data: {} entity_id: light.exterior_lights_repeater - service: light.turn_on data: {} entity_id: light.exterior_lights - service: input_boolean.turn_on data: {} entity_id: input_boolean.ext_light_on_done mode: single - alias: Exterior lights OFF in morning description: '' trigger: - platform: numeric_state entity_id: sensor.lux_outside_the_garage above: '50' condition: - condition: state entity_id: input_boolean.ext_light_off_done state: 'off' action: - service: light.turn_off data: {} entity_id: light.exterior_lights_repeater - service: light.turn_off data: {} entity_id: light.exterior_lights - service: input_boolean.turn_on data: {} entity_id: input_boolean.ext_light_off_done mode: single - alias: Turn boolean switches off at midnight description: '' trigger: - platform: time at: 00:05:00 condition: [] action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.ext_light_off_done - service: input_boolean.turn_off data: {} entity_id: input_boolean.ext_light_on_done mode: single