HomeKit Bridge 1.0.2-b1 Exception error

Posted on
Tue Jul 17, 2018 12:55 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

HomeKit Bridge 1.0.2-b1 Exception error

Just upgraded (downgraded?) to 1.0.2-b1
Errors on my Hue bedside lamp


Stopped plugin HomeKit Bridge
Downgrading plugin HomeKit Bridge to older version 1.0.2-b1 (previous version moved to trash)
Loading plugin "HomeKit Bridge 1.0.2-b1"
Starting plugin "HomeKit Bridge 1.0.2-b1" (pid 563)
HomeKit Bridge Caching all HomeKit Bridge devices...
HomeKit Bridge Error Exception in homekit.special_HSV line 2451: unsupported operand type(s) for /: 'NoneType' and 'float'
CODE: r, g, b = [x/255.0 for x in r, g, b]

For object id 986132826 alias 'Bedroom 1 Bedside Light Clive '
HomeKit Bridge Error Exception in homekit.special_HSV line 2451: unsupported operand type(s) for /: 'NoneType' and 'float'
CODE: r, g, b = [x/255.0 for x in r, g, b]

For object id 986132826 alias 'Bedroom 1 Bedside Light Clive '
HomeKit Bridge Error Exception in homekit.special_HSV line 2451: unsupported operand type(s) for /: 'NoneType' and 'float'
CODE: r, g, b = [x/255.0 for x in r, g, b]

For object id 986132826 alias 'Bedroom 1 Bedside Light Clive '
HomeKit Bridge Error Exception in homekit.special_HSV line 2451: unsupported operand type(s) for /: 'NoneType' and 'float'
CODE: r, g, b = [x/255.0 for x in r, g, b]

For object id 986132826 alias 'Bedroom 1 Bedside Light Clive '
HomeKit Bridge Error Exception in homekit.special_HSV line 2451: unsupported operand type(s) for /: 'NoneType' and 'float'
CODE: r, g, b = [x/255.0 for x in r, g, b]

Code: Select all
   ##### DEVICE DATA DUMP #####
   
   address : 192.168.100.240 (ID 23)
   batteryLevel : None
   blueLevel : None
   brightness : 0
   buttonGroupCount : 0
   configured : True
   defaultBrightness : 100
   description :
   deviceTypeId : hueAmbiance
   displayStateId : brightnessLevel
   displayStateImageSel : DimmerOff
   displayStateValRaw : 0
   displayStateValUi : 0
   enabled : True
   energyAccumBaseTime : None
   energyAccumTimeDelta : None
   energyAccumTotal : None
   energyCurLevel : None
   errorState :
   folderId : 1558050675
   globalProps : MetaProps : (dict)
        com.nathansheldon.indigoplugin.HueLights : (dict)
             SupportsColor : true (bool)
             SupportsRGB : false (bool)
             SupportsWhite : true (bool)
             SupportsWhiteTemperature : true (bool)
             WhiteTemperatureMax : 6500 (string)
             WhiteTemperatureMin : 2000 (string)
             address : 192.168.100.240 (ID 23) (string)
             bulbId : 23 (string)
             defaultBrightness : 50 (string)
             manufacturerName : Philips (string)
             modelId : LTW012 (string)
             nameOnHub : Clive Lamp (string)
             rate : 1 (string)
             savedBrightness : 254 (integer)
             swVersion : 1.29.0_r21169 (string)
             type : Color temperature light (string)
             uniqueId : 00:17:88:01:02:1d:1b:e1-0b (string)
   greenLevel : None
   id : 986132826
   lastChanged : 2018-07-17 19:33:44
   lastSuccessfulComm : 2018-07-17 19:33:44
   ledStates : []
   model : Ambiance Lights
   name : Bedroom 1 Bedside Light Clive
   onBrightensToDefaultToggle : False
   onBrightensToLast : False
   onState : False
   ownerProps : com.nathansheldon.indigoplugin.HueLights : (dict)
        SupportsColor : true (bool)
        SupportsRGB : false (bool)
        SupportsWhite : true (bool)
        SupportsWhiteTemperature : true (bool)
        WhiteTemperatureMax : 6500 (string)
        WhiteTemperatureMin : 2000 (string)
        address : 192.168.100.240 (ID 23) (string)
        bulbId : 23 (string)
        defaultBrightness : 50 (string)
        manufacturerName : Philips (string)
        modelId : LTW012 (string)
        nameOnHub : Clive Lamp (string)
        rate : 1 (string)
        savedBrightness : 254 (integer)
        swVersion : 1.29.0_r21169 (string)
        type : Color temperature light (string)
        uniqueId : 00:17:88:01:02:1d:1b:e1-0b (string)
   pluginId : com.nathansheldon.indigoplugin.HueLights
   pluginProps : com.eps.indigoplugin.homekit-bridge : (dict)
   protocol : Plugin
   redLevel : None
   remoteDisplay : True
   states : States : (dict)
        alertMode : none (string)
        alertMode.ui : none (string)
        brightnessLevel : 0 (integer)
        brightnessLevel.ui : 0 (string)
        colorMode : ct (string)
        colorMode.ui : ct (string)
        colorTemp : 2732 (integer)
        colorTemp.ui : 2732 (string)
        effect : none (string)
        effect.ui : none (string)
        onOffState : off (on/off bool)
        online : true (bool)
        online.ui : True (string)
        whiteLevel : 100.00000000 (real)
        whiteLevel.ui : 100 (string)
        whiteTemperature : 2732.00000000 (real)
        whiteTemperature.ui : 2732 (string)
   subModel :
   supportsAllLightsOnOff : False
   supportsAllOff : False
   supportsColor : True
   supportsRGB : False
   supportsRGBandWhiteSimultaneously : False
   supportsStatusRequest : True
   supportsTwoWhiteLevels : False
   supportsTwoWhiteLevelsSimultaneously : False
   supportsWhite : True
   supportsWhiteTemperature : True
   version : None
   whiteLevel : 100.0
   whiteLevel2 : None
   whiteTemperature : 2732
   
   ##### DEVICE SIMULATION DATA #####
   
   Service :
      alias : Bedroom 1 Bedside Light Clive
      model :
      subModel :
      indigoType : indigo.DimmerDevice
      pluginType : indigo.DimmerDevice.com.nathansheldon.indigoplugin.HueLights.hueAmbiance
      type : Lightbulb
      desc : Lightbulb
      objId : 986132826
      serverId : 181278911
      invertOnState : False
      convertFahrenheit : False
      required : (List)
         On : False
      optional : (List)
         Hue : 0.0
         Saturation : 0.0
         ColorTemperature : 140
         Name
         Brightness : 0
      native : True
      requiresPlugin : (List)
      actions : (List)
         Action : (HomeKitAction)
            Characteristic : On
            When : equal
            Value : False (bool)
            Value2 : 0 (bool)
            Command : device.turnOff
            Arguments : [986132826]
            monitors : {986132826: 'attr_onState'}
         Action : (HomeKitAction)
            Characteristic : On
            When : equal
            Value : True (bool)
            Value2 : 0 (bool)
            Command : device.turnOn
            Arguments : [986132826]
            monitors : {986132826: 'attr_onState'}
      loadOptional : False
      characterDict : (Dict)
         On : False
   

   

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Tue Jul 17, 2018 1:08 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: HomeKit Bridge 1.0.2-b1 Exception error

Please download 1.0.2 Beta 2 to address this issue. I'll have to specifically support that Hue because it uses color temperature instead of RGB but that is now checked properly and should eliminate the error.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Jul 17, 2018 1:17 pm
CliveS offline
Posts: 770
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: HomeKit Bridge 1.0.2-b1 Exception error

Colorado4Wheeler wrote:
Please download 1.0.2 Beta 2 to address this issue. I'll have to specifically support that Hue because it uses color temperature instead of RGB but that is now checked properly and should eliminate the error.


Updated and now error free. Thanks :)

CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Tue Jul 17, 2018 1:19 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: HomeKit Bridge 1.0.2-b1 Exception error

By the way thank you for posting the simulation data, if not for that I wouldn't have found the issue so quickly!

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Jul 17, 2018 1:57 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: HomeKit Bridge 1.0.2-b1 Exception error

I'm not sure how I would go about testing a solution with this particular device since I don't know if it would correctly translate a converted color temperature. I mean, technically, color temp is not three dimensional, it is a space and as such it would mean that most colors in the 65,535 palette wouldn't translate (i.e., there can technically be no green color in color temp).

Certainly it can be done, but I'm not sure if it can be done without me having the device to experiment with.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jul 25, 2018 10:00 am
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: HomeKit Bridge 1.0.2-b1 Exception error

Hi - first time user. :D

I dipped my toe into 1.0.2 and struggled a bit with establishing the server. It seemed that no matter what I tried, I couldn't get it to show up in the Home app. On each attempt, I was getting these errors:

Code: Select all
2018-07-25 10:00:15.424   HomeKit Bridge Error   Exception in plugin.serverFormFieldChanged_Device line 3595: 'key objectType not found in dict'
                      CODE: if valuesDict['objectType'] == 'device' or valuesDict['objectType'] == 'devicefiltered':

2018-07-25 10:00:15.438   HomeKit Bridge Error   Exception in plugin.serverFormFieldChanged_Action line 3654: 'key objectType not found in dict'
                      CODE: if valuesDict['objectType'] == 'action' or valuesDict['objectType'] == 'actionfiltered':

2018-07-25 10:00:48.723   HomeKit Bridge Error   Exception in homekit.getStashRecordForObject line 896: ('key includedDevices not found in dict', u'Server Id: 628208929', u'Server data: com.eps.indigoplugin.homekit-bridge : (dict)')
                      CODE: includedDevices = json.loads(serverProps["includedDevices"])

2018-07-25 10:01:04.764   HomeKit Bridge Warning   Basement - Energy Meter 1 is defaulting to a HomeKit switch because the device type cannot be determined but does not support On/Off and likely won't do anything in HomeKit
2018-07-25 10:01:04.773   HomeKit Bridge Error   Exception in homekit.getStashRecordForObject line 896: ('key includedDevices not found in dict', u'Server Id: 628208929', u'Server data: com.eps.indigoplugin.homekit-bridge : (dict)')
                      CODE: includedDevices = json.loads(serverProps["includedDevices"])

On the latest attempt, I stopped the Indigo server, deleted the indiPref file and started over. Within the first HKB server device dialog, I added over 50 devices before leaving the dialog. For some reason, that seemed to knock the thing to life. To be honest, I'm not exactly sure what I did to get the server properly established. I have used no prior versions of this plugin and never used Home Bridge Buddy. You may be able to recreate the error by creating a duplicate of the plugin with a unique Info.plist file.

With the server established, it's working well! I even added a Fantastic Weather device. :D

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Jul 25, 2018 10:04 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: HomeKit Bridge 1.0.2-b1 Exception error

That's odd, I haven't seen that pop up for anyone else who installed the plugin but I'll take a look and see if theres a bug.

DaveL17 wrote:
With the server established, it's working well! I even added a Fantastic Weather device.

Good, I added support for it in 1.0.1 :D.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed Jul 25, 2018 10:13 am
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: HomeKit Bridge 1.0.2-b1 Exception error

Colorado4Wheeler wrote:
Good, I added support for it in 1.0.1 :D.

I saw that. 8)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests