Skip to content

Commit

Permalink
Misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arsaboo committed Feb 13, 2022
1 parent 79b89cb commit 07aa31d
Show file tree
Hide file tree
Showing 254 changed files with 44,955 additions and 9,204 deletions.
518 changes: 376 additions & 142 deletions automations.yaml

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions binary_sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
sample_duration: 300
min_gradient: -0.0008
device_class: cold
- platform: wyzesense
device: auto
# - platform: wyzesense
# device: auto
- platform: 'bayesian'
prior: 0.75
name: 'Rashmi Home'
Expand All @@ -22,7 +22,7 @@
prob_given_false: 0.10
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.rashmiphone_2'
- entity_id: 'device_tracker.rashmiiphone'
prob_given_true: 0.99
prob_given_false: 0.4
platform: 'state'
Expand All @@ -31,7 +31,7 @@
prob_given_true: 1
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.e1594e53_21df_414c_82da_f655d5282fca'
- entity_id: 'device_tracker.275f08b3_dd14_459f_81b9_6c5b02c9b54e'
prob_given_true: 0.99
prob_given_false: 0.1
platform: 'state'
Expand All @@ -46,7 +46,7 @@
prob_given_false: 0.2
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.alok_s_iphone_2'
- entity_id: 'device_tracker.alokiphone_3'
prob_given_true: 0.99
prob_given_false: 0.10
platform: 'state'
Expand All @@ -61,7 +61,7 @@
prob_given_false: 0.1
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.b4445761_f6c0_4b7f_835f_cfdc03b47111'
- entity_id: 'device_tracker.alok_geofency'
prob_given_true: 0.99
prob_given_false: 0.1
platform: 'state'
Expand Down Expand Up @@ -138,3 +138,9 @@
name: Driveway
username: !secret hikvision_username
password: !secret hikvision_password
- platform: command_line
command: 'nslookup flurry.com | grep 0.0.0.0 | wc -l'
name: 'Internet Connected'
device_class: connectivity
payload_on: 1
payload_off: 0
74 changes: 74 additions & 0 deletions blueprints/script/homeassistant/confirmable_notification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
blueprint:
name: Confirmable Notification
description: >-
A script that sends an actionable notification with a confirmation before
running the specified action.
domain: script
source_url: https://github.com/home-assistant/core/blob/master/homeassistant/components/script/blueprints/confirmable_notification.yaml
input:
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive notifications.
selector:
device:
integration: mobile_app
title:
name: "Title"
description: "The title of the button shown in the notification."
default: ""
selector:
text:
message:
name: "Message"
description: "The message body"
selector:
text:
confirm_text:
name: "Confirmation Text"
description: "Text to show on the confirmation button"
default: "Confirm"
selector:
text:
confirm_action:
name: "Confirmation Action"
description: "Action to run when notification is confirmed"
default: []
selector:
action:
dismiss_text:
name: "Dismiss Text"
description: "Text to show on the dismiss button"
default: "Dismiss"
selector:
text:
dismiss_action:
name: "Dismiss Action"
description: "Action to run when notification is dismissed"
default: []
selector:
action:

mode: restart

sequence:
- alias: "Send notification"
domain: mobile_app
type: notify
device_id: !input notify_device
title: !input title
message: !input message
data:
actions:
- action: "CONFIRM"
title: !input confirm_text
- action: "DISMISS"
title: !input dismiss_text
- alias: "Awaiting response"
wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
- choose:
- conditions: "{{ wait.trigger.event.data.action == 'CONFIRM' }}"
sequence: !input confirm_action
- conditions: "{{ wait.trigger.event.data.action == 'DISMISS' }}"
sequence: !input dismiss_action
Loading

0 comments on commit 07aa31d

Please sign in to comment.