Bug with indigo.zwave.sendConfigParm with 4byte ParamValue

Posted on
Wed Dec 28, 2016 8:03 pm
GlennNZ offline
User avatar
Posts: 1574
Joined: Dec 07, 2014
Location: Central Coast, Australia

Bug with indigo.zwave.sendConfigParm with 4byte ParamValue

Hi Matt

Think I have come across a error (easily fixed I suspect) within indigo.zwave.sendConfigParam.

Have been writing a simple LED effects plugin to send commands to start LED cycling.
AEON Labs RGB Lights need a large Parameter 37 - something like = 2164261118 (it is 4 bytes after all)
(max of 2,147,483,647 - integer level)

However it appears it is only being passed as a unsigned ushort - hence when I try a value above 65535 - the below error occurs.

Works:
Code: Select all
indigo.zwave.sendConfigParm(device=indigo.devices[devId],paramIndex=37,paramSize=4,paramValue=65535)

LED Simple Effects Debug Rainbow-Fast Set on device:TV Room Aeon RGB Upright Lamp 1
Z-Wave device "TV Room Aeon RGB Upright Lamp 1" parameter 37 changed to 65535


But go out of ushort territory - to 65537

Fails:
Code: Select all
indigo.zwave.sendConfigParm(device=indigo.devices[devId],paramIndex=37,paramSize=4,paramValue=65537)


LED Simple Effects Debug Rainbow-Fast Set on device:TV Room Aeon RGB Upright Lamp 1
LED Simple Effects Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 201, in speakCallerNumber
StandardError: bad numeric conversion: positive overflow

as does the one I need (not surprisingly):
Code: Select all
indigo.zwave.sendConfigParm(device=indigo.devices[devId],paramIndex=37,paramSize=4,paramValue=2164293886
)

LED Simple Effects Debug Rainbow-Fast Set on device:TV Room Aeon RGB Upright Lamp 1
LED Simple Effects Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 201, in speakCallerNumber
StandardError: bad numeric conversion: positive overflow


The standard modify config menu - correctly allows over ushort numbers to be set however.

Thanks for looking into.

Glenn

Posted on
Wed Dec 28, 2016 10:02 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Bug with indigo.zwave.sendConfigParm with 4byte ParamVal

Hi Glenn,

Definitely a bug – we'll get it fixed in 7.0.3. Thanks for the report!

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 13 guests