jbasen / Crestron-Shelly

26 stars 1 forks source link

Position Shelly 2.5 in shutter mode. #32

Closed micdre closed 1 year ago

micdre commented 1 year ago

Hi,

Is it possible to create an analog input to give a position in the 2.5 V21 module?

Kind regards, Michel

jbasen commented 1 year ago

Hi,

I'm a little confused. The Shelly Roller v2.1 module that is specifically for the situation when the Shelly 2.5 is used in roller mode already has an analog output for position. The Shelly Relay v6 module doesn't have a position output because that is only for use when the Shelly 2.5 is used in relay mode.

Thanks

micdre commented 1 year ago

I ment roller mode....

Met vriendelijke groet, With kind regards, Michel Drenthen

BlueMail voor Androidhttps://bluemail.me downloaden Op 17 feb. 2023, om 20:40, jbasen @.**@.>> schreef:

Hi,

I'm a little confused. The Shelly Roller v2.1 module that is specifically for the situation when the Shelly 2.5 is used in roller mode already has an analog output for position. The Shelly Relay v6 module doesn't have a position output because that is only for use when the Shelly 2.5 is used in relay mode.

Thanks

— Reply to this email directly, view it on GitHubhttps://github.com/jbasen/Crestron-Shelly/issues/32#issuecomment-1435146872, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGQC3ZBE7MSSX2BPCSDYLPLWX7HZTANCNFSM6AAAAAAU7G3O2A. You are receiving this because you authored the thread.Message ID: @.***>

micdre commented 1 year ago

Hi,

What i ment is that the shutter module gets an analog input. So you can set the shutter position by an analog value.

Met vriendelijke groet, With kind regards, Michel Drenthen

BlueMail voor Androidhttps://bluemail.me downloaden Op 17 feb. 2023, om 20:40, jbasen @.**@.>> schreef:

Hi,

I'm a little confused. The Shelly Roller v2.1 module that is specifically for the situation when the Shelly 2.5 is used in roller mode already has an analog output for position. The Shelly Relay v6 module doesn't have a position output because that is only for use when the Shelly 2.5 is used in relay mode.

Thanks

— Reply to this email directly, view it on GitHubhttps://github.com/jbasen/Crestron-Shelly/issues/32#issuecomment-1435146872, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGQC3ZBE7MSSX2BPCSDYLPLWX7HZTANCNFSM6AAAAAAU7G3O2A. You are receiving this because you authored the thread.Message ID: @.***>

jbasen commented 1 year ago

Sorry @micdre. My mistake. Yes, I will look at adding an analog input for position in the next release.

Thanks

jbasen commented 1 year ago

Here is something to test. There are 2 changes in this version

1) The addition of a position input on the roller shutter module. Note - there is a new version of this module in the demo program. You must replace the version in program with this version.

2) There is an architectural change in the program to overcome a memory leak in the underlying class library. Hopefully you won't notice anything different because of this work. The change is within the Shelly.clz file

NOTE - I have not been able to test this code; especially the roller shutter code change. For the roller shutter code to operate you must go through the Shelly 2.5 calibration process. While I have a Shelly 2.5 to test with I don't have a shade motor to connect to it with a shade that I could run through the calibration process.

Here is a link to download the test version

https://1drv.ms/u/s!AjlldUMTB6AFgoIS7t7yhozykqCZ-w?e=frlmNl

Let me know how it goes.

Thanks

micdre commented 1 year ago

Hi,

Tested the Roller V2.2. The old functions still working good. The new analog input for position works. Feedback is direct present after value change on the analog input. Normal this is at stop. But that's ok for me. Maybe there is a possibilty for real-time feedback? But i don't think Shelly modules provide that.

Thanks again for your great work on this!

jbasen commented 1 year ago

Thanks @micdre I'm glad everything is working. The modules do provide for real time feedback through the "URL to Post Events to" that gets defined on the Maker API configuration page. However, devices like this typically don't provide the kind of real time feedback you're looking for. I'm working on an addition requested by another user. I'll post this change when I've completed the other work. Thanks again.

jbasen commented 1 year ago

The code for this has been included in v23 that is now available on GitHub