Sonoff SV, ESPHome, Home Assistant, Electronic Gate Lock Installation with keypad and remote access

preview_player
Показать описание
Installation of an electronic lock to an exterior side gate with keypad access on a Sonoff SV, flashed with ESPHome on Home Assistant.

Parts:

ESPHome file:

esphome:
name: gate
platform: ESP8266
board: esp01_1m
on_boot:

wifi:
ssid: "YOUR SSID HERE"
password: "YOUR PASSWORD HERE"

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

binary_sensor:
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
name: "Side Gate"
device_class: door
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Exit Button"
on_press:
- delay: 3000ms

switch:
- platform: gpio
pin: GPIO12
id: relay
- platform: template
icon: "mdi:gate"
name: "Gate Controller"
turn_on_action:
- delay: 3000ms

status_led:
pin:
number: GPIO13
Рекомендации по теме
Комментарии
Автор

Very well explained and demonstrated. I too uses it for my garage gate. Would be nice to see how you implemented it.

tald
Автор

Excellent video. Thank you for posting this

eclecticlife
Автор

Great video. I have mine all set up, thanks to you. Much appreciated!

A question for you; it there any way to program the chip so that at certain times of the day and on certain days typing in the key code on the keypad does not allow access, but one can gain access through Home Assistant. For example no access via the keypad from 10pm to 6pm Monday to Friday, though continuous access via Home Assistant.

thomasohart
Автор

Great video, will you put up the video for the button as well?

marcusasteborg
Автор

Nice Video. This gate door sensor is what I want to have. But you have it auto-locked implemented. Sweet. Wonder how the lock auto turned on when gate is closed. Missed that part. Thank you.

duckyducky
Автор

Great video
Hi what’s the distance entity on your garage card

Johnsmith-ucdf
Автор

Hi @zedexpro....any chance we could get that garage door setup? your videos are very easy to follow. Thanks!

MoAnwar
Автор

Well done! Nice video. Could you share how you going to set the pin? can this be configure on Sonoff basic instead of Sonoff SV? Thanks in advance.

jamesmb
Автор

Great video, am about to implement it, few questions though:
The product links are now long expired, was the lock you used a fail open lock? so it requires power to stay locked?
I've just purchased a fail secure lock, so it only requires power to unlock, as I'm running it all off a 12v battery temporarily. Would I be correct in changing this code:

on_boot:
- switch.turn_on: relay
to
on_boot:
- switch.turn_off: relay

and also reversing on and off in this code too?

name: "Exit Button"
on_press:
- switch.turn_off: relay
- delay: 3000ms
- switch.turn_on: relay

Also, this is a couple years old (HA looks so dated lol) and with recent BLE advances in HA I want to add my phone as a beacon to open the lock, any pointers on that please?

I see from previous comments it's not possible to use the doorbell button on the keypad without sacrificing the gate status, which I need, so am going to look at other ESP boards...

Thanks again for the tutorial, Ill report back with my progress... Cheers!

nicnicol
Автор

Zed, me again. Would you happen to have any idea how to incorporate the 'door bell' button into the SV, so that, when someone pushes the door bell button, I get a notification on my phone.

Cheers

thomasohart
Автор

I am having problems controlling the gate after installing sonoff in isolated mode. the range of the controller has been reduced and only works within 2 meters of the gate. Do you have any idea?

Dunkeej
Автор

you have added a switch in your home assistand lovelayce but is it not staying open wy did you not use a button than? but nice video i was playing around with it but didnt work now it does thx freetings from the netherlands

thepepishow
Автор

Nice, is it possible add virtual switch for Doorbell? Push the button on keypad and run automation to HA and to google home...

chrupkatomas
Автор

can i replace keypad with r503 capasitive finger print, thank you

giantbrain
Автор

Can I flash Sonoff sv with Tasmota and achieve this? If not I’m going to use ESPHome anyway Thanks

korntawatpoupart
Автор

Product links expired - can you perhaps provide updated links or description, especially for this exact lock?

markojoubert
Автор

great solution but it relies heavily on electricity, I prefer to have the option to use a key in case of no power.

ABnSuItan