-
Notifications
You must be signed in to change notification settings - Fork 342
Btn role does not emit OnClick events to scripting system in v1.18.100 (CB3S, BK7231N) #1639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is "do log" and "endon"? |
@openshwprojects I tried to run a script when pressing the button (an advancdd power on/off). But no matter what I tried, couldn't make it work. The button press was detected as hw action, but won't trigger script execution even when event handler was correctly registered. I'm either not understanding AT ALL what I'm doing (fair take, as it's my first time trying OBK), or there is a bug that interferes with my specific device. |
It's bad understanding of scripting on my part (lack of proper doc (I now believe the |
Do endon looks like Tasmota syntax. We don't have it in Obk. I can consider
adding it , but I recommend berry for more advanced things
…On Sat, 17 May 2025, 11:45 DEREI, ***@***.***> wrote:
*derei* left a comment (openshwprojects/OpenBK7231T_App#1639)
<#1639 (comment)>
@openshwprojects <https://github.com/openshwprojects>
What is "do log" and "endon"?
It's bad understanding of scripting on my part (lack of proper doc (I now
believe the do ... endon is used only in SVM context).
—
Reply to this email directly, view it on GitHub
<#1639 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMGZ67NNG4JGL2Z3DC4UTD264AJZAVCNFSM6AAAAAB5JGTRL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBYGI2TKOJWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@openshwprojects best to keep things clean and not confusing - i'm confused already :)). So, if I will try berry. btw, is the webapp down? I am getting only a blank page. |
Hmm, Web app works only if you have internet connection, if you connect to
your device in AP mode and have no external connection, web app will not
load. Try pairing device with your WiFi first. Then it should work, I
guess...
Ok, maybe can you tell me what kind of script are you making? I can try
help with that
…On Sat, 17 May 2025, 19:11 DEREI, ***@***.***> wrote:
*derei* left a comment (openshwprojects/OpenBK7231T_App#1639)
<#1639 (comment)>
@openshwprojects <https://github.com/openshwprojects> best to keep things
clean and not confusing - i'm confused already :)). So, if do ... endon
is not part of obk, then perhaps keep it like that.
I will try berry.
btw, is the webapp down? I am getting only a blank page.
—
Reply to this email directly, view it on GitHub
<#1639 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMGZ632TQTKDJ6AUVHVKHL265UVRAVCNFSM6AAAAAB5JGTRL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOBYGQ4TONZXGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@openshwprojects I'm learning for now - abusing a £5 led strip controller, but actually I'm the one being abused. I'm hitting the same walls with berry like I hit with OBK: same script, executed in different conrexts will work or not - and I feel I'm guessing blindly. At this moment I'm wondering how you're all managing to work with such an unpredictable system. |
[edited out as added forum reply] |
Explanation: https://www.elektroda.com/rtvforum/topic4122454.html |
Summary
On a iH001 RGBW LED Controller with CB3S (BK7231N) module running OpenBeken v1.18.100, button presses are detected at the hardware level (e.g.
key_short_press
appears in logs), butOnClick
events are not emitted - neither to the console nor to registeredaddEventHandler
scripts.Tested Configuration
Btn
(also testedBtn_ScriptOnly
)Observed Behavior
Event: OnClick X
appearsConfirmed
addEventHandler
confirms successful registrationautoexec.bat
correctly parsed on bootlogLevel 6
shows no event emissionAdditional Findings
autoexec.bat is successfully loaded and parsed (CMD_StartScript: started autoexec.bat at the beginning appears in logs)
However, the log command is not recognized (
cmd log NOT found
), meaning scripts silently fail at runtime if they contain log ...This explains why registered handlers never produced output - the underlying scripting command set is incomplete or stripped down in the current firmware build
Conclusion
Button press handling appears to be stuck in firmware-level detection, with no dispatch to the scripting event system. This breaks all automation using buttons unless the channel is auto-bound to hardware (e.g., relays).
Even if addEventHandler succeeds and button presses are detected at the GPIO level, no event logic can be verified or debugged due to the absence of the log command and failure of OnClick to fire.
Ask
Please verify the channel event emission path from
Btn
/Btn_ScriptOnly
roles into theOnClick
dispatcher, or confirm whether this was fixed in a post-1.18.100 build.Related: #1638
The text was updated successfully, but these errors were encountered: