![]() ![]() ![]() You can choose any device type handler for the placeholder since you’re going to change it in a minute anyway. In that case you will need to sign into the Developers section (IDE) and first choose My Devices and then use the ADD NEW DEVICE button to enter a placeholder for the device and assign it a unique device ID. (If this is an ip-addressable device like a camera you may not have been able to add it to your account through the SmartThings mobile app, so the system will not assign it a device ID. May be using a standard device type handler, or it may just have been added as a “thing”, but it should show up on the list of devices for your account. You can read this thread to give you some help in creating / publishing a DH from existing code.įAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code) Your Motion Sensor should now work in SmartThings.ĮDIT: Not knowing your knowledge of SmartThings, if you need assistance to get started in the right direction. I get around 160 with normal indoor lighting and about 40 in my dimly lit bedroom, but I think that is wrong Returns a value that changes based on lighting, However I am not familiar with lux measurements and have nothing to compare it to for calibration. Works but likely not calibrated very well Sleeps for about 60 seconds before sending a no motion response I will happilly entertain suggestions and improvements.ĭetects motion and illuminates a red LED on the device Note that this is very much beta and rather potatoe quality code as its my first device handler but it is working for me. I have just finished building a Device Handler for the Hue Motion sensor and thought I would share it with the community. Hue Motion Sensor (beta) (no hue bridge) Community Created Device Types ![]()
0 Comments
Leave a Reply. |