Rule with p2p networking dosn't work
Posted: 27 Mar 2020, 12:09
Rule with p2p network dosn’t work
Good day everyone. I’m working on a little quiz button system with 10 buttons and a relay. Wat I want to get at:
- Rest state
- Someone smash a button
- Relay switches for one second to let hear a buzzer
- Light on the button turns on
- No input is possible
- Button 1 resets
- Rest state
This are my devices
See attachment.
The dumy “info#Snellste” while tell the rest witch one shut turn on his light.
I have the following rule working on the relay which acts as a master. This rule checks for button updates, changes the “info#Snellste” number and turns on the relay for one second. Button one brings the “info#Snellste” back to zero.
On the button site I have almost the same rule bud shorter. This did work, bud not anymore.
First question: are the variables case sensitive. Does it matter if you type
or
Can someone help me? I try a lot of things bud can’t get it to work.
thank you in advance,
Sander
Good day everyone. I’m working on a little quiz button system with 10 buttons and a relay. Wat I want to get at:
- Rest state
- Someone smash a button
- Relay switches for one second to let hear a buzzer
- Light on the button turns on
- No input is possible
- Button 1 resets
- Rest state
This are my devices
See attachment.
The dumy “info#Snellste” while tell the rest witch one shut turn on his light.
I have the following rule working on the relay which acts as a master. This rule checks for button updates, changes the “info#Snellste” number and turns on the relay for one second. Button one brings the “info#Snellste” back to zero.
Code: Select all
On quizmister_2_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,2
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_3_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,3
TaskValueSet 11,2,3
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_4_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,4
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_5_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,5
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_6_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,6
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_7_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,7
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_8_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,8
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_9_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,9
gpio,0,0
timerSet,1,1
endif
endon
On quizmister_10_button#State=1 do
if [info#Snellste]=0
TaskValueSet 11,1,10
gpio,0,0
timerSet,1,1
endif
endon
On the button site I have almost the same rule bud shorter. This did work, bud not anymore.
Code: Select all
On quizmister_10_button#State=1 do
if[info#Snellste]=10
gpio,0,0
else
gpio,0,1
endif
endon
Code: Select all
if [Info#Snellste]=10
Code: Select all
if [info#snellste]=10
thank you in advance,
Sander