Tiago
(Tiago Stradiotto)
1
Hello, I need help with this problem, after adding the sersor to show the state of the gate has started the entity error not found
![Sem%20t%C3%ADtulo2](//community-assets.home-assistant.io/original/3X/5/d/5df5ca88e1d1c3059f3e139b8d66dbb3c0c17f85.png)
my code in configuration.yaml
Cover:
covers:
-
name: Portão
relay_pin: 27
state_pin: 22
invert_relay: false
invert_state: true
platform: rpi_gpio
relay_time: 2
state_pull_mode: DOWN
sensor:
platform: template
sensors:
garage_door:
friendly_name: "Portão ésta:"
value_template: "{{ states.cover.portao.state }}"
switch:
platform: rpi_gpio
ports:
4: "Luz 127V"
5: "Led Vermelho"
6: "Led Verde"
petro
(Petro)
2
That configuration is all sorts of wrong. Spacing and naming need to be exact. This is what it should look like.
cover:
- platform: rpi_gpio
invert_relay: false
invert_state: true
relay_time: 2
state_pull_mode: DOWN
covers:
- name: Portão
relay_pin: 27
state_pin: 22
Tiago
(Tiago Stradiotto)
3
Thank you for your attention, but the error still continues.
petro
(Petro)
4
it probably has a new entity_id because the other has been registered. Take a look in your states page for a similarly named cover.
Tiago
(Tiago Stradiotto)
5
This is the only cover I have.
I believe the error is here:
sensor:
-
platform: template
sensors:
garage_door:
friendly_name: "Portão ésta:"
value_template: "{{states.cover.portao.state}}"