logo elektroda
logo elektroda
X
logo elektroda

Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

pogadaevalecsey 4923 49
ADVERTISEMENT
  • #1 20430053
    pogadaevalecsey
    Level 5  
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    the pins are configured, the socket config is written manually in XA, if the manual is detailed on setting up?
  • ADVERTISEMENT
  • #2 20430182
    p.kaczmarek2
    Moderator Smart Home
    Hello, how may I help you with OpenBeken firmware?
    Can you correct the topic title?
    What is your pins configuration?
    Helpful post? Buy me a coffee.
  • #3 20430218
    pogadaevalecsey
    Level 5  
    p.kaczmarek2 wrote:


    hello, I have configured the pins the relay is working, my problem is that the homeassistant does not see the device, maybe I have not configured everything
  • #4 20430264
    p.kaczmarek2
    Moderator Smart Home
    Well, maybe first check if your password and username are correct. Then maybe try using IP instead of core-mosquitto (so enter 192.168.0.100 or anything like that)
    Helpful post? Buy me a coffee.
  • #5 20430299
    pogadaevalecsey
    Level 5  
    I'm sure the username and password are correct. on the /cfg_generic, /cfg_dgr tab, what flags do I need to set?
  • ADVERTISEMENT
  • #6 20430335
    p.kaczmarek2
    Moderator Smart Home
    The tabs you have mentioned have nothing to do with Home Assistant discovery.

    The only relevant tabs are Configure device (pins, configure MQTT, and configure HA.

    Have you followed the tutorial?


    Helpful post? Buy me a coffee.
  • #7 20430367
    pogadaevalecsey
    Level 5  
    thank you friend! now my HA sees the device, there are 7 objects, but among them I do not see the network status, the ability to turn on and off the LEDs on the device
  • #8 20430387
    p.kaczmarek2
    Moderator Smart Home
    What is your pins configuration of the device?

    I am not sure if we have network status (RSSI) in Discovery, but we can add it if you want
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20430395
    pogadaevalecsey
    Level 5  
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    yes
  • #10 20430409
    p.kaczmarek2
    Moderator Smart Home
    RSSI - okay, we can add it, you are correct.

    Power state - are you 100% sure? We just tested it on video, look:
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    So you don't get that on HA?

    Remember that you must first configure pins/device, then do HA discovery.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #11 20430424
    pogadaevalecsey
    Level 5  
    I meant on the device itself, there are two LEDs, red and blue.
  • #12 20430430
    p.kaczmarek2
    Moderator Smart Home
    Leds are configurable by user. Usually, one LED is for power state (relay state) and second for WiFi state. Do you have them configured? What is your pins configuration/template? What is not working?

    Pin roles are different between devices and not all devices have two leds. There are also devices with single LED, etc.

    Example, here is part of my config:
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    I have only WiFi LED. The power led is connected to relay electrically.
    Helpful post? Buy me a coffee.
  • #13 20430494
    pogadaevalecsey
    Level 5  
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

    network status, blue LED found, red not yet. ((, the ON switch did not display only sensors
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

    socket as in the photo pins in the table
  • #14 20430519
    p.kaczmarek2
    Moderator Smart Home
    Well, you have two options:
    1. open device case and check with multimeter where red LED is connected
    2. check in configuration each pin one by one (you can, for the time of testing, set LED channel to 2 and manually toggle channel 2 from www panel and check if it blinks, if not, set LED to another pin, etc, etc, try several times)
    Helpful post? Buy me a coffee.
  • #15 20430575
    pogadaevalecsey
    Level 5  
    strangely, I tried both on a straight line and in inversion, later I will try to call with a multimeter Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

    Added after 15 [minutes]:


    I disassembled the socket, it turns out the red LED is glowing but very dimly, turned off all pins, rebooted the device, the red LED works the same way
  • #16 20430605
    p.kaczmarek2
    Moderator Smart Home
    pogadaevalecsey wrote:
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

    This is okay, toggling channel 0 should toggle LED if it's connected to one of the pins.

    Or maybe is it NOT connected?
    Helpful post? Buy me a coffee.
  • #17 20430618
    pogadaevalecsey
    Level 5  
    The blue LED is connected to output #24 PWM2, the red one is connected to pin #17 TD0 flash SO

    Added after 4 [minutes]:

    on the firmware from tyua, it worked properly
  • #18 20430721
    p.kaczmarek2
    Moderator Smart Home
    pogadaevalecsey wrote:
    The blue LED is connected to output #24 PWM2, the red one is connected to pin #17 TD0 flash SO

    If you already know the pins for LEDs, then do they work correctly when configured? Or what is the problem exactly?

    Maybe you want to use LED_n instead of LED?
    Helpful post? Buy me a coffee.
  • #19 20430758
    pogadaevalecsey
    Level 5  
    № 24 PWM2 --- 8
    № 17 TD0 flash SO ------ ??
    What's the number? and why does it glow like a pwm?
  • Helpful post
    #20 20430806
    p.kaczmarek2
    Moderator Smart Home
    BK7231 datasheet, pinout, programming, specification, wiki (BK7231T, BK7231N)

    TDO is P23, if that's what you mean.

    What kind of WiFi module you got there? CB2S? WB2S?

    Dodano po 26 [sekundy]:

    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    Helpful post? Buy me a coffee.
  • #21 20431887
    pogadaevalecsey
    Level 5  
    thanks! figured it out! pin 23 inversion. but the LED lights up very dimly, almost invisible. what can influence?
  • #22 20465886
    pogadaevalecsey
    Level 5  
    You can add a temperature sensor to this device to monitor the overheating of the device? And we were talking about the status (RSSI) did you not implement its output?
  • #23 20466142
    p.kaczmarek2
    Moderator Smart Home
    Helpful post? Buy me a coffee.
  • #24 20468530
    pogadaevalecsey
    Level 5  
    ds18d20 no suport (((
  • #25 20468774
    p.kaczmarek2
    Moderator Smart Home
    Not yet, but we have DHT series support and SHT30, why would you need DS18B20? We also have TM1637:
    Six-digit LED display showing numbers 123456 in red, model TM1637.
    6-digit LED display TM1637 with red digits showing the number 100118.
    Six-digit LED display TM1637 showing red digits in the first position.
    Helpful post? Buy me a coffee.
  • #26 20468813
    pogadaevalecsey
    Level 5  
    не всегда нужно столько параметров, ну датчиков DS у меня много, и задача в том, чтобы мерять перегрев розетки, при долгих нагрузках, габариты датчика много меньше.
  • #27 20470380
    pogadaevalecsey
    Level 5  
    please make a support ds18d20
  • Helpful post
    #28 20470500
    p.kaczmarek2
    Moderator Smart Home
    I will, don't worry, I have it on my TODO list.

    In a meantime, please consider posting some more device teardowns/reviews on our forums.
    Helpful post? Buy me a coffee.
  • #29 20597330
    Znida2017
    Level 2  
    I was also surprised the DS18B20 is not supported. I was so sure it was I already soldered it and then tried to set up the pin :) I hope it will be supported soon if it's not too much trouble.
  • #30 20598074
    pogadaevalecsey
    Level 5  
    Я тоже жду с нетерпением! Очень долго.
    I'm looking forward to it too! For a very long time.

Topic summary

The discussion addresses issues with integrating OpenBeken-based smart sockets into Home Assistant (HA), focusing on manual pin configuration, MQTT setup, and device discovery. Initial problems included HA not detecting the device despite correct relay and pin settings. Solutions involved verifying MQTT credentials, using IP addresses instead of hostnames, and correctly configuring the "Configure device" tab rather than unrelated tabs. Users confirmed HA discovery works after proper setup, revealing multiple objects but lacking network status (RSSI) and LED control entities. LED behavior depends on pin assignments; blue LED typically indicates WiFi status, red LED power state, but pin mapping varies by device. Troubleshooting LED dimness involved checking pin inversion and electrical connections. Firmware from Tyua was noted to handle LEDs differently. The BK7231 chip pinout was referenced to clarify LED pin assignments. Users requested adding RSSI and temperature sensor support; current firmware supports DHT and SHT30 sensors but not DS18B20, which is pending implementation. OTA updates caused some users to lose full device configuration, including WiFi settings, due to a bug fixed in later builds. Backup and restore procedures for configurations were recommended. Recent firmware versions confirmed stable operation. Attempts to use DS18B20 sensors showed CRC errors and detection failures, while ESPHome platform supports BK7231 with DS18B20 successfully, leading some users to consider switching platforms. Overall, the thread provides practical guidance on manual device setup, pin configuration, LED control, MQTT troubleshooting, sensor integration, and firmware update management for OpenBeken devices in Home Assistant environments.
Summary generated by the language model.
ADVERTISEMENT