@ck2003
Hi,
I am interested for this option with button and variable to turn rules. Unfortunately I can not continue with the implementation. Could you post me the relevant sections of the config? So that i can rework for me.
-
[Solved] timer question
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@Thrusty said:
hey,you can add buttons under the device section in the config:
{ "id": "swtest", "name": "buttons", "class": "ButtonsDevice", "buttons": [ { "id": "button-a", "text": "Button-A" }, { "id": "button-b", "text": "Button-b" } ] }
On your Webinterface from pimatic, you can add Variables and the Rules. When you add them under the Webinterface, they will get in the Config automatically.
What exactly is your problem?
If Buttons not work, you can use the DummySwitch. But you must reset the Switches with the Variables too.
-
@ck2003
My problem is that I know too little about scripts, programming, etc. have. I dont know, for example, wich arguments shoulb be on wich position items to need for linking a variable with a button. I hope you understand me.
With a exemple, i can change the entrys for my system."Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@ck2003 said:
Add this to the device section in the config.json{
“id”: “swtest”,
“name”: “buttons”,
“class”: “ButtonsDevice”,
“buttons”: [
{
“id”: “button-a”,
“text”: “Button-A”
},
{
“id”: “button-b”,
“text”: “Button-b”
}
]
}After this, you do that:
On the Webinterface add two Variables:
Example:
variable1
and
variable2Then Create rules on the Website:
Rule1:
Name: Button A Pressed
if Button A pressed
then set variable1 to 1 and set variable2 to 0Rule2:
Name: Button B Pressed
if Button B pressed
then set variable2 to 1 and set variable1 to 0Rule3:
Name: Light on Variable:
[$variable1 = 1 and its 05:00] or [$variable2 = 1 and its 07:00]
then light onRule4:
Name: Reset Variable1 and 2 :
[$variable1 = 1 and its 05:05] or [$variable2 = 1 and its 07:05] then set Variable1 to 0 and then set Variable2 to 0You need only a rule to reset the light on. Another button or a Signal/Time or something.
-
@ck2003 first thanks.
Is a entry in variable section in config not necessary?"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@ck2003 said:
When you add them under the Webinterface, they will get in the Config automatically. The Rules also. -
@ck2003 oh, nice. I will test it. Thanks
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@Thrusty
No Problem. When you have Problems, you can ask everytime -
@ leader 21 the issue is solved perfectly. and @ck2003 the coffee was nicely hot the last few days, i have made an extra rule with it so the variable is set to 0 when i am done with my coffee though.
but thanks guys for the help
dyo
-
Sounds great!