Jump to content
⚠️ Deprecation Notice: Cloud Control API V1 – Switch to V2 ×

Recommended Posts

Posted

I've configured a script on a Plus 2PM ('BLE in Scripting - Shelly BLU Motion script actions') to turn one of the associated lights ON/OFF, depending on the BLU Motion state.

I was able to find an example elsewhere that disables the motion handling if the specific light switch is ON (i.e, don't turn the light OFF once motion is done IF I turned it ON).

Now, I would like to further enhance it so that the light only turned ON if it's dark out.  I figure that I can read the 'illuminance' from the BLU motion; however, not sure how to do this outside of the IlluminationHandler.

Would I need to set a common variable inside the IlluminationHandler that's then read by the MotionHandler? If so, I also think that I would need to change the order of the two handlers because it seems like the Motion executes first?

Many thanks in advance!

  • 1 month later...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...