Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Home Automation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Jason Williams
Home Automation
Commits
c2f33dc0
Commit
c2f33dc0
authored
Nov 18, 2018
by
Jason Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding setup for Christmas lights to home assistant
parent
2d3ddd45
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
44 deletions
+143
-44
.gitignore
.gitignore
+4
-0
automations.yaml
Home Assistant Configuration/automations.yaml
+78
-7
configuration.yaml
Home Assistant Configuration/configuration.yaml
+37
-37
ui-lovelace.yaml
Home Assistant Configuration/ui-lovelace.yaml
+24
-0
No files found.
.gitignore
View file @
c2f33dc0
...
...
@@ -6,3 +6,7 @@
known_devices.yaml
secrets.h
secrets.yaml
Home Assistant Configuration/*
!Home Assistant Configuration/*.yaml
Home Assistant Configuration/known_devices.yaml
Home Assistant Configuration/secrets.yaml
Home Assistant Configuration/automations.yaml
View file @
c2f33dc0
...
...
@@ -318,7 +318,7 @@
message
:
The garage door is open and has been for five minutes.
target
:
email/missflo73@gmail.com
-
alias
:
Turn on the family room lights if nobody's home
at
sunet
-
alias
:
Turn on the family room lights if nobody's home
15 minutes after
sunet
initial_state
:
True
trigger
:
platform
:
sun
...
...
@@ -366,7 +366,7 @@
entity_id
:
input_boolean.away_lights
-
service
:
light.turn_off
data
:
entity_id
:
group.family_room_lights
entity_id
:
light.back_left, light.front_right
-
service
:
media_player.turn_off
data
:
entity_id
:
media_player.kitchen_home
...
...
@@ -386,12 +386,12 @@
entity_id
:
input_boolean.away_lights
-
service
:
light.turn_off
data
:
entity_id
:
group.family_room_lights
entity_id
:
light.back_left, light.front_right
-
service
:
media_player.turn_off
data
:
entity_id
:
media_player.kitchen_home
-
alias
:
Turn on the exterior lights if one of us is still out
at dusk
-
alias
:
Turn on the exterior lights if one of us is still out
15 minutes after sunset
initial_state
:
True
trigger
:
platform
:
sun
...
...
@@ -476,9 +476,8 @@
initial_state
:
True
trigger
:
platform
:
state
entity_id
:
cover.garage_door
from
:
'
closed'
to
:
'
open'
entity_id
:
sensor.garagedoorstate
from
:
'
CLOSED'
condition
:
condition
:
and
conditions
:
...
...
@@ -607,3 +606,75 @@
{%- else -%}
auto
{%- endif -%}
-
alias
:
Turn on the Christmas tree lights at sunset
initial_state
:
True
trigger
:
platform
:
sun
event
:
sunset
action
:
-
service
:
switch.turn_on
data
:
entity_id
:
switch.family_room_tree, switch.living_room_tree
-
delay
:
'
00:00:10'
-
service
:
switch.turn_on
data
:
entity_id
:
switch.family_room_tree, switch.living_room_tree
-
alias
:
Turn on the exterior Christmas lights 15 minutes after sunset
initial_state
:
True
trigger
:
platform
:
sun
event
:
sunset
offset
:
'
00:15:00'
action
:
-
service
:
switch.turn_on
data
:
entity_id
:
switch.exterior_front, switch.exterior_rear, switch.parol
-
delay
:
'
00:00:10'
-
service
:
switch.turn_on
data
:
entity_id
:
switch.exterior_front, switch.exterior_rear, switch.parol
-
alias
:
Turn on the Christmas deer 30 minutes after sunset
initial_state
:
True
trigger
:
platform
:
sun
event
:
sunset
offset
:
'
00:30:00'
action
:
-
service
:
switch.turn_on
data
:
entity_id
:
switch.deer
-
delay
:
'
00:00:10'
-
service
:
switch.turn_on
data
:
entity_id
:
switch.deer
-
alias
:
Turn off the interior Christmas lights at 10pm
initial_state
:
True
trigger
:
platform
:
time
at
:
'
22:00:00'
action
:
-
service
:
switch.turn_off
data
:
entity_id
:
switch.family_room_tree, switch.living_room_tree, switch.parol
-
delay
:
'
00:00:10'
-
service
:
switch.turn_off
data
:
entity_id
:
switch.family_room_tree, switch.living_room_tree, switch.parol
-
alias
:
Turn off the exterior Christmas lights at 11pm
initial_state
:
True
trigger
:
platform
:
time
at
:
'
23:00:00'
action
:
-
service
:
switch.turn_off
data
:
entity_id
:
switch.deer, switch.exterior_front, switch.exterior_rear
-
delay
:
'
00:00:10'
-
service
:
switch.turn_off
data
:
entity_id
:
switch.deer, switch.exterior_front, switch.exterior_rear
Home Assistant Configuration/configuration.yaml
View file @
c2f33dc0
...
...
@@ -444,40 +444,40 @@ shell_command:
mainfloor_heating_away
:
curl -d '{"0":[345,54.5,1230,54.5,1230,54.5,1230,54.5],"1":[345,54.5,1230,54.5,1230,54.5,1230,54.5],"2":[345,54.5,1230,54.5,1230,54.5,1230,54.5],"3":[345,54.5,1230,54.5,1230,54.5,1230,54.5],"4":[345,54.5,1290,54.5,1290,54.5,1290,54.5],"5":[420,54.5,1290,54.5,1290,54.5,1290,54.5],"6":[420,54.5,1260,54.5,1260,54.5,1260,54.5]}' http://192.168.0.65/tstat/program/heat
# Switches
#
switch:
#
- platform: tuya
#
name: Exterior Front
#
host: 192.168.0.68
#
local_key: a0e3e4afbb68af2e
#
device_id: 002007555ccf7f474b2d
#
id: 1
#
- platform: tuya
#
name: Exterior Rear
#
host: 192.168.0.69
#
local_key: 10a8b1550a11c5d3
#
device_id: 002007555ccf7f476045
#
id: 1
#
- platform: tuya
#
name: Deer
#
host: 192.168.0.70
#
local_key: ca552ea0870a8dc9
#
device_id: 002007555ccf7f4752a2
#
id: 1
#
- platform: tuya
#
name: Parol
#
host: 192.168.0.71
#
local_key: 3f1e38517ede9db2
#
device_id: 002007555ccf7f4793f6
#
id: 1
#
- platform: tuya
#
name: Living Room Tree
#
host: 192.168.0.72
#
local_key: b7ffee5f417017a0
#
device_id: 002007552c3ae813d422
#
id: 1
#
- platform: tuya
#
name: Family Room Tree
#
host: 192.168.0.73
#
local_key: e2e9a4e7e821e5a2
#
device_id: 002007552c3ae8138246
#
id: 1
switch
:
-
platform
:
tuya
name
:
Exterior Front
host
:
192.168.0.68
local_key
:
a0e3e4afbb68af2e
device_id
:
002007555ccf7f474b2d
id
:
1
-
platform
:
tuya
name
:
Exterior Rear
host
:
192.168.0.69
local_key
:
10a8b1550a11c5d3
device_id
:
002007555ccf7f476045
id
:
1
-
platform
:
tuya
name
:
Deer
host
:
192.168.0.70
local_key
:
ca552ea0870a8dc9
device_id
:
002007555ccf7f4752a2
id
:
1
-
platform
:
tuya
name
:
Parol
host
:
192.168.0.71
local_key
:
3f1e38517ede9db2
device_id
:
002007555ccf7f4793f6
id
:
1
-
platform
:
tuya
name
:
Living Room Tree
host
:
192.168.0.72
local_key
:
b7ffee5f417017a0
device_id
:
002007552c3ae813d422
id
:
1
-
platform
:
tuya
name
:
Family Room Tree
host
:
192.168.0.73
local_key
:
e2e9a4e7e821e5a2
device_id
:
002007552c3ae8138246
id
:
1
Home Assistant Configuration/ui-lovelace.yaml
View file @
c2f33dc0
...
...
@@ -119,3 +119,27 @@ views:
-
weblink.my_radiothermostat
-
weblink.homeassistant_changelog
-
weblink.veraedge
-
title
:
Christmas
id
:
christmas
cards
:
-
type
:
entities
title
:
Automations
entities
:
-
automation.turn_on_the_christmas_tree_lights_at_sunset
-
automation.turn_on_the_exterior_christmas_lights_15_minutes_after_sunset
-
automation.turn_on_the_christmas_deer_30_minutes_after_sunset
-
automation.turn_off_the_interior_christmas_lights_at_10pm
-
automation.turn_off_the_exterior_christmas_lights_at_11pm
-
type
:
entities
title
:
Interior
entities
:
-
switch.family_room_tree
-
switch.living_room_tree
-
switch.parol
-
type
:
entities
title
:
Exterior
entities
:
-
switch.deer
-
switch.exterior_front
-
switch.exterior_rear
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment