|
@@ -1,24 +1,12 @@
|
|
|
-############################ 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:
|
|
|
+ exterior_lights_wanted_state:
|
|
|
+ name: Exterior lights, wanted state
|
|
|
+ icon: mdi:lightbulb
|
|
|
+
|
|
|
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
|
|
@@ -37,15 +25,12 @@ automation:
|
|
|
entity_id: input_boolean.ext_light_on_done
|
|
|
state: 'off'
|
|
|
- condition: state
|
|
|
- entity_id: light.exterior_lights
|
|
|
+ entity_id: input_boolean.exterior_lights_wanted_state
|
|
|
state: 'off'
|
|
|
action:
|
|
|
- - service: light.turn_on
|
|
|
- data: {}
|
|
|
- entity_id: light.exterior_lights_repeater
|
|
|
- - service: light.turn_on
|
|
|
+ - service: input_boolean.turn_on
|
|
|
data: {}
|
|
|
- entity_id: light.exterior_lights
|
|
|
+ entity_id: input_boolean.exterior_lights_wanted_state
|
|
|
- service: input_boolean.turn_on
|
|
|
data: {}
|
|
|
entity_id: input_boolean.ext_light_on_done
|
|
@@ -68,12 +53,9 @@ automation:
|
|
|
entity_id: light.exterior_lights
|
|
|
state: 'on'
|
|
|
action:
|
|
|
- - service: light.turn_off
|
|
|
- data: {}
|
|
|
- entity_id: light.exterior_lights_repeater
|
|
|
- - service: light.turn_off
|
|
|
+ - service: input_boolean.turn_off
|
|
|
data: {}
|
|
|
- entity_id: light.exterior_lights
|
|
|
+ entity_id: input_boolean.exterior_lights_wanted_state
|
|
|
- service: input_boolean.turn_on
|
|
|
data: {}
|
|
|
entity_id: input_boolean.ext_light_off_done
|
|
@@ -94,4 +76,4 @@ automation:
|
|
|
- service: input_boolean.turn_off
|
|
|
data: {}
|
|
|
entity_id: input_boolean.ext_light_on_done
|
|
|
- mode: single
|
|
|
+ mode: single
|