Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chr() arg not in range(256) when setting RGBW device #133

Open
durosity opened this issue Oct 24, 2019 · 1 comment
Open

chr() arg not in range(256) when setting RGBW device #133

durosity opened this issue Oct 24, 2019 · 1 comment

Comments

@durosity
Copy link

Howdy. Just hooked up a new Aeotec RGBW light strip and while it presents to Home app with no problems attempts to adjust the colour gives error:

chr() arg not in range(256)

this happens for any colour that's chosen in Home app and the error shows in the indigo log. Changing colour in indigo works correctly and the device in HomeKit actually updates with the correct colour, so it seems to be purely a write to indigo issue rather than reading the status of the device.

The usual dump of info, hopefully this is everything you need:

[code]
##### DEVICE DATA DUMP #####

address : 97
batteryLevel : None
blueLevel : 2.36240849
brightness : 49
buttonConfiguredCount : 0
buttonGroupCount : 0
configured : True
defaultBrightness : 49
description : 
deviceTypeId : zwColorDimmerType
displayStateId : brightnessLevel
displayStateImageSel : DimmerOn
displayStateValRaw : 49
displayStateValUi : 49
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState : 
folderId : 32672637
globalProps : MetaProps : (dict)
     com.perceptiveautomation.indigoplugin.zwave : (dict)
          SupportsColor : true (bool)
          SupportsRGB : true (bool)
          SupportsRGBandWhiteSimultaneously : false (bool)
          SupportsTwoWhiteLevels : true (bool)
          SupportsTwoWhiteLevelsSimultaneously : true (bool)
          SupportsWhite : true (bool)
          address : 97 (integer)
          indigoObjVersion : 8 (integer)
          userPollAfterActivity : true (bool)
          userPollInterval : 0 (integer)
          userPollingEnabled : true (bool)
          userWakeInterval : 60 (integer)
          version : 1.02 (string)
          zwAppVersMajor : 1 (integer)
          zwAppVersMinor : 2 (integer)
          zwAssociationsMap : (dict)
               g1 : (list)
                    Item : 1 (integer)
               g2 : (list)
          zwAssociationsMapStr : 1:[1] 2:[] (string)
          zwClassCmdBase : 38 (integer)
          zwClassCmdMap : (dict)
               c112 : 1 (integer)
               c114 : 1 (integer)
               c115 : 1 (integer)
               c122 : 1 (integer)
               c133 : 1 (integer)
               c134 : 1 (integer)
               c32 : 1 (integer)
               c38 : 2 (integer)
               c39 : 1 (integer)
               c43 : 1 (integer)
               c44 : 1 (integer)
               c51 : 1 (integer)
               c89 : 1 (integer)
               c90 : 1 (integer)
               c94 : 1 (integer)
          zwClassCmdMapStr : 20v1 33v1 26v2 86v1 27v1 2Bv1 2Cv1 70v1 72v1 73v1 59v1 7Av1 5Av1 5Ev1 85v1 (string)
          zwClassIds : (list)
               Item : 4 (integer)
               Item : 17 (integer)
               Item : 1 (integer)
          zwClassInstanceCountMap : (dict)
          zwClassInstanceCountMapStr : - none - (string)
          zwClassName : Dimmable Power Switch (string)
          zwConfigVals : (dict)
          zwConfigValsStr : - none - (string)
          zwDevSubIndex : 0 (integer)
          zwEncryptClassCmdMap : (dict)
          zwEncryptClassCmdMapStr : - none - (string)
          zwEncryptionStatusStr : Not Supported (string)
          zwEndpointClassMap : (dict)
          zwEndpointClassMapStr : - none - (string)
          zwEndpointDevTypeMap : (dict)
          zwEndpointDevTypeMapStr : - none - (string)
          zwFeatureListStr : routing, beaming (string)
          zwLibType : 3 (integer)
          zwManufactureId : 134 (integer)
          zwManufactureName : Aeon Labs (string)
          zwModelDefnVers : 1 (integer)
          zwModelId : 196729 (integer)
          zwModelName : RGBW LED Strip (ZW121) (string)
          zwNodeNeighbors : (list)
               Item : 5 (integer)
               Item : 6 (integer)
               Item : 7 (integer)
               Item : 8 (integer)
               Item : 9 (integer)
               Item : 12 (integer)
               Item : 13 (integer)
               Item : 14 (integer)
               Item : 15 (integer)
               Item : 16 (integer)
               Item : 17 (integer)
               Item : 18 (integer)
               Item : 27 (integer)
               Item : 28 (integer)
               Item : 29 (integer)
               Item : 33 (integer)
               Item : 35 (integer)
               Item : 50 (integer)
               Item : 51 (integer)
               Item : 54 (integer)
               Item : 60 (integer)
               Item : 70 (integer)
               Item : 78 (integer)
               Item : 84 (integer)
               Item : 86 (integer)
               Item : 87 (integer)
               Item : 90 (integer)
               Item : 95 (integer)
               Item : 96 (integer)
          zwNodeNeighborsStr : 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 27, 28, 29, 33, 35, 50, 51, 54, 60, 70, 78, 84, 86, 87, 90, 95, 96 (string)
          zwProtoVersMajor : 4 (integer)
          zwProtoVersMinor : 34 (integer)
          zwShowDumpDevToLog : true (bool)
          zwShowMainUI : true (bool)
          zwShowManualModifyConfigParmUI : true (bool)
          zwShowPollingUI : true (bool)
          zwShowSubmitModelInfoUI : false (bool)
          zwShowWakeIntervalUI : false (bool)
          zwWakeInterval : 0 (integer)
