8 hours ago
(9 hours ago)admin Wrote: You can't put inline JS into HTML widget, you have to use Custom JS for that. Check the links below.
Basic HTML widget interaction: https://forum.logicmachine.net/showthrea...3#pid42313
Visu JavaScript reference: https://kb.logicmachine.net/misc/visu/
Hello,
Thank you for the clarification regarding the HTML widget and inline JavaScript.
I would like to confirm the next step for the new visualization:
Question
If the HTML widget is used only for the markup and the interaction logic is implemented in Custom JavaScript, what is the official / supported way to trigger KNX writes from that Custom JavaScript?
For example, from a custom RGB interface we need to write:
- boolean ON/OFF values
- dimming / percentage values
- RGB 3-byte values
- A supported JavaScript API / function to write values directly to KNX objects from Custom JavaScript
- Using native LM widgets only for the control logic, while Custom JS is used only for the UI behavior
- Calling a Lua / HTTP bridge from Custom JavaScript
- Another officially supported mechanism
- boolean write
- numeric / dimming write
- RGB 3-byte write
Thank you.