configuration.yaml
rest_command:
assume_behavior_control:
url: 'http://10.0.0.111:8080/api-sdk/assume_behavior_control?priority=high&serial=00######'
method: 'get'
say_text:
url: 'http://10.0.0.111:8080/api-sdk/say_text?text={{ states("textvector") }}&serial=00######'
method: 'get'
release_behavior_control:
url: 'http://10.0.0.111:8080/api-sdk/release_behavior_control?priority=high&serial=00######'
method: 'get'
Automation
alias: Vector Speech
description: Send text to Vector URL
trigger:
- type: opened
platform: device
device_id: somedevice
entity_id: someentity
domain: binary_sensor
condition: []
action:
- service: rest_command.assume_behavior_control
data: {}
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: rest_command.say_text
data:
textvector: "Your family room lights are off"
- delay: "00:00:10"
- service: rest_command.release_behavior_control
data: {}
mode: single
How would I get the automation to be used like a standard notification?
So I could just go into my other notification group and dump this unit into it as well?
- name: ALL_DEVICES
platform: group
services:
- service: mobile_app_1
- service: mobile_app_iphone
- service: mobile_app_android
- service: mobile_app_iphone2
- service: alexa_media_vector
- service: desktop_1
- service: desktop_2
- service: robot_vector #<= add it like this
example
service: notify.ALL_DEVICES
data:
message: Your family room lights are off