greenLevel : 99.96772408
id : 844221872
lastChanged : 2019-10-24 17:03:42
lastSuccessfulComm : 2019-10-24 17:03:42
ledStates : []
model : RGBW LED Strip (ZW121)
name : Study - Ambient Lights
onBrightensToDefaultToggle : False
onBrightensToLast : True
onState : True
ownerProps : com.perceptiveautomation.indigoplugin.zwave : (dict)
     SupportsColor : true (bool)
     SupportsRGB : true (bool)
     SupportsRGBandWhiteSimultaneously : false (bool)
     SupportsTwoWhiteLevels : true (bool)
     SupportsTwoWhiteLevelsSimultaneously : true (bool)
     SupportsWhite : true (bool)
     address : 97 (integer)
     indigoObjVersion : 8 (integer)
     userPollAfterActivity : true (bool)
     userPollInterval : 0 (integer)
     userPollingEnabled : true (bool)
     userWakeInterval : 60 (integer)
     version : 1.02 (string)
     zwAppVersMajor : 1 (integer)
     zwAppVersMinor : 2 (integer)
     zwAssociationsMap : (dict)
          g1 : (list)
               Item : 1 (integer)
          g2 : (list)
     zwAssociationsMapStr : 1:[1] 2:[] (string)
     zwClassCmdBase : 38 (integer)
     zwClassCmdMap : (dict)
          c112 : 1 (integer)
          c114 : 1 (integer)
          c115 : 1 (integer)
          c122 : 1 (integer)
          c133 : 1 (integer)
          c134 : 1 (integer)
          c32 : 1 (integer)
          c38 : 2 (integer)
          c39 : 1 (integer)
          c43 : 1 (integer)
          c44 : 1 (integer)
          c51 : 1 (integer)
          c89 : 1 (integer)
          c90 : 1 (integer)
          c94 : 1 (integer)
     zwClassCmdMapStr : 20v1 33v1 26v2 86v1 27v1 2Bv1 2Cv1 70v1 72v1 73v1 59v1 7Av1 5Av1 5Ev1 85v1 (string)
     zwClassIds : (list)
          Item : 4 (integer)
          Item : 17 (integer)
          Item : 1 (integer)
     zwClassInstanceCountMap : (dict)
     zwClassInstanceCountMapStr : - none - (string)
     zwClassName : Dimmable Power Switch (string)
     zwConfigVals : (dict)
     zwConfigValsStr : - none - (string)
     zwDevSubIndex : 0 (integer)
     zwEncryptClassCmdMap : (dict)
     zwEncryptClassCmdMapStr : - none - (string)
     zwEncryptionStatusStr : Not Supported (string)
     zwEndpointClassMap : (dict)
     zwEndpointClassMapStr : - none - (string)
     zwEndpointDevTypeMap : (dict)
     zwEndpointDevTypeMapStr : - none - (string)
     zwFeatureListStr : routing, beaming (string)
     zwLibType : 3 (integer)
     zwManufactureId : 134 (integer)
     zwManufactureName : Aeon Labs (string)
     zwModelDefnVers : 1 (integer)
     zwModelId : 196729 (integer)
     zwModelName : RGBW LED Strip (ZW121) (string)
     zwNodeNeighbors : (list)
          Item : 5 (integer)
          Item : 6 (integer)
          Item : 7 (integer)
          Item : 8 (integer)
          Item : 9 (integer)
          Item : 12 (integer)
          Item : 13 (integer)
          Item : 14 (integer)
          Item : 15 (integer)
          Item : 16 (integer)
          Item : 17 (integer)
          Item : 18 (integer)
          Item : 27 (integer)
          Item : 28 (integer)
          Item : 29 (integer)
          Item : 33 (integer)
          Item : 35 (integer)
          Item : 50 (integer)
          Item : 51 (integer)
          Item : 54 (integer)
          Item : 60 (integer)
          Item : 70 (integer)
          Item : 78 (integer)
          Item : 84 (integer)
          Item : 86 (integer)
          Item : 87 (integer)
          Item : 90 (integer)
          Item : 95 (integer)
          Item : 96 (integer)
     zwNodeNeighborsStr : 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 27, 28, 29, 33, 35, 50, 51, 54, 60, 70, 78, 84, 86, 87, 90, 95, 96 (string)
     zwProtoVersMajor : 4 (integer)
     zwProtoVersMinor : 34 (integer)
     zwShowDumpDevToLog : true (bool)
     zwShowMainUI : true (bool)
     zwShowManualModifyConfigParmUI : true (bool)
     zwShowPollingUI : true (bool)
     zwShowSubmitModelInfoUI : false (bool)
     zwShowWakeIntervalUI : false (bool)
     zwWakeInterval : 0 (integer)
