logo elektroda
logo elektroda
X
logo elektroda

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

pogadaevalecsey 6807 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]
ADVERTISEMENT
  • #31 20625806
    pogadaevalecsey
    Level 6  
    после обновления OpenBK7231N_1.17.148.rbl, мои розетки перестали работать.!!!
    after updating OpenBK7231N_1.17.148.rbl, my sockets stopped working.!!!
  • ADVERTISEMENT
  • #32 20625830
    p.kaczmarek2
    Moderator Smart Home

    Hello, can you provide more information, which sockets, which platform?

    I today updated first to 1.17.137:
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    and then to 1.17.148:
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    and it works for me. Do you have problems on a single socket or on many ones?
    Helpful post? Buy me a coffee.
  • #33 20625834
    pogadaevalecsey
    Level 6  
    I had three sockets, I updated two, they stopped working, I did not update the third, I did not update. What information do you need to give?

    Added after 2 [minutes]:

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

    Added after 2 [minutes]:

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

    Added after 1 [hours] 12 [minutes]:

    I figured it out, the Wi-Fi settings flew off, the devices switched to the access point mode
  • ADVERTISEMENT
  • #34 20625967
    p.kaczmarek2
    Moderator Smart Home

    Why did the WiFi settings get reset? Do you mean it booted in Safe Mode (so the settings are retained, it just booted into safe mode), or do you mean that the config is really clear? Only WiFi config or full config?
    Helpful post? Buy me a coffee.
  • #35 20625969
    pogadaevalecsey
    Level 6  
    full seting bad
  • ADVERTISEMENT
  • #39 20626086
    pogadaevalecsey
    Level 6  
    да именно так
    yes
  • #40 20626105
    DeDaMrAz
    Level 22  

    pogadaevalecsey wrote:
    да именно так
    yes


    Ok, I'll try to replicate that and report back.

    Did you know you can backup, both your config and your autoexec before the update and then upload it back.

    webapp - flash tab - read OBK config
    webapp - filesystem - download FD backup
  • ADVERTISEMENT
  • #41 20626157
    p.kaczmarek2
    Moderator Smart Home
    Seems to work for me, at least while updating 1.17.108 to 1.17.148:


    Helpful post? Buy me a coffee.
  • #42 20626310
    pogadaevalecsey
    Level 6  

    >>20626105
    how to do it?
  • #43 20645244
    pogadaevalecsey
    Level 6  
    спасибо! когда сделаете поддержку термодатчика DS18, очень актуально для розеток!
  • #44 20645365
    p.kaczmarek2
    Moderator Smart Home

    pogadaevalecsey wrote:
    full setting bad


    You are right. There was a small bug that caused settings to clear by OTA updates between certain builds. It's fixed now. Please choose the latest build when updating. Thank you for reporting.


    pogadaevalecsey wrote:
    спасибо! когда сделаете поддержку термодатчика DS18, очень актуально для розеток!

    DS18B20 is still pending, sorry, please wait! We've recently added MCP9808 support, if this may interest you.
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide
    If not, please wait.
    Helpful post? Buy me a coffee.
  • #45 20645521
    pogadaevalecsey
    Level 6  
    Home Assistant Not Detecting OpenBeken Device: Manual Setup & Pin Configuration Guide

    Added after 11 [minutes]:

    MCP9808 избыточно
  • #46 20728864
    mmsdh
    Level 2  

    >>20430409
    I'd like to add my voice to adding RSSI in HA. We need it badly.

    Also, thank you very much for the wonderful work you're doing!
  • #47 20762555
    pogadaevalecsey
    Level 6  

    Not long ago, I bought another relay to control the thermostat. They turned out to be on the BK7231 chip, which makes it impossible to use the DS18B20 sensor.
  • #48 21289476
    pogadaevalecsey
    Level 6  
    I saw that ds18b20 support appeared, connected my sensor. to the board. but the result was not satisfactory.
    I connected it to free P6 and p26, the result is the same. maybe my sensors are fake? but the esp home works fine.

    holodos
    OFF
    Temperature 0.0C (1)
    NTP (217.147.223.78): Local Time: 2024-11-04 20:52:14
    DS1820 Temperature: -1.26 C (read 936 secs ago)
    3 drivers active (NTP, SSDP, DS1820), total 36
    Channel 0 = 0.00, Channel 1 = 0.00
    Cfg size: 3584, change counter: 39, ota counter: 0, incomplete boots: 1 (might change to 0 if you wait to 30 sec)!
    Chip temperature: 48.6°C
    Wifi RSSI: Good (-54dBm)
    Reboot reason: 0 - Pwr
    MQTT State: connected RES: 0(ERR_OK)
    MQTT ErrMsg:
    MQTT Stats: CONN: 1 PUB: 173 RECV: 30 ERR: 0
  • #49 21296297
    pogadaevalecsey
    Level 6  
    log
    Debug:SENSOR:DS1820[6] - Discover CRC failed (CRC=ff != calculated:14)
    Error:SENSOR:DS1820[6] - Family not discovered

    Added after 4 [minutes]:

    this is a piece of code from ESP HOME, where this sensor works
    - platform: dallas_temp
    address: 0x123ce1e381917128
  • #50 21351185
    pogadaevalecsey
    Level 6  
    извините, теперь еспхоум, поддерживает чипы БЕКЕН, с настройкой DS18B20, не возникло никаких проблем, к сожалению вынужден перейти на их платформу.

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.

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].
ADVERTISEMENT