Question on KWIKSET locks.
I had success with this bridge on Windows 10 and am really impressed. Using the device editor was confusing, but the web editor made it easy to put in the Device ID, generate the URLs, and then test on/off. I’ve add a lot of lights and switch into the Alexa app…all good.
The problem is when I try to work with my KWIKSET locks. Am looking to be able to unlock/lock the doors using Echo via the bridge. I figured since someone was getting their garage door to open and close this way, I should be able to make this work too.
When I put in the Device ID for a lock in to the “Add a new device” section of the bridge Web UI and click the “Generate URLs” button, the ON URL generated looks like this:
http://192.168.xxx.xxx:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1&DeviceNum=53
At that point, if I test using the “test on” and “test off” buttons, nothing happens with the lock but I get a new web page that opens (with the above URL as the address) that outputs something like this:
{ “u:SetTargetResponse”: { “JobID”: “58” } }
And if I update the Alexa app at that point and ask her to Open or Unlock the door, she barfs “I’m not sure how to help you”. If I ask her to Turn On/Off the door, she says “OK” but nothing happens. So obviously the device type in the web app and the URL that define the door as a switch needs to be changed.
So I edit the serviceId=urn …SwitchPower1 and replace it with the device_type string in the Advanced tab of the devices prop sheet in UI5: urn:schemas-micasaverde-com:device:DoorLock:1 for both the ON URL and the OFF URL. The Bridge web UI “Type” column for the lock still says “switch” like all of my other devices, and now pressing the ‘test on’ ‘test off’ buttons in the bridge web UI results in a new web browser tab with a URL like:
“http://192.168.x.x:3480/data_request?id=action&output_format=json&serviceId=urn:schemas-micasaverde-com:device:DoorLock:1&action=SetTarget&newTargetValue=0&DeviceNum=53”
and the text of the web page is:
ERROR: Invalid Service
If I ignore this error, “Forget” the previous Smart Device for the lock in the Alexa app, and re “Discover devices”, it gets added back but she keeps telling me she doesn’t know how to help me unlock/open the device but says OK to turning it on and off and nothing happens with the lock.
Does anyone see what I’m doing wrong? Seems like I need to get the device to change in the Bridge web UI from a switch to a lock, but I haven’t seen any discussion in the thread about how to do that and the messages about a garage door opener didn’t help shed light on my problem.