Blockly script for presence detection
Posted: Sunday 11 November 2018 18:17
Hi everybody!!
I made a blocky script for presence detection but it seems not to work... Logic should be that if variable value 'MyBandSaverio' is AWAY or if variable value 'MyBandSilvia' is AWAY then Set Allarm switch to ON and MyBandPresence switch to OFF... at then contrary if variable MyBandSaverio is different than AWAY (variable is a string not a number...) or if variable MyBandSilvia is different than AWAY the set Allarm switch to OFF and MyBandPresence switch to ON.
But is it not working... Why? It is not a matter of presence script because I see the values of the variables changing correctly according to the beacons presence...
What is the problem then? See image on attach for more details!
Thanks for you help!
Xavier
I made a blocky script for presence detection but it seems not to work... Logic should be that if variable value 'MyBandSaverio' is AWAY or if variable value 'MyBandSilvia' is AWAY then Set Allarm switch to ON and MyBandPresence switch to OFF... at then contrary if variable MyBandSaverio is different than AWAY (variable is a string not a number...) or if variable MyBandSilvia is different than AWAY the set Allarm switch to OFF and MyBandPresence switch to ON.
But is it not working... Why? It is not a matter of presence script because I see the values of the variables changing correctly according to the beacons presence...
What is the problem then? See image on attach for more details!
Thanks for you help!
Xavier