logo elektroda
logo elektroda
X
logo elektroda

[CBU/BK7231N] AVATTO GDS16 WiFi relay module - Sensor Problem

gobbirock 78 0
ADVERTISEMENT
  • #1 21909526
    gobbirock
    Level 1  
    Posts: 1
    Hi everyone, I bought a garage door opener from Avatto GDS16:
    [CBU/BK7231N] AVATTO GDS16 WiFi relay module - Sensor Problemcase.png (5.23 MB)You must be logged in to download this attachment.
    [CBU/BK7231N] AVATTO GDS16 WiFi relay module - Sensor Problemside_1.png (5.58 MB)You must be logged in to download this attachment.
    [CBU/BK7231N] AVATTO GDS16 WiFi relay module - Sensor Problemback_1.png (5.32 MB)You must be logged in to download this attachment.

    I was able to get the original firmware and get the info below:
    I: UPK: Found BK7231N config!
    I: UPK: Switch/plug config
    I: UPK: - relay 1: pin P6
    I: UPK: - button 1: pin P26
    I: UPK: Status LED: pin P9, inverted False

    After that, flashing the ESPhome kickstart firmware was easy.

    The relay and the LED work fine, no problem at all, but I was not able to make the sensor pin work.
    I try to mark the pin as an input_pullup and other pins as well, but nothing works.
    I have two of it and the result is the same for both.
    Can someone help me figure this out?

    This is the code that I use:
    binary_sensor:
    - platform: gpio
    pin:
    number: 26
    mode:
    input: true
    pullup: true
    name: STATUS PORTAO A 2
    filters:
    - delayed_on_off: 1000ms
    device_class: garage_door
  • ADVERTISEMENT
ADVERTISEMENT