Rest_command - unable to use (need help with config)

Hi to all,

i trying to use rest_command

  1. i added the rest_command: !include config/rest.yaml in my configuration.yaml
  2. create new file config/rest.yaml
  3. the file include the following:

The issue:

  1. when i trying to use service to call rest, i didnt find any …
    image
  2. my config is good?

Change that to:

rest_command: !include rest.yaml

all my files are under config
image

Hmm. For comparison, all my configuration files are in /home/ha/docker/homeassistant so when I refer to them within the config file they look like this:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
rest_command: !include rest.yaml

In order to assist you:

  • I created rest.yaml, containing two rest commands, in the same directory as all other *.yaml files.
#rest_command:
  test_1:
    url: 'http://192.168.1.100/whatever?cmd=something'
  test_2:
    url: 'http://192.168.1.100/whatever?cmd=something_else'
  • Added rest_command: !include rest.yaml to the config file.
  • Restarted Home Assistant
  • The two rest commands appear in the Services list.

Screenshot%20from%202019-07-06%2016-23-04

I’m not sure why this doesn’t work for you.