I think I’ve read every thread here and have done all the troubleshooting I can think of, and so begrudgingly post here asking for help again.
I’ve got Assistant Relay setup and working in sandbox mode on port 3000 - It’s all great. Does what I need it to do. The integration into HA is what is broken.
I’ve tried to issue commands from an automation and from a button card in Lovelace with no success.
Here’s the relevant code from configuration.yaml
rest_command:
assistant_relay:
url: 'http://homeassistant.local:3000/assistant/'
method: 'post'
content_type: 'application/json'
payload: '{"user": "Home","command": "{{ message }}"}'
And here’s the automations.yaml
- id: '1634753047489'
alias: Test Lights
description: ''
trigger:
- platform: time
at: 05:45:00
condition: []
action:
- service: rest_command.assistant_relay
data:
message: turn off the living room light
mode: single
max: 10
Any help is appreciated.