diff --git a/lights/living_room.yaml b/lights/living_room.yaml new file mode 100644 index 0000000..e99a71a --- /dev/null +++ b/lights/living_room.yaml @@ -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 \ No newline at end of file diff --git a/scripts/inside_all_off.yaml b/scripts/inside_all_off.yaml new file mode 100644 index 0000000..37d61ed --- /dev/null +++ b/scripts/inside_all_off.yaml @@ -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!" \ No newline at end of file diff --git a/scripts/inside_all_on.yaml b/scripts/inside_all_on.yaml index 7c758fd..e0208a2 100644 --- a/scripts/inside_all_on.yaml +++ b/scripts/inside_all_on.yaml @@ -6,7 +6,10 @@ sequence: - service: switch.turn_on data: entity_id: switch.tower_lamp - -#- service: notify.notify -# data: -# message: "Outside lights are on!" \ No newline at end of file +- service: scene.turn_on + data: + entity_id: scene.livingroom_normal +- service: notify.notify + data: + title: 'Anchorage House' + message: "Inside lights are on!" \ No newline at end of file diff --git a/scripts/outside_all_off.yaml b/scripts/outside_all_off.yaml new file mode 100644 index 0000000..f66eff7 --- /dev/null +++ b/scripts/outside_all_off.yaml @@ -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!" \ No newline at end of file diff --git a/scripts/outside_all_on.yaml b/scripts/outside_all_on.yaml index 9571c9e..ca4b05d 100644 --- a/scripts/outside_all_on.yaml +++ b/scripts/outside_all_on.yaml @@ -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!" \ No newline at end of file + entity_id: switch.front_porch_right +- service: notify.notify + data: + title: 'Anchorage House' + message: "Outside lights are on!" \ No newline at end of file diff --git a/scripts/refresh_devices.yaml b/scripts/refresh_devices.yaml new file mode 100644 index 0000000..c51878f --- /dev/null +++ b/scripts/refresh_devices.yaml @@ -0,0 +1,5 @@ +sequence: +- service: mqtt.publish + data: + topic: "owntracks/owntracks/jeffreysphone/cmd" + payload_template: '{"_type":"cmd","action":"reportLocation"}' \ No newline at end of file diff --git a/switches/living_room.yaml b/switches/living_room.yaml index 797fd73..0342142 100644 --- a/switches/living_room.yaml +++ b/switches/living_room.yaml @@ -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"