June 1, 2014 at 12:40 PMJun 1, 2014 Hi All, have build an app (based on the JavaScript API) using the remote switch bricklet to switch devices ON/OFF. When starting the App, would like to determine the state of a remote switch to be able to set the initial state of the switches in the app. Question: Is there a (JavaScript) function available? like getRemoteSwitchState resulting in on or off? Appreciated, Rob
June 1, 2014 at 05:57 PMJun 1, 2014 Hi Rob, there's no such function as it is not possible to determine the state of the remote switch These "standard" remote switches are just able to receive signals, but they cannot send any signal. You can send the desired initial state the plug and then just hope that the plug received it.
June 1, 2014 at 06:52 PMJun 1, 2014 Author Hi Equinox, thanks for your reply. Will watch any developments regarding remote switches which are able to sent their switch state. Regards, Rob
June 1, 2014 at 08:58 PMJun 1, 2014 Hi Rob, you may use switches using e.g. "Z-Wave" technology. Works fine with a Raspberry Pi and the "Razberry"-extension.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.