2018-01-02 00:00:45 +00:00
|
|
|
##############################################################################
|
|
|
|
### New Device has connected to the network. let everyone know.
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
- alias: "New device connected"
|
|
|
|
trigger:
|
|
|
|
- platform: event
|
|
|
|
event_type: device_tracker_new_device
|
|
|
|
|
|
|
|
action:
|
|
|
|
- wait_template: >-
|
|
|
|
{{ not is_state('media_player.livingroomCC', 'playing') }}
|
|
|
|
|
|
|
|
- service: script.speech_engine
|
|
|
|
data_template:
|
|
|
|
NewDevice: "There has been a new device detected on the network. Be sure to appropriately catagorize {{trigger.event.data.host_name}} within Circle."
|
|
|
|
|
2020-06-27 17:24:25 +00:00
|
|
|
- service: script.tweet_engine_no_image
|
2018-01-02 00:00:45 +00:00
|
|
|
data_template:
|
|
|
|
tweet: >
|
|
|
|
{{ [
|
2018-09-15 18:51:25 +00:00
|
|
|
"New Device on the Network! @MeetCircle has alerted me and now it is locked down.",
|
2018-01-02 00:00:45 +00:00
|
|
|
"Constant monitoring of the network by @MeetCircle has detected a new device in the environment."
|
2020-05-03 20:35:25 +00:00
|
|
|
] | random + " (https://amzn.to/2eAgaA6)"}}
|
2018-01-02 00:00:45 +00:00
|
|
|
##############################################################################
|