Switching to new plugin issues

Posted on
Wed Dec 21, 2016 4:09 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Switching to new plugin issues

So decided to take the plunge and move across to the new integrated option, unfortunately having some issues:

I removed the existing homebridge as per the instructions. I disabled plugin, removed the prefs file, deleted the home from my iCloud account, renamed the original config.json from ~/.homebridge to allow for a completely clean break.

First of all on startup get:

Reloading plugin "EPS - Homebridge Buddy 0.14"
Stopping plugin "EPS - Homebridge Buddy 0.14" (pid 67222)
Stopped plugin "EPS - Homebridge Buddy 0.14"
Starting plugin "EPS - Homebridge Buddy 0.14" (pid 67848)
EPS - Homebridge Buddy Debug Refreshing plugin information
Started plugin "EPS - Homebridge Buddy 0.14"
EPS - Homebridge Buddy Custom installation of Homebridge found, adding a custom server to Indigo
EPS - Homebridge Buddy Error Exception in plugin.homebridgeDiscovery line 1389: local variable 'json_data' referenced before assignment
CODE: props["hbuser"] = unicode(json_data['bridge']['username'])


EPS - Homebridge Buddy Debug Adding Garage - Homebridge Cam Feed1 to cache
EPS - Homebridge Buddy Debug Adding Homebridge - Front Door Camera to cache
EPS - Homebridge Buddy Debug Adding Outdoors - Homebridge Cam Feed to cache
EPS - Homebridge Buddy Starting the Homebridge server 'Server - Homebridge 1', do not try to use Siri until you get a message that the server has started
EPS - Homebridge Buddy Debug Adding Server - Homebridge 1 to cache
EPS - Homebridge Buddy Debug Automatically adding watched device 'Bathroom - Light' to cache as a watched item
EPS - Homebridge Buddy EPS - Homebridge Buddy is loaded and ready to use


And after that trying to add it to the new home i get an error "Operation timed out."

Computer says no.

Posted on
Wed Dec 21, 2016 4:35 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

Dur,

Looks like that was an indention typo, it shouldn't be trying to read your old json file if it's not there. The easy fix is to rename or remove the ~/.homebridge to something else, that's the trigger. I've corrected the problem for the next maintenance release. Thanks for reporting it.

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 Dec 21, 2016 6:53 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Switching to new plugin issues

Getting further now, i can add the built in server to home app but no accessories come through (2 defined as a test run). I get a message saying i have to add them using the manufacturers app.

Also tried setting up a custom one but just getting these two errors when trying to start it:

EPS - Homebridge Buddy Error Exception in plugin.homebridgeSaveConfig line 1610: local variable 'json_current' referenced before assignment
CODE: for pcurrent in json_current["platforms"]:


22 Dec 2016, 00:37:16
EPS - Homebridge Buddy Debug Validating action parameters on device
EPS - Homebridge Buddy Error Exception in plugin.onAfter_validateDeviceConfigUi line 876: 'key view not found in dict'
CODE: if valuesDict["view"] != "server":

EPS - Homebridge Buddy Starting the Homebridge server 'new device', do not try to use Siri until you get a message that the server has started
EPS - Homebridge Buddy sent "new device" on
EPS - Homebridge Buddy Warning The Homebridge server 'new device' has stopped
EPS - Homebridge Buddy Starting the Homebridge server 'new device', do not try to use Siri until you get a message that the server has started
EPS - Homebridge Buddy sent "new device" on
EPS - Homebridge Buddy Warning The Homebridge server 'new device' has stopped

Any ideas?

Computer says no.

Posted on
Wed Dec 21, 2016 7:27 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

durosity wrote:
EPS - Homebridge Buddy Error Exception in plugin.homebridgeSaveConfig line 1610: local variable 'json_current' referenced before assignment
CODE: for pcurrent in json_current["platforms"]:


Bug, squashed.

durosity wrote:
EPS - Homebridge Buddy Error Exception in plugin.onAfter_validateDeviceConfigUi line 876: 'key view not found in dict'


Another bug, I just squashed it.


I just put 0.15 up to fix these two bugs.

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 Dec 21, 2016 7:31 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Switching to new plugin issues

Cool I'll try it out in the mornin'!

Computer says no.

Posted on
Wed Dec 21, 2016 7:42 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Switching to new plugin issues

Curiosity got me. Tried .15, errors seem to be gone but still no accessories coming through on the Bridge. Left everything as default so it should be adding 99 items but nothing appears. Also tried changing to just 2 but again nothing comes up.


Sent from my iPad using Tapatalk

Computer says no.

Posted on
Wed Dec 21, 2016 7:49 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Switching to new plugin issues

EPS - Homebridge Buddy

