Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do you need to get locks and shades working? #4

Closed
veonua opened this issue Jun 12, 2022 · 22 comments
Closed

What do you need to get locks and shades working? #4

veonua opened this issue Jun 12, 2022 · 22 comments
Assignees
Labels
enhancement New feature or request

Comments

@veonua
Copy link

veonua commented Jun 12, 2022

I want to help you with these types of devices, please let me know what is needed

@veonua veonua added the enhancement New feature or request label Jun 12, 2022
@iklein99
Copy link
Owner

If you want, I can add some capabilities for locks and shades, but you'd have to do the testing for me. Can you commit to doing that?

@veonua
Copy link
Author

veonua commented Jun 13, 2022 via email

@iklein99
Copy link
Owner

iklein99 commented Jun 14, 2022

I added support for a lock. Would you be able to test it for me? I created a beta version for you to test. To install this, you need to get to a command line and use this command:

sudo npm install -g homebridge-smartthings-ik@beta

After you run this, restart homebridge and make sure the version of the plugin is 1.1.4-beta.0.

Please let me now how you make out. I am going to add the shade next.

@veonua
Copy link
Author

veonua commented Jun 14, 2022

hmm, installed the plug-in via hombridge UI on my Raspberry Pi, and it seems like there is no npm only pnpm
do you know if it's possible to install beta via hombridge UI?

@iklein99
Copy link
Owner

npm is there somehere. homebridge uses it to install the plugins. You may have to look around. Otherwise, once I'm able to I'll just publish the plugin normally and you can upgrade, but I can't right now.

@veonua
Copy link
Author

veonua commented Jun 14, 2022

lock works!
... it seems the plugin doesn't get device updates from the ST, so if I turn on lights or open the lock manually the device will stuck in the homekit. it tries to open opened lock and the operation never finishes.

@iklein99
Copy link
Owner

The issue is that Smartthings doesn't tell hoebridge when something changes, so it may show a bad state. The same happens with a garage door. But if you click on the device in Smartthings, it should refresh appropriately. Its about the best I can do with smartthings.

@veonua
Copy link
Author

veonua commented Jun 14, 2022

@iklein99
Copy link
Owner

Subscriptions require an endpoint with an SSL certificate and would require each user to set that up. A little too complex I think.

@iklein99
Copy link
Owner

Version 1.1.4 of the plugin now supports locks.

@veonua
Copy link
Author

veonua commented Jun 15, 2022

add shades please

@iklein99
Copy link
Owner

Run this command:

curl -H "Authorization: Bearer: " https://api.smartthings.com/v1/devices > devices.json

and send me the output. i need to see what your window shade looks like. Replace with your actual token which you used to configure the plugin. email me the results to iklein99@comcast.net.

@iklein99
Copy link
Owner

Please install homebridge-smartthings-ik@1.1.7-beta.0 and let me know if that works for your window shade / blinds. If it doesn't, please clear out your logs, run homebridge in debug mode and send me the complete logs.

Please let me know if your shade works.

@veonua
Copy link
Author

veonua commented Jun 18, 2022

could you please tell more how do I run in the debug mode

I can see

[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Living room Curtain. Comm error.
[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Right shade. Comm error.
[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Curtains. Comm error.
[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Left shade. Comm error.
[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Central shade. Comm error.
[15/06/2022, 12:37:37] [Smartthings(new)] onGet() FAILED for Second bedroom curtains. Comm error.

in my logs

@iklein99
Copy link
Owner

iklein99 commented Jun 18, 2022 via email

@robjampar
Copy link
Contributor

how about adding a configurable polling request that runs every 30 seconds to resync a device state?

@robjampar
Copy link
Contributor

im running into the same problem (i want to check that the back door lock is locked every night, but i can't do that if it has been locked manually and therefore the plugin still says its unlocked!)

@robjampar
Copy link
Contributor

something like this

#13

(untested)

@iklein99
Copy link
Owner

This is a good idea. I'll look at doing that. Thanks for the recommendation.

@iklein99 iklein99 self-assigned this Aug 15, 2022
@iklein99
Copy link
Owner

Polling for locks has been added. Closing this item.

@robjampar
Copy link
Contributor

nice!

i've tested this and it needs a minor update, the target state and current state both need to be updated when it syncs

#14

@robjampar
Copy link
Contributor

also this pattern probably could be used for other device types as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants