|
|
@@ -277,95 +277,6 @@
|
|
|
milliseconds: 0
|
|
|
mode: single
|
|
|
max_exceeded: silent
|
|
|
-- id: '1684741441916'
|
|
|
- alias: atmosphere effect 1
|
|
|
- description: ''
|
|
|
- triggers:
|
|
|
- - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
|
|
|
- domain: zha
|
|
|
- type: remote_button_double_press
|
|
|
- subtype: button_4
|
|
|
- trigger: device
|
|
|
- conditions: []
|
|
|
- actions:
|
|
|
- - data:
|
|
|
- effect: colorloop
|
|
|
- action: light.turn_on
|
|
|
- target:
|
|
|
- entity_id: light.atmosphere
|
|
|
- mode: single
|
|
|
-- id: '1684741637840'
|
|
|
- alias: atmosphere hot pink
|
|
|
- description: ''
|
|
|
- triggers:
|
|
|
- - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
|
|
|
- domain: zha
|
|
|
- type: remote_button_short_press
|
|
|
- subtype: button_4
|
|
|
- trigger: device
|
|
|
- conditions: []
|
|
|
- actions:
|
|
|
- - data:
|
|
|
- rgb_color:
|
|
|
- - 197
|
|
|
- - 27
|
|
|
- - 87
|
|
|
- brightness_pct: 15
|
|
|
- action: light.turn_on
|
|
|
- target:
|
|
|
- entity_id: light.atmosphere
|
|
|
- mode: single
|
|
|
-- id: '1684741696773'
|
|
|
- alias: atmosphere off
|
|
|
- description: ''
|
|
|
- triggers:
|
|
|
- - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
|
|
|
- domain: zha
|
|
|
- type: remote_button_short_press
|
|
|
- subtype: button_1
|
|
|
- trigger: device
|
|
|
- conditions: []
|
|
|
- actions:
|
|
|
- - data:
|
|
|
- transition: 3
|
|
|
- action: light.turn_off
|
|
|
- target:
|
|
|
- entity_id: light.atmosphere
|
|
|
- mode: single
|
|
|
-- id: '1684741914422'
|
|
|
- alias: atmosphere brighter
|
|
|
- description: ''
|
|
|
- triggers:
|
|
|
- - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
|
|
|
- domain: zha
|
|
|
- type: remote_button_short_press
|
|
|
- subtype: button_3
|
|
|
- trigger: device
|
|
|
- conditions: []
|
|
|
- actions:
|
|
|
- - data:
|
|
|
- brightness_step: 50
|
|
|
- action: light.turn_on
|
|
|
- target:
|
|
|
- entity_id: light.atmosphere
|
|
|
- mode: single
|
|
|
-- id: '1684741987579'
|
|
|
- alias: atmosphere dimmer
|
|
|
- description: ''
|
|
|
- triggers:
|
|
|
- - device_id: 6c7dfb43f3f808a5498864911e8ab1ab
|
|
|
- domain: zha
|
|
|
- type: remote_button_short_press
|
|
|
- subtype: button_2
|
|
|
- trigger: device
|
|
|
- conditions: []
|
|
|
- actions:
|
|
|
- - data:
|
|
|
- brightness_step: -50
|
|
|
- action: light.turn_on
|
|
|
- target:
|
|
|
- entity_id: light.atmosphere
|
|
|
- mode: single
|
|
|
- id: '1701926625524'
|
|
|
alias: Office Heater - Turn Off
|
|
|
description: ''
|
|
|
@@ -694,14 +605,52 @@
|
|
|
encoding: ''
|
|
|
conditions: []
|
|
|
actions:
|
|
|
+ - variables:
|
|
|
+ timestamp: '{{ now().strftime("%Y%m%d_%H%M%S") }}'
|
|
|
+ image_file: '{{ trigger.payload_json.oid }}_{{ timestamp }}.jpg'
|
|
|
+ - action: shell_command.save_payload_image
|
|
|
+ data:
|
|
|
+ payload: '{{ trigger.payload_json.image }}'
|
|
|
+ filename: '{{ image_file }}'
|
|
|
+ - delay: 00:00:01
|
|
|
- action: notify.adris_mobile_devices
|
|
|
- metadata: {}
|
|
|
data:
|
|
|
- message: Person Detected in Bedrrom
|
|
|
+ message: Person Detected in Bedroom
|
|
|
title: Bedroom Activity Detected
|
|
|
data:
|
|
|
- channel: Outdoor Activity
|
|
|
+ channel: Indoor Activity
|
|
|
group: motion_detection
|
|
|
- image: '{{ trigger.payload }}'
|
|
|
+ image: /local/snapshots/{{ image_file }}.jpg
|
|
|
+ actions:
|
|
|
+ - action: VIEW
|
|
|
+ title: View Recording
|
|
|
+ uri: http://athena.dgtlu.net:8090/streamFile.cgi?oid={{ trigger.payload_json.oid
|
|
|
+ }}&ot=2&fn={{ trigger.payload_json.file }}
|
|
|
mode: single
|
|
|
max_exceeded: silent
|
|
|
+- id: '1767242164550'
|
|
|
+ alias: Cleanup Old Snapshots
|
|
|
+ description: ''
|
|
|
+ triggers:
|
|
|
+ - trigger: time
|
|
|
+ at: 03:00:00
|
|
|
+ actions:
|
|
|
+ - action: shell_command.cleanup_snapshots
|
|
|
+ data: {}
|
|
|
+- id: '1767253364578'
|
|
|
+ alias: Sync Assist Entities to Alexa
|
|
|
+ description: ''
|
|
|
+ triggers:
|
|
|
+ - event_type: homeassistant_started
|
|
|
+ trigger: event
|
|
|
+ - event_type: sync_alexa_entities
|
|
|
+ trigger: event
|
|
|
+ - at: 03:00:00
|
|
|
+ trigger: time
|
|
|
+ actions:
|
|
|
+ - delay: 10
|
|
|
+ - action: shell_command.sync_to_alexa
|
|
|
+ - delay: 5
|
|
|
+ - action: persistent_notification.create
|
|
|
+ data:
|
|
|
+ message: Alexa sync complete. Say 'Alexa, discover devices'
|