pluginId : com.perceptiveautomation.indigoplugin.zwave
pluginProps : com.eps.indigoplugin.homekit-bridge : (dict)
protocol : ZWave
redLevel : 13.13448101
remoteDisplay : True
states : States : (dict)
     blueLevel : 2.36240849 (real)
     blueLevel.ui : 2 (string)
     brightnessLevel : 49 (integer)
     greenLevel : 99.96772408 (real)
     greenLevel.ui : 100 (string)
     onOffState : on (on/off bool)
     redLevel : 13.13448101 (real)
     redLevel.ui : 13 (string)
     whiteLevel : 0.00000000 (real)
     whiteLevel.ui : 0 (string)
     whiteLevel2 : 0.00000000 (real)
     whiteLevel2.ui : 0 (string)
subModel : 
supportsAllLightsOnOff : False
supportsAllOff : False
supportsColor : True
supportsRGB : True
supportsRGBandWhiteSimultaneously : False
supportsStatusRequest : True
supportsTwoWhiteLevels : True
supportsTwoWhiteLevelsSimultaneously : True
supportsWhite : True
supportsWhiteTemperature : False
version : 1.02
whiteLevel : 0.0
whiteLevel2 : 0.0
whiteTemperature : None

##### DEVICE SIMULATION DATA #####

