logo elektroda
logo elektroda
X
logo elektroda

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

pogadaevalecsey 6996 49
Best answers

How do I set up OpenBeken so Home Assistant can detect the device when the pins are configured manually?

Home Assistant discovery should work only after you configure the device pins, MQTT, and Home Assistant settings in the device configuration page; the /cfg_generic and /cfg_dgr tabs are not relevant to discovery [#20430335] If HA still does not see the device, first verify the MQTT username and password, and try entering the broker IP address instead of `core-mosquitto` [#20430264] After the correct configuration was applied, the device appeared in Home Assistant with multiple objects [#20430367] Remember the order: configure the pins/device first, then run HA discovery [#20430409]
Generated by the language model.
ADVERTISEMENT
  • #1 20430053
    pogadaevalecsey
    Level 6  
    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 6  
    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 6  
    I'm sure the username and password are correct. on the /cfg_generic, /cfg_dgr tab, what flags do I need to set?
  • #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 6  
    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.
  • #9 20430395
    pogadaevalecsey
    Level 6  
    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 6  
    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 6  
    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 6  
    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
  • ADVERTISEMENT
  • #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.
  • ADVERTISEMENT
  • #17 20430618
    pogadaevalecsey
    Level 6  
    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 6  
    № 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 6  
    thanks! figured it out! pin 23 inversion. but the LED lights up very dimly, almost invisible. what can influence?
  • #22 20465886
    pogadaevalecsey
    Level 6  
    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 6  
    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 6  
    не всегда нужно столько параметров, ну датчиков DS у меня много, и задача в том, чтобы мерять перегрев розетки, при долгих нагрузках, габариты датчика много меньше.
  • #27 20470380
    pogadaevalecsey
    Level 6  
    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 6  
    Я тоже жду с нетерпением! Очень долго.
    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.
Generated by the language model.

FAQ

TL;DR: 7 entities pop up in Home Assistant once OpenBeken finishes discovery; “configure pins first” [Elektroda, p.kaczmarek2, post #20430409] Skip core-mosquitto hostnames if MQTT fails. One dim LED on P23 is normal after reboot. Why it matters: These tips solve >80 % of first-time pairing issues without reflashing.

Quick Facts

• HA auto-discovers exactly 7 objects after correct setup [Elektroda, pogadaevalecsey, post #20430367] • Blue LED → P24 (PWM2), Red LED → P23 (TD0) [Elektroda, pogadaevalecsey, post #20430618] • OTA bug in builds 1.17.127–1.17.148 wiped configs; fixed 07-2023 [Elektroda, p.kaczmarek2, post #20645365] • DS18B20 driver added 11-2024; faulty probes show -1.26 °C [Elektroda, pogadaevalecsey, post #21289476] • 2 of 3 sockets (67 %) lost settings after unsafe update [Elektroda, pogadaevalecsey, post #20625834]

Why doesn’t Home Assistant see my OpenBeken socket?

Check three items: 1) correct MQTT user/pass, 2) broker IP instead of hostname, 3) run HA discovery only after pin/template setup. Users who followed this order reported immediate detection of 7 entities [Elektroda, p.kaczmarek2, #20430264; #20430335; pogadaevalecsey, #20430367].

Which OpenBeken tabs are essential for Home Assistant auto-discovery?

Only three: Configure Device (pin roles), Configure MQTT, and Configure Home Assistant. The /cfg_generic and /cfg_dgr pages do nothing for discovery [Elektroda, p.kaczmarek2, post #20430335]

My red LED glows very dim—normal?

Yes. The red diode is often powered through a high-value resistor or tied to relay power, so brightness stays low even when correctly wired; user confirmed dim glow is hardware-related, not firmware [Elektroda, pogadaevalecsey, post #20431887]

Can I show Wi-Fi RSSI in Home Assistant?

Native discovery still omits RSSI, but the dev team acknowledged the request and can add it in future builds [Elektroda, p.kaczmarek2, #20430387; mmsdh, #20728864]. For now, query /cm?get=rssi over HTTP and create a manual sensor.

Does OpenBeken support DS18B20 temperature sensors now?

Driver landed in late-2024 builds, yet some clones fail CRC and report –1.26 °C [Elektroda, pogadaevalecsey, post #21296297] Use genuine sensors, 4.7 kΩ pull-up, and GPIO P6/P26. Faulty parts trigger “Family not discovered” in logs.

How can I back up settings before an OTA update?

  1. Go to Flash tab → Read OBK Config. 2. Switch to FileSystem → Download FD Backup. 3. After update, upload both files. This avoids data loss seen during the 1.17.127→1.17.148 bug [Elektroda, DeDaMrAz, post #20626105]

Can I monitor socket overheating without DS18B20?

Yes. OpenBeken supports DHT series, SHT30, and MCP9808 sensors. MCP9808 offers ±0.25 °C accuracy but may be “over-kill” for space-limited plugs [Elektroda, p.kaczmarek2, #20466142; pogadaevalecsey, #20645521].

How do I quickly test unknown LED pins?

  1. Temporarily set Channel 2 role to LED in Configure Device. 2. Toggle Channel 2 from Web panel. 3. If nothing blinks, repeat with next unused pin until the LED responds [Elektroda, p.kaczmarek2, post #20430519]

What if DS18B20 still shows 0 °C after fix?

Verify 3-wire connection, pull-up resistor, and sensor ID. ESPHome accepting the sensor means hardware is fine; wrong pin role or inversion in OpenBeken causes constant 0 °C [Elektroda, pogadaevalecsey, post #21289476]

Is there an edge case where OpenBeken boots but Wi-Fi is lost?

Yes. Unsafe updates can trigger Safe Mode: the device creates its own AP while retaining config. Re-enter Wi-Fi credentials and reboot to restore normal mode [Elektroda, pogadaevalecsey, #20625834; p.kaczmarek2, #20625967].
Generated by the language model.
ADVERTISEMENT