Updated scripts with switches and lights
This commit is contained in:
parent
5098da9b43
commit
bc501622e9
|
@ -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
|
|
@ -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!"
|
|
@ -6,7 +6,10 @@ sequence:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: switch.tower_lamp
|
entity_id: switch.tower_lamp
|
||||||
|
- service: scene.turn_on
|
||||||
#- service: notify.notify
|
data:
|
||||||
# data:
|
entity_id: scene.livingroom_normal
|
||||||
# message: "Outside lights are on!"
|
- service: notify.notify
|
||||||
|
data:
|
||||||
|
title: 'Anchorage House'
|
||||||
|
message: "Inside lights are on!"
|
|
@ -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!"
|
|
@ -11,10 +11,11 @@ sequence:
|
||||||
entity_id: switch.side_door_light
|
entity_id: switch.side_door_light
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: front_porch_left
|
entity_id: switch.front_porch_left
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: front_porch_right
|
entity_id: switch.front_porch_right
|
||||||
#- service: notify.notify
|
- service: notify.notify
|
||||||
# data:
|
data:
|
||||||
# message: "Outside lights are on!"
|
title: 'Anchorage House'
|
||||||
|
message: "Outside lights are on!"
|
|
@ -0,0 +1,5 @@
|
||||||
|
sequence:
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "owntracks/owntracks/jeffreysphone/cmd"
|
||||||
|
payload_template: '{"_type":"cmd","action":"reportLocation"}'
|
|
@ -5,15 +5,6 @@
|
||||||
payload_on: "on"
|
payload_on: "on"
|
||||||
payload_off: "off"
|
payload_off: "off"
|
||||||
retain: true
|
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
|
- platform: mqtt
|
||||||
name: "Rail Lights"
|
name: "Rail Lights"
|
||||||
state_topic: "smartthings/Stairs Rail/switch"
|
state_topic: "smartthings/Stairs Rail/switch"
|
||||||
|
|
Loading…
Reference in New Issue