ZWave Scene Controller

Posted on
Sun Nov 13, 2016 7:58 am
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

ZWave Scene Controller

This is an Indigo 7 plugin that I wrote early in the Indigo 7 beta process when developers had access to Zwave APIs but the UI hadn't been updated to support scene control. I'm throwing it out there if anyone wants to use it.

I'm still using my version as:
  • I prefer my UI
  • I can support new Zwave devices that come out, without needing a device profile to be written by Matt/Jay
  • I'm hoping to add support for multiple remotes to one trigger - say if you've a large living room with two of the same Zwave remote that you want to perform the same functions, without having to duplicate and maintain two sets of triggers.
Matt is also working on (in due course) enabling me to filter the device list to just devices that support scenes.

Download link: https://www.dropbox.com/sh/cnhjecvs93gs ... Yb0ja?dl=1

Peter

Posted on
Sun Nov 13, 2016 2:26 pm
Fordy offline
Posts: 25
Joined: May 31, 2014
Location: Winchester, UK

Re: ZWave Scene Controller

Hey Peter,

I had a go, but it appears to fail for me, any clues what I did wrong? :)

Zwave Scene Controller Debug Stop processing trigger Button-Test
Zwave Scene Controller Debug Start processing trigger Button-Test
Zwave Scene Controller Debug -----
Zwave Scene Controller Debug Model ID:251727872
Zwave Scene Controller Debug -----
Z-Wave received "MasterRm-Button" scene 31769
Zwave Scene Controller Debug -----
Zwave Scene Controller Debug Central Scene Command received:
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 11 80 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1
Zwave Scene Controller Error Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
File "plugin.py", line 89, in zwaveCommandReceived
IndexError: list index out of range

Remote address I set to their paired device.
Button ID I set to 1 as that's what showed in the debut output.
Set the action to click.

Posted on
Sun Nov 13, 2016 2:36 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

That's interesting...

Mine's working ok; I did update the code last night to add support for quintuple-click (ie 5 clicks) but single click should be straight off.

Use this version and paste me the debug log again - I need the ActionID which should now appear after the Node and Button lines.

https://www.dropbox.com/sh/7rj7w9q11x0k ... Gqjaa?dl=1

Peter

Posted on
Sun Nov 13, 2016 2:40 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

Actually, the action ID is in the command string you posted - it's sending action ID 80 - the supported actions are 00 through 07 for the Fibaro Button. :?

Are you using encrypted mode or non-encrypted?

Peter

Posted on
Sun Nov 13, 2016 2:43 pm
Fordy offline
Posts: 25
Joined: May 31, 2014
Location: Winchester, UK

Re: ZWave Scene Controller

Encrypted mode - I was excited about having encryption so figured I'd bang it on, but have no idea how that actually works at ground level yet! The magic successfully hid it. :)

Posted on
Sun Nov 13, 2016 2:45 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

Right.

Can you send me the log when you do a Click, a Double Click, a Triple Click, a Quad Click and a Quint Click?

I need to see what actions IDs it sends.

Use whichever version you've got installed.

Peter

Posted on
Sun Nov 13, 2016 3:02 pm
andarv offline
Posts: 121
Joined: Jun 28, 2015
Location: Stockholm, Sweden

Re: ZWave Scene Controller

Plugin works great with my NodOn - tanx!

Posted on
Sun Nov 13, 2016 3:21 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

andarv wrote:
Plugin works great with my NodOn - tanx!

Excellent!

Unfortunately my Fibaro Button has just died - probably the battery, but I haven't got round to ordering any spares yet! :(

Peter

Posted on
Sun Nov 13, 2016 4:13 pm
andarv offline
Posts: 121
Joined: Jun 28, 2015
Location: Stockholm, Sweden

Re: ZWave Scene Controller

My NodOn was dead this morning when I was super exited to get it working, one battery down the drain while waiting in a drawer....

Posted on
Mon Nov 14, 2016 11:58 am
Fordy offline
Posts: 25
Joined: May 31, 2014
Location: Winchester, UK

Re: ZWave Scene Controller

Heya Peter,

Here they are from each of the 1,2,3,4,5 clicks:
Z-Wave received "MasterRm-Button" scene 31769
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 26 80 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1

Z-Wave received "MasterRm-Button" scene 32537
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 27 83 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1

Z-Wave received "MasterRm-Button" scene 32793
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 28 84 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1

Z-Wave received "MasterRm-Button" scene 33049
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 29 85 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1

Z-Wave received "MasterRm-Button" scene 33305
Zwave Scene Controller Debug Raw command: 01 0B 00 04 00 28 05 5B 03 2A 86 01 FF
Zwave Scene Controller Debug Node: 40
Zwave Scene Controller Debug Button: 1

Posted on
Mon Nov 14, 2016 7:03 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

Strange that it's sending 80+ action IDs instead of 01-6.

I should be able to code that this week, but busy next two nights.


Sent from my iPhone using Tapatalk

Posted on
Mon Nov 14, 2016 7:16 pm
matt (support) offline
Site Admin
User avatar
Posts: 18370
Joined: Jan 27, 2003
Location: Texas

Re: ZWave Scene Controller

I'll be releasing a new installer for Indigo shortly that fixes it for the Fibaro Button, but the fix you'll want (based on the spec) for your plugin is to only use the last 3 bits to determine the click count:

actionID = (actionID & 0x07)

Image

Posted on
Mon Nov 14, 2016 7:18 pm
howartp offline
Posts: 3204
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: ZWave Scene Controller

Cool, thanks Matt.


Sent from my iPhone using Tapatalk

Posted on
Tue Nov 15, 2016 1:20 pm
Fordy offline
Posts: 25
Joined: May 31, 2014
Location: Winchester, UK

Re: ZWave Scene Controller

Awesome that works perfectly! Thanks very much for getting a proper fix out so quickly, impressed! :)

Posted on
Tue Nov 15, 2016 1:21 pm
Fordy offline
Posts: 25
Joined: May 31, 2014
Location: Winchester, UK

Re: ZWave Scene Controller

(I now have an evil "house wideshutdown" button. Muahwuahwuahwuahwuah!)

Who is online

Users browsing this forum: No registered users and 1 guest