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