mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 13:29:12 +00:00
Clean up of Switch names and a fancy date time sensor!
This commit is contained in:
parent
086d021616
commit
34771704aa
@ -11,10 +11,10 @@
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.halloween_lights_den
|
||||
entity_id: switch.outlet_den
|
||||
- delay: 00:00:30
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.halloween_lights_dining_room
|
||||
entity_id: switch.outlet_living_room
|
||||
|
||||
- alias: 'Holiday Stuff off'
|
||||
trigger:
|
||||
@ -26,9 +26,9 @@
|
||||
|
||||
action:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.halloween_lights_den
|
||||
entity_id: switch.outlet_den
|
||||
- delay: 00:00:30
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.halloween_lights_dining_room
|
||||
entity_id: switch.outlet_living_room
|
||||
|
||||
|
@ -25,12 +25,11 @@
|
||||
- platform: state
|
||||
entity_id: group.kitchen_lights
|
||||
state: 'off'
|
||||
for: '00:05:00'
|
||||
|
||||
condition:
|
||||
- condition: sun
|
||||
after: 'sunset'
|
||||
- condition: time
|
||||
before: '02:00:00'
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
|
@ -6,11 +6,6 @@
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
- platform: time
|
||||
after: '20:00:00'
|
||||
#Time trigger is until I replace the stupid switch.
|
||||
# - platform: event
|
||||
# event_type: halloween_lights_on
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
@ -26,18 +21,12 @@
|
||||
- platform: sun
|
||||
event: sunrise
|
||||
offset: '-03:30:00'
|
||||
# - platform: event
|
||||
# event_type: halloween_lights_off
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: group.outdoor_front_lights
|
||||
entity_id: group.all_lights
|
||||
data:
|
||||
transition: 1200
|
||||
- service: light.turn_off
|
||||
entity_id: light.outdoor_bathroom
|
||||
- service: light.turn_off
|
||||
entity_id: group.outdoor_lights
|
||||
- service: script.switch_turn_off_all
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Switches:
|
||||
entities:
|
||||
- switch.halloween_lights_den
|
||||
- switch.halloween_lights_dining_room
|
||||
- switch.outlet_den
|
||||
- switch.outlet_living_room
|
||||
- switch.foyer_outlet
|
||||
- switch.kitchen_Accents
|
||||
- switch.printer_outlet
|
||||
|
@ -8,10 +8,10 @@
|
||||
switch_turn_off_all:
|
||||
sequence:
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.halloween_lights_den
|
||||
entity_id: switch.outlet_den
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.halloween_lights_dining_room
|
||||
entity_id: switch.outlet_living_room
|
||||
- delay: '00:01:00'
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.foyer_outlet
|
||||
|
4
sensor/date_time.yaml
Executable file
4
sensor/date_time.yaml
Executable file
@ -0,0 +1,4 @@
|
||||
- platform: time_date
|
||||
display_options:
|
||||
- 'time'
|
||||
- 'date'
|
@ -5,15 +5,22 @@
|
||||
- platform: rpi_rf
|
||||
gpio: 17
|
||||
switches:
|
||||
# Outlet 1
|
||||
# Outlet 1412_1
|
||||
Garage_Outlet:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 5264691
|
||||
code_off: 5264700
|
||||
|
||||
# Outlet 1412_3
|
||||
Living_Room_Amp:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 5265155
|
||||
code_off: 5265164
|
||||
|
||||
# Outlet 2
|
||||
Halloween_Lights_Den:
|
||||
# Outlet 1412_2
|
||||
Outlet_Den:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 5264835
|
||||
@ -26,22 +33,15 @@
|
||||
code_on: 292099
|
||||
code_off: 292108
|
||||
|
||||
# Outlet 3
|
||||
Garage_Outlet:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 5264691
|
||||
code_off: 5264700
|
||||
|
||||
# Outlet 311_1
|
||||
Kitchen Accents:
|
||||
Kitchen_Accents:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 283955
|
||||
code_off: 283964
|
||||
|
||||
# Outlet 311_2 : Responds to 311_1 as well.
|
||||
Kitchen Accent 2:
|
||||
Kitchen_Accent 2:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 284099
|
||||
@ -55,36 +55,36 @@
|
||||
code_off: 284428
|
||||
|
||||
# Outlet 311_4
|
||||
Halloween_Lights_Dining_Room:
|
||||
Outlet_Living_Room:
|
||||
protocol: 1
|
||||
pulselength: 186
|
||||
code_on: 285955
|
||||
code_off: 285964
|
||||
|
||||
# Outlet 304_1
|
||||
Outlet 304_1:
|
||||
Outlet_304_1:
|
||||
protocol: 1
|
||||
pulselength: 189
|
||||
pulselength: 186
|
||||
code_on: 5330027
|
||||
code_off: 5330236
|
||||
|
||||
# Outlet 304_2
|
||||
Outlet 304_2:
|
||||
Outlet_304_2:
|
||||
protocol: 1
|
||||
pulselength: 189
|
||||
pulselength: 186
|
||||
code_on: 5330371
|
||||
code_off: 5330380
|
||||
|
||||
# Outlet 304_3
|
||||
Outlet 304_3:
|
||||
Outlet_304_3:
|
||||
protocol: 1
|
||||
pulselength: 189
|
||||
pulselength: 186
|
||||
code_on: 5330691
|
||||
code_off: 5330700
|
||||
|
||||
# Outlet 304_4
|
||||
Outlet 304_4:
|
||||
# Outlet_Dining_Room
|
||||
Outlet_304_4:
|
||||
protocol: 1
|
||||
pulselength: 189
|
||||
pulselength: 186
|
||||
code_on: 5332227
|
||||
code_off: 5332236
|
Loading…
x
Reference in New Issue
Block a user