# Noob no HA - integrar sonoff Inching /self-locking para portão

**URL:** https://forum.cpha.pt/t/noob-no-ha-integrar-sonoff-inching-self-locking-para-portao/2826
**Category:** Configuração
**Tags:** sonoff, hassio, tasmota
**Created:** [2 Agosto , 2019 20:59 UTC](https://forum.cpha.pt/t/noob-no-ha-integrar-sonoff-inching-self-locking-para-portao/2826 "2019-08-02T20:59:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joaopequeno](https://forum.cpha.pt/user_avatar/forum.cpha.pt/joaopequeno/32/5514_2.png) [@joaopequeno](https://forum.cpha.pt/u/joaopequeno)
#### Post date: [2 Agosto , 2019 20:59 UTC](https://forum.cpha.pt/t/noob-no-ha-integrar-sonoff-inching-self-locking-para-portao/2826/1 "2019-08-02T20:59:23Z")

</div>

Boas pessoal,

Sou novato nestas andanças e preciso de alguma ajuda.  
Tenho a placa:

> **[SONOFF RE5V1C – 5V wifi inching/selflock relay module](https://itead.cc/product/sonoff-re5v1c/)**
>
> Nano Size  Dry Contact Output Low Power Supply – 5VDC low voltage input 2 Working modes – self-locking and inching mode LAN Control – Turn on/off the device even when WiFi has no Intern…

Já flashei tasmota e está a funcionar.  
Já a configurei e tenho os seguintes reports via mqtt:  
21:54:58 MQT: tele/Portaojoao/STATE = {“Time”:“2019-08-02T21:54:58”,“Uptime”:“2T04:29:00”,“Heap”:15,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“CasaCernacheJ”,“BSSId”:“00:06:91:57:86:00”,“Channel”:1,“RSSI”:42,“LinkCount”:3,“Downtime”:“0T00:02:02”}}  
21:54:58 MQT: tele/Portaojoao/SENSOR = {“Time”:“2019-08-02T21:54:58”,“Switch1”:“OFF”,“Switch2”:“OFF”}

21:56:15 MQT: stat/Portaojoao/RESULT = {“POWER”:“ON”}  
21:56:15 MQT: stat/Portaojoao/POWER = ON (retained)  
21:56:16 SRC: PulseTimer  
21:56:16 MQT: stat/Portaojoao/RESULT = {“POWER”:“OFF”}  
21:56:16 MQT: stat/Portaojoao/POWER = OFF (retained)

Apenas damos um sinal de toogle e ele automaticamente ao fim de x segundos muda de estado para só fazer um impulso.  
A minha duvida é como integrar isto no HA.  
No HA já tenho o broker a funcionar e a receber.  
A duvida é como fazer tudo o resto, receber a informação e dar as ordens.  
Alguém me pode dar uma ajuda?

---

<div class="post-metadata">

### Author: ![j\_assuncao](https://forum.cpha.pt/user_avatar/forum.cpha.pt/j_assuncao/32/3_2.png) [@j\_assuncao](https://forum.cpha.pt/u/j_assuncao)
#### Post date: [2 Agosto , 2019 21:09 UTC](https://forum.cpha.pt/t/noob-no-ha-integrar-sonoff-inching-self-locking-para-portao/2826/2 "2019-08-02T21:09:45Z")

</div>

Para fazeres a integração nada melhor que ler a wiki do tasmota. Se depois tiveres alguma duvida é só dizer.

> **[GitHub - arendst/Tasmota: Alternative firmware for ESP8266 and ESP32 based...](https://github.com/arendst/Tasmota)**
>
> Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
