logo elektroda
logo elektroda
X
logo elektroda

[BK7231N / CBU] Integration of PZIOT-E01 energy meter into HomeAssistant after BK7231N flashing

Olekn1997 1692 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20842876
    Olekn1997
    Level 9  

    Good day,
    I have a problem with an energy meter based on BK7231N and BL0942 communicating over SPI. I want to change its software to Openbeken and integrate it with HomeAssistant. I am after reading these topics: https://www.elektroda.com/rtvforum/topic3945667.html and https://www.elektroda.com/rtvforum/topic3943151.html .I managed to sflash BK7231N then using the startDriver BL0942SPI command I started the readings and then calibrated it. The problem arises when integrating with HA. I configured the Configure MQTT tab and got the status: MQTT State: connected, and checked in MQTT Explorer in HA if the data appears and up to this point everything is correct.
    Screenshot of the OpenBK7231N interface showing energy consumption statistics.

    Screenshot of MQTT Explorer showing various topics and messages.


    In the Home Assistant Configuration tab, no code appears, and clicking Start Home Assistant Discovery has no effect.
    Screenshot of the OpenBK7231N interface, showing a lack of YAML code for Home Assistant configuration.
    The only thing that displays for me in HA is information about WIFI signal strength.
    Home Assistant configuration interface with energy meter information.
    If I understood the information on this video correctly: https://www.youtube.com/watch?v=pkcspey25V4 then some yaml code should appear in this tab. Can I ask for help on how to solve this problem, I assume it is possible to write yaml code myself that would display this data as entities in HA, but I am quite green in this topic. Also, the MQTT Explorer does not show the frequency and power factor data being read.
  • ADVERTISEMENT
  • #2 20842922
    p.kaczmarek2
    Moderator Smart Home
    Congratulations, it looks like you found a bug in the firmware.
    https://github.com/openshwprojects/OpenBK7231...mmit/9b378e1420a7b527b423e31bfb956acb6f81d2de
    When the build is ready then update the firmware and do Discovery again.
    But the Yaml code will not appear in this tab, it is not needed, just HA Discovery will now take the meter into account

    By the way, where did you get the device with BL0942 in SPI mode? Is it something that is not yet on our list?
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20842943
    Olekn1997
    Level 9  

    p.kaczmarek2 wrote:
    By the way, where did you get the device with BL0942 in SPI mode? Is this something that is not yet on our list?
    https://openbekeniot.github.io/webapp/devicesList.html

    This is exactly the device mentioned in those 2 topics I cited earlier: https://www.elektroda.com/rtvforum/topic3943151.html, https://www.elektroda.com/rtvforum/topic3945667.html. In the list https://openbekeniot.github.io/webapp/devicesList.html there is this device, but with BL0937 in SPI mode, so either this is some kind of bug or it comes in two versions.

    p.kaczmarek2 wrote:
    When the build is ready then update the firmware and redo the Discovery.
    Is a recalibration required after the update, or is the calibration data remembered?
  • ADVERTISEMENT
  • Helpful post
    #4 20843005
    p.kaczmarek2
    Moderator Smart Home
    A mistake must have crept in, I have corrected it.

    The calibration will be remembered after the OTA.
    Helpful post? Buy me a coffee.
  • #5 20843022
    Olekn1997
    Level 9  

    I have made the update now I have the data in HA. Thanks a lot for such express corrections. And would it be possible to somehow display the frequency and power factor in HA?
ADVERTISEMENT