KyleTaylorParkins / com.technisat.smarthome

Technisat Z-Wave devices for Homey
0 stars 2 forks source link

Support of ZWAVE scenes #8

Open 4braincells opened 10 months ago

4braincells commented 10 months ago

Moin,

I am still learning about all this ... <:o) So please remove the knot in my brain...

I'd like to use the 4 buttons of the Technisat Roller Shutter for scene controls like "close all blinds in the room" ... I have been reading the forum but didn't find anything appropriate.

Zwave docs of the Technisat Roller Shutter say:

Central Scene

Der TechniSat Rollladenschalter kann auch als Szenenschalter verwendet werden. In der Standardkonfiguration (Parameter 1) sendet der Rollladenschalter beim Mehrfachbetätigen der Tastpositionen T1, T2, T3 oder T4 Auslösebenachrichtigungen der Z-Wave Command Class Central Scene an den primären Z-Wave Controller. Beim Mehrfachbetätigen der jeweiligen Tastposition werden folgende Auslösebenachrichtigung versandt:

Tasten / Scenenummer T1 / 1 T2 / 2
T3 / 3 T4 / 4

Die folgenden Tastenattribute werden für alle Szenennummern in der Auslösebenachrichtigung verwendet:

Tastposition (T1/T2/T3/T4) gedrückt / Z-Wave Tastenattribut

zwei mal / Taste zwei mal gedrückt drei mal / Taste drei mal gedrückt vier mal / Taste vier mal gedrückt fünf mal / Taste fünf mal gedrückt

Q: How can I use e.g. "T2 pushed twice" to start a FLOW? or (more general) Q: How can I catch ZWAVE Scene commands with the Homey?

Virtual button? How could I link that to the scene from device? This might need a driver method for the TEchnisat device?

thanks in advance, S.

EDIT: Just scanned the code and see that you added scenes in 1.5.0, Homey Repo has only 1.4.8 ...

KyleTaylorParkins commented 10 months ago

Hi Stefan,

Support for scenes has been added in version 1.5.0. Unfortunately, after version 1.4.8 every version had (little) issues why they didn't make it to the live version. However for your purpose they probably work fine, especially if you are not using Homey Pro 2023. You can install the newer testing version from this link: https://homey.app/a/com.technisat.smarthome/test

After installing this version the device should have an additional trigger flowcard which will let you set the button and how many times it has been pressed.

image

4braincells commented 10 months ago

Hi, thank you ! I'll check the test version.

I'd have more ideas for features :-D like: IF/AND current position IS EQUAL/LESS/GT number

I am not familiar with this homey/ZWAVE stuff, but I'd like to fork and play around with the SDK to get some experience. Maybe s.th. usable comes out LOL

br, Stefan

4braincells commented 10 months ago

OK, the shutter works fine with the 1.5.8 TEST, even on Pro 2023 (I said I am new to this :-)

I pushed a dev branch in my fork - just changed a couple of texts cause the labels were a bit misleading. If you want to merge it, I can make a pull req.

I only have some roller shutters, so I probably am of no help with any bugs in other devices, but feel free to explain them (maybe by some issues?) and I will see if I can help.

br

KyleTaylorParkins commented 10 months ago

I've checked it and it seems fine. My German is not that great so I tried to do the best I could to support the German users. If you create a pull request I'll merge it and try to update the labels for the other devices accordingly.

The issues with Homey Pro 2023 is that the app crashes when the device sends an Z-Wave report related to power measuring. This happens in Z-Wave driver so it's nothing I can change myself. I"ll probably put a remark about this in the readme and then push the new 1.5.9 version to live so that everyone can use the new features like the scenes.