Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99284

REST switch not showing up

$
0
0

@Rafael_Couto wrote:

Hi there,

As you might guess from this post I’m an absolute beginner with HA. I’m trying to add one Shelly 1 to Home Assistant and to do so I’m trying to set up a RESTfull switch.

The thing is that the configuration seems to be correct however the switch does not show up anywhere (entities and dev tools). I’ve already restarted HA several times.

Below is my configuration.yaml


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

switch:
  - platform: rest
    name: "Shelly 1 Control"
    scan_interval: 5
    resource: http://192.168.5.151/relay/0
    body_on: 'turn=on'
    body_off: 'turn=off'
    is_on_template: '{{ value_json.ison == true }}'
    headers:
      content-type: application/x-www-form-urlencoded
    username: MY_USERNAME
    password: MY_PASSWORD

Am I doing something wrong?

Thanks in advance for any help :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99284

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>