Hi,
I have a virtual light in home assistant in lights.yaml:
platform: template
lights:
light_1:
unique_id: light.light_1
turn_on:
service: rest_command.rest_command_test
data:
param_1: "test"
param_2: "1"
turn_off:
service: rest_command.rest_command_test
data:
param_1: "test"
param_2: "0"
set_level:
service: rest_command.rest_command_test
data:
param_1: "test"
param_2: "{{ brightness }}"
where in rest_commands.yaml I have:
rest_command_test:
url: "http://192.168.1.10:4444"
method: put
content_type: "application/x-www-form-urlencoded"
payload: "test:{{ param_1 }} ,{{ param_2 }}"
it is working and I receive rest_command correctly in my ip, but when I light on from google assistant, the rest_command executes correctly but google say that thre is not response from smart home device.
Could I configure the virtual light without state?
so, What do I have to answer to home assistant for the answer to reach Google assistant?
Thanks