calaos / calaos_base

Calaos server
https://calaos.fr
GNU General Public License v3.0
160 stars 37 forks source link

Add a "push-button-style" item in rooms #67

Closed tiramiseb closed 9 years ago

tiramiseb commented 9 years ago

For the moment, I'm using a boolean value to trigger an action when it is change (independently from the value of the boolean). A "trigger" item, would be great, allowing to use it as a simple "trigger condition" in a rule (instead of having a value that doesn't mean anything, checked or unchecked, especially in the android interface).

This way, the trigger could be trigged from anywhere : a switch, the web interface, etc. It would not have a specific value, only the "trigged" state...

I'm seeing this as an alternative to having directly scripts in rooms or having to modify a condition script each time I want to add a trigger for the script (see #66 and http://calaos.fr/forum/Thread-Exemple-de-script-LUA-boucle-entre-plusieurs-luminosit%C3%A9s).

raoulh commented 9 years ago

The trigger item you are looking for is called a "scenario" item. It's a button that acts like a virtual switch and you can create a rule with it. And if you need to start the same actions from different places the way to go is:

PS: Please before creating lots of issues here, ask on IRC or on the forum, and I will gladly explain a solution for what you are looking for. Here we need to keep real bugs and improvements, shall we?...

tiramiseb commented 9 years ago

The problem with scenarios is that I need the touchscreen to create them. For people who don't have nor want the touchscreen, it is not a suitable solution. I thought scenarios were exclusively touchscreen-oriented, that'e why I've created this improvement request : to have an alternative to the only-creatable-from-the-touchscreen scenarios. Or should the issue be linked to Calaos Installer, in order to be able to create scenarios without the touchscreen ?

raoulh commented 9 years ago

You can create scenario without a touchscreen. The touchscreen only has an assistant to create automatic rules. Nothing more.

tiramiseb commented 9 years ago

Ok, so what I want is a scenario... And an interface in Calaos Installer to create them :) Well that means this improvement request was indeed totally useless.

tiramiseb commented 9 years ago

Okay, "Scenario variable", it's in Calaos Installer, I'm dumb... :)