mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 00:25:12 +00:00
Moving stuff around for organization.
This commit is contained in:
parent
fb4372b5d0
commit
676c554698
@ -1,16 +1,16 @@
|
|||||||
###################################
|
###################################
|
||||||
## Uses IFTTT to notify me of bad logins.
|
## Uses IFTTT to notify me of bad logins.
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
- alias: Login Failure
|
- alias: Login Failure
|
||||||
hide_entity: True
|
hide_entity: True
|
||||||
trigger:
|
trigger:
|
||||||
platform: template
|
platform: template
|
||||||
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
|
value_template: "{{ states('persistent_notification.httplogin') != 'unknown' }}"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: script.ifttt_notify
|
service: script.ifttt_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'Bad Login: '
|
value1: 'Bad Login: '
|
||||||
value2: 'There was a Hack attempt!'
|
value2: 'There was a Hack attempt!'
|
||||||
value3: 'Go Check the GUI for details.'
|
value3: 'Go Check the GUI for details.'
|
@ -1,29 +1,29 @@
|
|||||||
- alias: "Update Available Notification"
|
- alias: "Update Available Notification"
|
||||||
hide_entity: True
|
hide_entity: True
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: updater.updater
|
entity_id: updater.updater
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ states('updater.updater') != 'unknown' }}"
|
value_template: "{{ states('updater.updater') != 'unknown' }}"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.ifttt_notify
|
- service: script.ifttt_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'There is a new Version of Home-Assistant Available.'
|
value1: 'There is a new Version of Home-Assistant Available.'
|
||||||
value2: "{{ states('updater.updater') }}"
|
value2: "{{ states('updater.updater') }}"
|
||||||
value3: ''
|
value3: ''
|
||||||
|
|
||||||
- service: notify.html5
|
- service: notify.html5
|
||||||
data_template:
|
data_template:
|
||||||
title: "Update Available"
|
title: "Update Available"
|
||||||
message: "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
message: "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
||||||
data:
|
data:
|
||||||
url: "https://home-assistant.io/getting-started/installation-raspberry-pi-all-in-one/#upgrading"
|
url: "https://home-assistant.io/getting-started/installation-raspberry-pi-all-in-one/#upgrading"
|
||||||
|
|
||||||
- service: persistent_notification.create
|
- service: persistent_notification.create
|
||||||
data:
|
data:
|
||||||
title: "Update Available"
|
title: "Update Available"
|
||||||
message: "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
message: "Home Assistant {{ states('updater.updater') }} is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}"
|
||||||
notification_id: "update_available"
|
notification_id: "update_available"
|
Loading…
x
Reference in New Issue
Block a user