logo elektroda
logo elektroda
X
logo elektroda

[BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

p.kaczmarek2 177927 1242
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1201 20526516
    Tilator
    Level 10  
    Dark Man wrote:
    I found a great deal on smart sockets with current measurement and 20A relay for $2.99 with free shipping in 11 days:
    US$2.99 82%OFF | Tuya 16A 20A EU Smart Socket WiFi Smart Plug With Power Monitoring Timing Function Voice Control Alexa Google Assistant
    https://a.aliexpress.com/_EuI37V5


    Nice, but:

    1,000+ orders
  • ADVERTISEMENT
  • #1202 20527197
    Dark Man
    Level 13  
    I ordered 1 pc. and it turned out that this is also the limit for one account.
  • #1203 20527345
    p.kaczmarek2
    Moderator Smart Home
    It didn't work for me on any of the accounts (mine or family members), I had to try it on a clean browser. It's weird. After all, I recently ordered a smart socket from aliexpress 2 years ago.
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    Bought for PLN 20, thank you for the link, it will be useful for making another video for the Elektrody channel:
    https://www.youtube.com/@elektrodacom
    Helpful post? Buy me a coffee.
  • #1205 20541157
    Dark Man
    Level 13  
    Dark Man wrote:
    I found a great deal on smart sockets with current measurement and 20A relay for $2.99 with free shipping in 11 days:
    US$2.99 82%OFF | Tuya 16A 20A EU Smart Socket WiFi Smart Plug With Power Monitoring Timing Function Voice Control Alexa Google Assistant
    https://a.aliexpress.com/_EuI37V5

    The socket has arrived.
    I tried to upload the soft via Cloudcutter but it turned out that there is soft v1.1.12 in the socket for which there is no exploit :(
    I uploaded the series.

    I configured for HA through Discovery, but I have a question:
    How to change the precision of the sent sensor data?
    e.g. the electricity meter is sent in Wh with 6 decimal places and I would like it to send in kWh with 2 decimal places.
    It is possible?
  • #1206 20541822
    Tilator
    Level 10  
    Dark Man wrote:
    I tried to upload the soft via Cloudcutter but it turned out that there is soft v1.1.12 in the socket for which there is no exploit


    Any chance to downgrade it first?
  • #1207 20545727
    rishabmehta7
    Level 6  
    >>20541157
    Precision can be set on the HA level.
  • #1208 20550963
    DeDaMrAz
    Level 19  
    I found this project by accident and got hooked up fast :) Got to talk to the admin and we figured I can contribute the the community. We already did one project (GN6932 driver) almost from scratch, details in this post - https://www.elektroda.com/rtvforum/topic3971252.html

    I will continue to support this project by sharing as much information as possible here and on GitHub.

    Here are some of the upcoming devices that will be implemented and worked on so OBK will be more powerful and documented in the best way possible.

    TM1638 - 7 segmend display driver
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    some of the devices for future support

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    And some other toys to play with, like new modules, BMP280 pressure sensor, SSD1306 OLED LCD....

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant

    I have plenty of other devices to play with as well so thank you @p.kaczmarek2 for you unselfish support and looking forward to new developments.
  • #1209 20551996
    p.kaczmarek2
    Moderator Smart Home
    Welcome onboard, @DeDaMrAz . Our cooperation so far has proven to be very fruitful. I hope we can improve OpenBeken much more together.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #1210 20573740
    p.kaczmarek2
    Moderator Smart Home
    Important update.
    BK7231GUIFlashTool, this project:
    https://github.com/openshwprojects/BK7231GUIFlashTool
    will soon get update that allows:
    - to extract Tuya config from tuya device binary (so it means you get ready gpio config)
    - to modify obk config via flash tool
    Here's a short preview:
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
    Helpful post? Buy me a coffee.
  • #1211 20580135
    keeepcool
    Level 1  
    Good evening, this is my first post, so I hope I'm not asking in the wrong place (I searched around and this seems like the best place to ask this question).

    I recently bough a WSM16-4 Tuya device (its a 4 gang/switch with a CBU), flashed OpenBeken and it works perfectly with HomeAssistant.
    Amazing job on everything done so far.

    My question is if its possible to access the internal BK7231N temperature sensor and send that data over MQTT.
  • #1212 20630474
    ferbulous
    Level 18  
    Hi @p.kaczmarek2
    One of my wall switch (N device) stopped responding after latest ota
    I removed the pcb and use serial method to flash it but I keep getting crc error
    Anyway to fix this?

    [BK7231T] My HTTP server, configurator, MQTT support from Home Assistant
  • #1213 20633272
    p.kaczmarek2
    Moderator Smart Home
    Are you 100% sure it's N chip? Not a T with "CB2S" or something like that marking?

    Can you also check with hid_download_py?
    Helpful post? Buy me a coffee.
  • #1214 20633667
    Dark Man
    Level 13  
    My bet is that the memory is corrupted in the chip.
    Try to read the entire memory and see if there are any errors.
  • #1215 20635046
    ferbulous
    Level 18  
    p.kaczmarek2 wrote:
    Are you 100% sure it's N chip? Not a T with "CB2S" or something like that marking?

    Can you also check with hid_download_py?


    Yes, it's a cbu (N chip)
    hid_downlaod_py also gave crc error

    Added after 2 [minutes]:

    Dark Man wrote:
    My bet is that the memory is corrupted in the chip.
    Try to read the entire memory and see if there are any errors.


    Could be, I've already replaced it with another spare cbu chip to get the switch working again.
    will post the firmware bin later
  • #1216 20635053
    p.kaczmarek2
    Moderator Smart Home
    CRC error in hid_download_py for N can be ignored currently, I think. It will be updated soon yet to do a correct CRC calculation.
    Helpful post? Buy me a coffee.
  • #1217 20879442
    ferbulous
    Level 18  
    Hi, just wondering is there an espnow equivalent for beken chips?
    Started using tasmesh (based on espnow) on tasmota and I like how it still works by communicating directly to another esp broker even when wifi is down.
  • ADVERTISEMENT
  • #1218 21006637
    alexej550271
    Level 5  
    Добрый день всем участникам! Скажите пожалуйста есть ли возможность изменить прошивку для умной розетки с энергомонитором BL0937, которую купил. а в ней оказался контроллер rtl8710bn, добавили уже поддержку этого чипа?... Или стоит заказывать чип ESP?
  • #1219 21008720
    giovi321
    Level 1  
    Hi,
    I have flashed on a CB3S version 1.17.509, however I cannot connect to wifi networks that have spaces in the PSK.
  • #1220 21009389
    divadiow
    Level 34  
    @alexej550271 RTL8710BN is not currently supported by OpenBeken
  • #1221 21035737
    alexej550271
    Level 5  
    Не скажите, в ближайшее время планируется добавить поддержку этого модуля?
  • #1222 21036047
    p.kaczmarek2
    Moderator Smart Home
    Yes, I need to get some time and I will check this out. It's just that there are many other issues and I am also constantly making new teardowns for our list:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.
  • #1223 21061728
    ewessels89
    Level 2  
    Hi all,

    I'm looking for a way to flash the WBR2 chip. I saw a post that is should be possible. Is there anything i can do to help?

    Seea picture of my device. Close-up of an electronic board with an LED display and WBR2 chip.
  • #1224 21061739
    p.kaczmarek2
    Moderator Smart Home
    What kind of device is that? Can you provide more information?

    Is it TuyaMCU? Otherwise you will need to write a driver for that display...
    Helpful post? Buy me a coffee.
  • #1226 21062053
    p.kaczmarek2
    Moderator Smart Home
    Have you tried to do TuyaMCU communication capture?
    TuyaMCU analyzer - UART packet decoder for Tuya devices - dpID detector
    Helpful post? Buy me a coffee.
  • #1227 21062277
    ewessels89
    Level 2  
    I can see the heartbeat but it’s not paired with the Tuya app so I can’t send command to it (is there a way I can get the chip in pairing mode?
    Close-up of a connected electronic module with connecting wires. Screenshot of the TuyaMCU Explorer/Analyzer program showing Wi-Fi packet data.
  • #1228 21067221
    jakubhrusovsky01
    Level 2  
    Hello, is it possible add syslog on UDP to new firmware update ? Like Tasmota have, i want it for Loxone state read. Thanks
  • ADVERTISEMENT
  • #1229 21067367
    p.kaczmarek2
    Moderator Smart Home
    Sure, I can print the log to UDP for you. Can you provide any more details how it should work, which port, etc? UDP is not really reliable and may lose packets. Can you point me towards that "Loxone syslog" documentation?
    Helpful post? Buy me a coffee.
  • #1230 21068230
    jakubhrusovsky01
    Level 2  
    Screenshot of logging settings in the Tasmota interface.

    In Tasmota i have this settings and it works perfectly for my integration with Loxone, i use virtual read and it reads state of relay and give it to Loxone.

Topic summary

The discussion revolves around the development and implementation of custom firmware for devices using the BK7231T and BK7231N chips, particularly focusing on creating a mini HTTP server, MQTT support, and integration with Home Assistant. Users share their experiences flashing various smart devices, troubleshooting issues related to UART connections, and configuring GPIO pins for different functionalities. The conversation also touches on the challenges of maintaining WiFi connectivity, the importance of proper pin configuration, and the potential for using I2C for additional device control. Several users report successful firmware updates and the addition of new features, including support for various sensors and devices.
Summary generated by the language model.
ADVERTISEMENT