#####################################################################
# EPS - Homebridge Buddy #
#####################################################################
# #
# Plugin Version : 0.15 #
# Template Version : 3.2.1 #
# Core Engine Version : 2.9 #
# Indigo Version : 7.0.2 #
# Indigo API Version : 2.0 #
# #
=====================================================================
= CACHE =
=====================================================================
= Cache Summary =
= =
= Items: 2 =
= =
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cache Details +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
- Devices -
---------------------------------------------------------------------
+ Type: Device +
+ Name: Homebridge for Indigo +
+ ID: 1802739834 +
+ Address: SERVER @ Indigo Server +
+ Device Type: Homebridge-Server +
+ Plugin: com.eps.indigoplugin.homebridge +
+ Watching: +
+ ID: 1747818794 +
+ Attributes: +
+ name +
+ +
+ +
+ Type: Device +
+ Name: Bathroom - Extractor Fan +
+ ID: 1747818794 +
+ Address: 29 +
+ Device Type: zwRelayType +
+ Plugin: com.perceptiveautomation.indigoplugin.zwave +
+ Watched By: +
+ ID: 1802739834 +
+ Attributes: +
+ name +
+ +
+ +
---------------------------------------------------------------------
- Variables -
---------------------------------------------------------------------
---------------------------------------------------------------------
- Action Groups -
---------------------------------------------------------------------
---------------------------------------------------------------------
- Watched Devices -
---------------------------------------------------------------------
---------------------------------------------------------------------
- 'Bathroom - Extractor Fan' (1747818794) -
---------------------------------------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! States !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! onOffState = False !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Attributes !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! address = 29 !
! batteryLevel = None !
! buttonGroupCount = 0 !
! configured = True !
! description = !
! deviceTypeId = zwRelayType !
! displayStateId = onOffState !
! displayStateImageSel = PowerOff !
! displayStateValRaw = False !
! displayStateValUi = off !
! enabled = True !
! energyAccumBaseTime = None !
! energyAccumTimeDelta = None !
! energyAccumTotal = None !
! energyCurLevel = None !
! errorState = !
! folderId = 1473900240 !
! id = 1747818794 !
! lastChanged = 2016-12-21 16:36:42 !
! lastSuccessfulComm = 2016-12-21 16:36:42 !
! ledStates = [] !
! model = Double Relay Switch (FGS221) !
! name = Bathroom - Extractor Fan !
! onState = False !
! pluginId = com.perceptiveautomation.indigoplugin.zwave !
! protocol = ZWave !
! remoteDisplay = True !
! subModel = Switch 2 !
! supportsAllLightsOnOff = False !
! supportsAllOff = False !
! supportsStatusRequest = True !
! version = None !
=====================================================================
=====================================================================
= PLUGIN DEVICES =
=====================================================================
*********************************************************************
* 'Homebridge for Indigo' (1802739834) *
*********************************************************************
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Attributes +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ address = SERVER @ Indigo Server +
+ batteryLevel = None +
+ buttonGroupCount = 0 +
+ configured = True +
+ description = Automatically created by Homebridge Buddy as first Homebridge server +
+ deviceTypeId = Homebridge-Server +
+ displayStateId = onOffState +
+ displayStateImageSel = PowerOn +
+ displayStateValRaw = True +
+ displayStateValUi = on +
+ enabled = True +
+ energyAccumBaseTime = None +
+ energyAccumTimeDelta = None +
+ energyAccumTotal = None +
+ energyCurLevel = None +
+ errorState = +
+ folderId = 0 +
+ id = 1802739834 +
+ lastChanged = 2016-12-22 01:45:27 +
+ lastSuccessfulComm = 2016-12-22 01:45:27 +
+ ledStates = [] +
+ model = Homebridge Indigo Server +
+ name = Homebridge for Indigo +
+ onState = True +
+ pluginId = com.eps.indigoplugin.homebridge +
+ protocol = Plugin +
+ remoteDisplay = True +
+ subModel = +
+ supportsAllLightsOnOff = False +
+ supportsAllOff = False +
+ supportsStatusRequest = True +
+ version = None +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Configuration +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ accessory = +
+ actexclude = actexclude : (list)
Item : -none- (string) +
+ actinclude = actinclude : (list)
Item : -none- (string) +
+ address = SERVER @ Indigo Server +
+ autoStartStop = True +
+ auto_hbuser = False +
+ celsius = False +
+ computerip = 192.168.1.1 +
+ countWrappedItems = True +
+ devexclude = devexclude : (list)
Item : -none- (string) +
+ devinclude = devinclude : (list)
Item : 1747818794 (string) +
+ hbpin = 031-45-154 +
+ hbport = 51826 +
+ hbuser = CC:22:3D:E3:CE:30 +
+ hideWrappedItems = True +
+ indigoServer = True +
+ invertonoff = invertonoff : (list)
Item : -none- (string) +
+ itemcount = 1 +
+ name = Indigo +
+ password = password +
+ password2 = password +
+ show_hbuser = False +
+ totalcount = 1 +
+ treatasdoor = treatasdoor : (list)
Item : -none- (string) +
+ treatasdrapes = treatasdrapes : (list)
Item : -none- (string) +
+ treatasgarage = treatasgarage : (list)
Item : -none- (string) +
+ treataslock = treataslock : (list)
Item : -none- (string) +
+ treatasswitch = treatasswitch : (list)
Item : -none- (string) +
+ treataswindows = treataswindows : (list)
Item : -none- (string) +
+ username = Administrator +
+ view = server +
+ wrappercount = 0 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ States +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ lastHealthCheck = 2016-12-22 01:45:27 +
+ onOffState = True +
+ restartPending = False +
+ restartTime = +
+ statedisplay = +
# #
#####################################################################

