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

I need Help with Shelly 2.5 integration

$
0
0

@bernadvd wrote:

Hey guys i need help

I am trying to integrate a Shelly 2.5 as a roller with HA and I have configured the sensor description, the rest_command and finally the cover, as follows:

sensor:
- platform: rest
** name: “my_cover_position”**
** scan_interval: 5**
** resource: http://192.168.0.18/roller/0**
** value_template: ‘{{ value_json.current_pos }}’**
** unit_of_measurement: “%”**
** headers:**
** content-type: application/x-www-form-urlencoded**

rest_command:
# Call cover action
shelly_cover_action:
** url: http://{{ip}}/roller/0**
** method: POST**
** headers:**
** accept: ‘application/json, text/html’**
** payload: ‘go={{action}}’**
** content_type: ‘application/x-www-form-urlencoded’**
** verify_ssl: true**
# Set cover position
shelly_cover_set_position:
** url: http://{{ip}}/roller/0**
** method: POST**
** headers:**
** accept: ‘application/json, text/html’**
** payload: ‘go=to_pos&roller_pos={{position}}’**
** content_type: ‘application/x-www-form-urlencoded’**
** verify_ssl: true**

cover:
- platform: template
** covers:**
** my_cover:**
** position_template: “{{ states(‘sensor.my_cover_position’) | float }}”**
** open_cover:**
** service: rest_command.shelly_cover_action**
** data:**
** ip: 192.168.0.18**
** action: open**

but when I save the configuration I get the following error

## Detalles de registro (ERROR)

Sun Feb 09 2020 23:57:53 GMT+0100 (hora estándar de Europa central)

Component error: shelly_cover_action - Integration ‘shelly_cover_action’ not found. Component error: shelly_cover_set_position - Integration ‘shelly_cover_set_position’ not found.

I don’t know what I’m doing wrong, can someone please help me?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles