Home-AssistantConfig/config/automation/Speech/new_device.yaml

26 lines
1.1 KiB
YAML
Raw Normal View History

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."
- service: script.tweet_engine_no_image
2018-01-02 00:00:45 +00:00
data_template:
tweet: >
{{ [
"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
##############################################################################