Service : 
	alias : Study - Ambient Lights
	model : 
	subModel : 
	indigoType : indigo.DimmerDevice
	pluginType : indigo.DimmerDevice.com.perceptiveautomation.indigoplugin.zwave.zwColorDimmerType
	type : Lightbulb
	desc : Lightbulb
	objId : 844221872
	serverId : 930964303
	invertOnState : False
	convertFahrenheit : False
	required : (List)
		On : True
	optional : (List)
		Hue : 113.378184914
		Saturation : 97.6368287747
		ColorTemperature : 4205
		Name
		Brightness : 49
	native : True
	requiresPlugin : (List)
	actions : (List)
		Action : (HomeKitAction)
			Characteristic : On
			When : equal
			Value : False (bool)
			Value2 : 0 (bool)
			Command : device.turnOff
			Arguments : [844221872]
			monitors : {844221872: 'attr_onState'}
		Action : (HomeKitAction)
			Characteristic : On
			When : equal
			Value : True (bool)
			Value2 : 0 (bool)
			Command : device.turnOn
			Arguments : [844221872]
			monitors : {844221872: 'attr_onState'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : between
			Value : 0.0 (float)
			Value2 : 100000.0 (float)
			Command : homekit.commandSetDeviceColor
			Arguments : [844221872, 930964303, '=service=', 'Hue', '=value=']
			monitors : {844221872: 'attr_whiteTemperature'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_redLevel'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_blueLevel'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_greenLevel'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel'}
		Action : (HomeKitAction)
			Characteristic : Hue
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel2'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : between
			Value : 0.0 (float)
			Value2 : 100000.0 (float)
			Command : homekit.commandSetDeviceColor
			Arguments : [844221872, 930964303, '=service=', 'Saturation', '=value=']
			monitors : {844221872: 'attr_whiteTemperature'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_redLevel'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_blueLevel'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_greenLevel'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel'}
		Action : (HomeKitAction)
			Characteristic : Saturation
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel2'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : between
			Value : 0.0 (float)
			Value2 : 100000.0 (float)
			Command : homekit.commandSetDeviceColor
			Arguments : [844221872, 930964303, '=service=', 'ColorTemperature', '=value=']
			monitors : {844221872: 'attr_whiteTemperature'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_redLevel'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_blueLevel'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_greenLevel'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel'}
		Action : (HomeKitAction)
			Characteristic : ColorTemperature
			When : equal
			Value : STUB (str)
			Value2 : 0 (str)
			Command : STUB
			Arguments : [844221872, 0]
			monitors : {844221872: 'attr_whiteLevel2'}
		Action : (HomeKitAction)
			Characteristic : Brightness
			When : between
			Value : 0 (int)
			Value2 : 100 (int)
			Command : dimmer.setBrightness
			Arguments : [844221872, '=value=']
			monitors : {844221872: 'attr_brightness'}
	loadOptional : False
	characterDict : (Dict)
		On : True
		Saturation : 97.6368287747
		Brightness : 49
		ColorTemperature : 4205
		Hue : 113.378184914


[/code]
#####################################################################
# HomeKit Bridge                                                    #
#####################################################################
#                                                                   #
# Plugin Version      : 1.0.2                                       #
# Template Version    : 3.3.1                                       #
# Core Engine Version : 3.0.0                                       #
# Indigo Version      : 7.4.0                                       #
# Indigo API Version  : 2.2                                         #
#                                                                   #
# Alphas, Betas and Pre-Releases can be downloaded from:            #
#    https://github.com/Colorado4Wheeler                            #
#                                                                   #
# All support inquiries, questions or comments go to:               #
#    http://forums.indigodomo.com/viewforum.php?f=192               #
#                                                                   #
# Copyright (c) 2018 - Colorado4Wheeler & EPS                       #
#                                                                   #
#####################################################################


@johnsturgeon
Copy link

Getting the same error here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants