logo elektroda
logo elektroda
X
logo elektroda

OBK Startup Command Line: PowerSave, startDriver NTP, SetupEnergyStats not executing

tonyb62 3468 9
ADVERTISEMENT
  • #1 20591624
    tonyb62
    Level 8  
    Hi,

    I currently have this startup command
    PowerSave 1; startDriver NTP; SetupEnergyStats 1 60 60
    OBK Startup Command Line: PowerSave, startDriver NTP, SetupEnergyStats not executing
    But I'm finding that the SetupEnergyStats command isn't being run. I can enter the same command in the web application, Logs tab, command box and they start instantly.
    The PowerSave command is being started, I can see the power save messages in the Logs tab.
    OBK Startup Command Line: PowerSave, startDriver NTP, SetupEnergyStats not executing
    So what am I missing or done wrong?
  • ADVERTISEMENT
  • Helpful post
    #2 20591726
    p.kaczmarek2
    Moderator Smart Home
    Hello, the solution is on the screenshot:
    OBK Startup Command Line: PowerSave, startDriver NTP, SetupEnergyStats not executing
    We are supporting Tasmota syntax, which means you have to type "backlog" first.
    But most likely we will change it to be a default-backlog or something...
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20981927
    kellers
    Level 3  

    Tasmota console control screen with energy consumption and power parameters. User interface for editing files in Tasmota Screenshot of Home Assistant interface displaying device information and energy statistics.

    How can I set the value ?
    Today 1.9 Wh > 3700 Wh
    Total 191.569 kWh > 555.000 kWh
    And can I send frequency 49.94 with MQTT ?

    Build on Feb 9 2024 13:55:22 version 1.17.455
    Thx

    Edit:
    In arendst/Tasmota:
    EnergyTotal Get or set Energy Total values, parameters:
    = meter number (default is 1)
    = set new value in Wh, 0 for reset
  • #4 20981946
    p.kaczmarek2
    Moderator Smart Home
    What would you like to set, can you clarify? Do you want to set a total usage value? Total usage value is for statistics, I don't think there is a way to set it, but I can consider adding something like that for you.

    Regarding frequency, we're working on extending the HASS Discovery:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1102
    Helpful post? Buy me a coffee.
  • #5 20982041
    kellers
    Level 3  
    Zitat:
    What would you like to set, can you clarify? Do you want to set a total usage value? Total usage value is for statistics,-------------
    Regarding frequency, we're working on extending the HASS Discovery:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1102 ----------- :) Top !
    ---------------------------------------------------------------------------------------------------------------------------------------------
    Yes, I want to set this value,
    Can you help ?
    ---------------------------------------------------------------------------------------------------------------------------------------
    I found this:

    arendst/Tasmota:
    EnergyTotal<x> Get or set Energy Total values, parameters:
    <x> = meter number (default is 1)
    <value> = set new value in Wh, 0 for reset
    <time> = 0..4294967295 set StartTotalTime time as epoch value (optional 2nd parameter)
    The new value represents start of day, and output for total includes the today value.
    -----------------------------------------------------------------------------------------------------------------------------------------------
    Log: Info:CMD:[WebApp Cmd 'EnergyTotal1' Result] Unknown command
    Info:CMD:[WebApp Cmd 'EnergyTotal1 555000000' Result] Unknown command
    Entered in Command Line into Web Application
  • #6 20990141
    p.kaczmarek2
    Moderator Smart Home
    I have double checked and it seems you can use this:
    
    EnergyCntReset 1234
    

    Where 1234 is the new value to set.
    If you don't set the value, it will set to 0.

    PS: The better HASS Discovery for power metering is now integrated with latest release.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #8 20992476
    p.kaczmarek2
    Moderator Smart Home
    Thank you. I also updated the docs. Let me know if anything else is needed.
    Helpful post? Buy me a coffee.
  • #9 21014023
    cdtdsilva
    Level 10  

    Hi p.kaczmarek2,

    Are you somehow involved in the open becken project?
    I'm looking to understand how the values from the total KWh register on the BL0942 are derived, more specifically if these are read from the chip or periodically read by openbecken and added to some form of counter.

    I wanted to create some rules here to separate positive and negative energy flow, but I'm struggling to find any technical details on how to do so. Are you able to point me in the right direction? Thanks!
  • #10 21303378
    jkwim
    Level 12  
    >>21014023

    There was an old post by p.kaczmarek2 when he started to develop the driver for BL0492. Perhaps you should search for that.

Topic summary

The discussion revolves around issues with executing the command sequence in the OBK startup command line, specifically the failure of the SetupEnergyStats command to run. The user successfully executes the command via the web application but encounters problems when using it in the startup sequence. A solution is provided, indicating that the command should be prefixed with "backlog" to align with Tasmota syntax. Additional inquiries about setting energy values and MQTT frequency transmission are also addressed, with references to the Tasmota firmware and its energy management capabilities.
Summary generated by the language model.
ADVERTISEMENT