Updated scripts with switches and lights

This commit is contained in:
Jeffrey Stone 2017-01-05 11:23:30 -05:00
parent 5098da9b43
commit bc501622e9
7 changed files with 60 additions and 18 deletions

9
lights/living_room.yaml Normal file
View File

@ -0,0 +1,9 @@
- platform: mqtt
name: "Tower Lamp"
state_topic: "smartthings/Tower Lamp/switch"
command_topic: "smartthings/Tower Lamp/switch"
brightness_state_topic: "smartthings/Tower Lamp/level"
brightness_command_topic: "smartthings/Tower Lamp/level"
payload_on: "on"
payload_off: "off"
retain: true

View File

@ -0,0 +1,12 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning inside lights off."
- service: switch.turn_off
data:
entity_id: switch.tower_lamp
- service: notify.notify
data:
title: 'Anchorage House'
message: "Inside lights are on!"

View File

@ -6,7 +6,10 @@ sequence:
- service: switch.turn_on
data:
entity_id: switch.tower_lamp
#- service: notify.notify
# data:
# message: "Outside lights are on!"
- service: scene.turn_on
data:
entity_id: scene.livingroom_normal
- service: notify.notify
data:
title: 'Anchorage House'
message: "Inside lights are on!"

View File

@ -0,0 +1,21 @@
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "Turning outside lights off."
- service: switch.turn_off
data:
entity_id: switch.driveway_light
- service: switch.turn_off
data:
entity_id: switch.side_door_light
- service: switch.turn_off
data:
entity_id: switch.front_porch_left
- service: switch.turn_off
data:
entity_id: switch.front_porch_right
- service: notify.notify
data:
title: 'Anchorage House'
message: "Outside lights are off!"

View File

@ -11,10 +11,11 @@ sequence:
entity_id: switch.side_door_light
- service: switch.turn_on
data:
entity_id: front_porch_left
entity_id: switch.front_porch_left
- service: switch.turn_on
data:
entity_id: front_porch_right
#- service: notify.notify
# data:
# message: "Outside lights are on!"
entity_id: switch.front_porch_right
- service: notify.notify
data:
title: 'Anchorage House'
message: "Outside lights are on!"

View File

@ -0,0 +1,5 @@
sequence:
- service: mqtt.publish
data:
topic: "owntracks/owntracks/jeffreysphone/cmd"
payload_template: '{"_type":"cmd","action":"reportLocation"}'

View File

@ -5,15 +5,6 @@
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Tower Lamp"
state_topic: "smartthings/Tower Lamp/switch"
command_topic: "smartthings/Tower Lamp/switch"
brightness_state_topic: "smartthings/Tower Lamp/level"
brightness_command_topic: "smartthings/Tower Lamp/level"
payload_on: "on"
payload_off: "off"
retain: true
- platform: mqtt
name: "Rail Lights"
state_topic: "smartthings/Stairs Rail/switch"