Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Information and code on adding HS-FLS100+ (GEN 2) to SmartThings


This device handler provides extended feature support of this product to SmartThings new app users. By default, if you add the sensor to ST without the device handler, you will not be able to trigger on motion, you can only turn the load on and off. The device handler adds the following:

Device Handler Code

Code Block
  • Button to turn the load on/off and display the status of the light
  • Motion tile that tells you if motion is detected
  • LUX tile that shows the current light level
For triggering actions, you can use the built-in automation to trigger on motion and you can set an action to control the load.
If you need to trigger on the light level, install the SmartApp named "Smart Lighting". This will allow you to trigger on the device LUX value.

To add this Device Handler:

Navigate to this URL and log in with your SmartThings account:
  • Click on the "My Device Handlers" menu   
  • Click "Create New Device Handler" on the right   
  • Click "From Code"   
  • Click here to view the code or see the snippet below  
  • Click "Create" at the bottom   
  • Click "Publish" and select "For Me"
    • Temperature tile that shows the current temperature

    Device Handler Code

    Code Block