Page 1 of 1

"Disable event" -button?

Posted: Friday 26 May 2017 18:27
by tapas
Hi,

has anyone figured out a way to disable certain blockly event with a single click (with a button for example)? I understand that I can do that via "Event active" -selection, but it would be very cool to have a "manual" -button in dashboard and when pushed my automation would not work and I could manage things manually.

I hope you can understand my explanation :lol:

Re: "Disable event" -button?

Posted: Friday 26 May 2017 18:55
by pvm
Not exactly what you where looking for but : I've solved this by adding an extra check to the blocky statement(s) 'manual control'

Re:

Posted: Friday 26 May 2017 19:35
by tapas
pvm wrote:Not exactly what you where looking for but : I've solved this by adding an extra check to the blocky statement(s) 'manual control'
I'm interested! How did you do that exactly, can you share your solution?

Re: "Disable event" -button?

Posted: Friday 26 May 2017 20:54
by pj-r
For a virtual switch you could call json api at its on/off url: viewtopic.php?t=12557#p119552

Re: "Disable event" -button?

Posted: Saturday 27 May 2017 6:54
by pvm
I've created a virtual switch 'manual control' and added that to all IFs in blockly , checking it is off.

Re:

Posted: Sunday 28 May 2017 13:38
by tapas
pvm wrote:I've created a virtual switch 'manual control' and added that to all IFs in blockly , checking it is off.
This solved my problem, thanks a lot! Also thanks for the other suggestors!