I got this working following Bigg_X’s suggestions, which slight modifications. It was quite easy to do. Here are the steps I followed:
Created a Virtual Lock in Smartthings API
Following these directions: FAQ: Creating a virtual Device
but instead of a Simulated Switch, select Simulated Lock.
(Simulated switches cannot be used as a trigger in Alexa routines, as I learned, but locks can)
This should show up in the ST app and also in the Alexa app.
In Alexa, add two new Routines.
For trigger, select the simulated lock that you just created. If Unlocked, turn on the Goove light. If locked, turned it off. (both trigger and action are under Smart Home)
That’s all! Works fine. Cannot change color and such in ST from this single Simulated Lock - however, multiple locks can be added that trigger different colors, if one desires. For me, On-Off is enough.
Unfortunately they cannot be used in routines in ST - those only take switches, not locks. Arg…
Got the integration working with IFTTT (uses 2 of the 3 free IFTTT applets).
You will need to link both Govee and ST accounts to IFTTT for this to work.
Create Virtual switch using Virtual device creator
Create 2 IFTTT applets to turn on Govee switch ON when Virtual switch is ON
and Govee switch OFF when virtual switch is OFF
Create webcore script to detect motion and turn Virtual switch ON, wait 5 mins then turn Virtual switch OFF
You can also do this using Alexa routine, if that’s your preference (no Virtual switch needed as Alexa will directly work with Govee and if motion sensor is visible to Alexa)
You also need to request a govee api key 1st, as this is needed to control devices with smartthings. Then on the index.html page click on the Configuration tab, enter your govee api key and it returns the device’s ids. ! Screenshot_20201228-174802_Govee Home|225x500
So I followed all the steps, and when I access the device on the smartthings app, it will not turn on… Govee Model is H6159. Pretty new with all this so any guidance would much appreciated…