Jump to content

How to detect if a Remote Switch is set to ON or OFF


Recommended Posts

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

 

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...