Logic Machine Forum
Short/long operation in the same icon Visualization - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Short/long operation in the same icon Visualization (/showthread.php?tid=1645)



Short/long operation in the same icon Visualization - JoseJimenez94 - 11.10.2018

Hi guys,

anybody knows how i can do a single button in the visualization to control the movement and stop of a blind? I tried to follow the steps of this thread ( https://forum.logicmachine.net/showthread.php?tid=275&pid=4576&highlight=move+and+stop#pid4576 ) but i didn't get it.

Thanks.


RE: Short/long operation in the same icon Visualization - Daniel - 12.10.2018

Hi
This is the best way, what is not clear here ? Otherwise in Mosaic you have ready widgets.
BR


RE: Short/long operation in the same icon Visualization - JoseJimenez94 - 16.10.2018

(12.10.2018, 07:47)Daniel. Wrote: Hi
This is the best way, what is not clear here ?  Otherwise in Mosaic you have ready widgets.
BR

The problems is that I paste all Erwin's code to custom javascript, and then i follow these steps:

For screen button by 1x bit move object and 1x bit step/stop object:
1) Create 2 1 bit unsigned objects and create button(s) in your visu with move object as main object and step/stop object as status-object and use same image on 1 and 0
2) Enter in the additional class of the UP button(s) these classes: screenbuttonup longpresstime_15 the values 0 and 1 are hardcoded and follows the KNX standard.
2) Enter in the additional class of the DOWN button(s) these classes: screenbuttondown longpresstime_15 the values 0 and 1 are hardcoded and follows the KNX standard.
3) Change the value after longpresstime_xx to the wanted long push time (xx (value) * 0.1second) = seconds for long push time

...but it doesn't work. I don't know what i'm doing wrong.


RE: Short/long operation in the same icon Visualization - Daniel - 16.10.2018

Can you give remote access or send your backup ? I can have a look. Send to PM.