Computer says no.

Posted on
Wed Dec 21, 2016 9:15 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

I'm guessing you need to change the user names on HB because HomeKit cached your old installs. If you do that I'm betting that you'll see them.

I can see your server is using the default username, probably the same as your manual install before since you removed it before installing RC6. Go into the config and change one character to a valid hex value (0-8 A-F) and it'll probably show up because HomeKit will now see it as a new server.

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
Thu Dec 22, 2016 3:24 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Switching to new plugin issues

Aha, now this is interesting.. tried to change the ID, But as soon as I save the changes and go back in it reverts to its original state. In addition to this two other possibly related issues..

1 - in the log it states it's saving the changes and don't attempt to use Siri until I get a message to say it's ready, but this message never appears, I have to reload the plugin.

2 a in home.app it just shows the device as new device 1 rather than the devices name of Server - Homebridge 1. Is that something that could be throwing it out, or just a red herring?


Sent from my iPad using Tapatalk

Computer says no.

Posted on
Thu Dec 22, 2016 9:46 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

durosity wrote:
in the log it states it's saving the changes and don't attempt to use Siri until I get a message to say it's ready, but this message never appears, I have to reload the plugin.


I got that the first time I changed my configuration on a built in server but it stopped happening after that first time, now it works every time. It may just be a missing parameter that doesn't get set until that first save and something I'll have to investigate further.

durosity wrote:
in home.app it just shows the device as new device 1 rather than the devices name of Server - Homebridge 1. Is that something that could be throwing it out, or just a red herring?


I think you have another server in there somewhere because if it's called "Server - Homebridge 1" but HomeKit shows "new device 1" then you have, at some point, saved a "new device 1" server and polled HomeKit at some point where it loaded that name and it hasn't forgotten it yet. HomeKit is really persnickety about this stuff, that's why changing the user name is needed when you create new servers, that old user name gets stuck in HomeKit and then it just never looks again. Really strange stuff.

In the meantime I've put another version up that has new menu options to show the log file and config file for your built-in device, you can use this to see if things are indeed saving or if your built in server is bombing out on something. I would try changing the user name yet again, because now that old server name is stuck in HomeKit. I'm going to work on a more automated way to resolve that kind of thing, but in the meantime you will have to change it manually.

Also, there was a discussion early in the release about turning off automatic restarts, I don't know if you were part of that discussion but you can check the plugin config to see if auto restarts were turned off, maybe that's why you had to manually save and restart.

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
Thu Dec 22, 2016 11:21 am
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: Switching to new plugin issues

Just something I wanted to throw in here: I was initially confused that installing the new plugin created default Indigo Server and Customer Server devices. (Maybe this was part of the migration?). I didn't expect that, and it took a while to find.

Posted on
Thu Dec 22, 2016 11:25 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

It was in the release notes :lol:

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
Thu Dec 22, 2016 12:12 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

I just put up version 17 that fixes an issue that would NOT save the HB user name if you changed it, instead it would regenerate it to one of the stock names. That's why changing the name didn't work for you.

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
Thu Dec 22, 2016 4:02 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Switching to new plugin issues

Ok that seems to be working :D

Also auto restart is working, so I'm gonna guess you're right about it being an initial setup blip!

Also did I read somewhere you still need to have the standard homebridge installed for things like the camera plugin?

Computer says no.

Posted on
Thu Dec 22, 2016 4:13 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Switching to new plugin issues

durosity wrote:
Also did I read somewhere you still need to have the standard homebridge installed for things like the camera plugin?


Everything other than Indigo at this point. That's going to change as I start working on a new version that will incorporate the best of the best but for now that's how it works. Also, changes you make in the config will stick - except for the camera changes since there is a device for it.

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

Who is online

Users browsing this forum: No registered users and 1 guest

cron