-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error Message When Upgrading to HomeKit Bridge 0.20.0 #81
Comments
That reads like the SecuritySpy server was unreachable and that caused the server device to not populate fields. My SS plugin goes offline often. I would have to trap that part of the code. Nothing changed in that code block between updates so it’s not new code causing the issue.
|
I believe this error message has appeared in several previous upgrades as well, but I did not capture it. It may well be an erroneous error message because everything appears to work correctly after the upgrade. The correct username and password must be passed correctly from SecuritySpy to HomeKit Bridge or I assume the cameras would not be refreshed properly in the Home App. The only devices I have in my Security Cameras Bridge Server are my two SecuritySpy cameras. All of my numerous other devices are in my three other servers which all restarted correctly without any error messages. |
The reason it works is because when it hits that error it stops trying to write the config.json, so it’s likely that you are running off your original. Is it possible you have a 2nd SS server in Indigo?
|
I do have two SecuritySpy devices (cameras) in Indigo, but as far as I know there is only one SecuritySpy server. It would not be the first time that multiple processes showed up on my Mac, but I do not see anything in the Activity Monitor that shows two SS servers running. I do recall that when I first set up the HomeKit Bridge server for my cameras I encountered some problems. So I deleted the camera server and set up a new one with no problem. Could it be that there are some remnants of this earlier one still around that is causing the error? In any event this is a very minor anomaly since it only occurs when restarting the server and does not affect the use of your wonderful plugin. |
You were right that the config.json file for the camera server was not updated yesterday, whereas the other 3 were. Here is the last update from the config.json file: |
Are all of your cameras on the 'Motion Sensor Bridge' server? Try adding them to another server, just to see what happens. You can still leave them where they are but add duplicates on a new device and see if that also errors out. The flow of this SecuritySpy integration is this:
You are breaking at step 3 so that indicates that either the server device that your SS camera is referring to is no longer there or if it's there it doesn't have an IP address in its states. That's pretty much the only way you could get the message you got. |
If you cannot find the missing piece then run the following code in an action group script using the Indigo ID for the SS server and then again for one of the SS cameras that aren't working with the plugin so I can see if states are missing.
Be sure to edit the output to take out any usernames and passwords that are in there, but just replace them with "***" or something to let me know they actually HAD them. |
I notice that my Motion Sensor Bridge also has in its Persist Preferences folder two accessories for the two cameras that are not being used. My Camera Bridge also has in its Persist Preferences folder the two accessories for the two cameras that are currently being used. Perhaps this is causing the problem since the Motion Sensor Bridge does not have any camera information in its config.json file. |
All of my cameras are now in the Security Cameras Bridge Server and not in the Motion Sensors Bridge Server. I believe I originally had the cameras on my Motion Sensors Bridge Server, but deleted them because I wanted a separate server just for the cameras. I deleted the cameras in the Configuration Settings of the server. This may have left behind the extra files I noted previously in the server preferences. This is the result of running the action group script (I added both cameras to the script): Script Server Device ID 1418254634 |
I set up a new Test Server and added only the two SecuritySpy Cameras - but got the same error: Mar 22, 2018 at 7:24:49 PM HomeKit Bridge Error Exception in homekit.getStashRecordForObject line 884: ('key includedDevices not found in dict', u'Server Id: 1890280422', u'Server data: com.eps.indigoplugin.homekit-bridge : (dict)')
HomeKit Bridge Error Exception in homekit.getStashRecordForObject line 884: ('key includedDevices not found in dict', u'Server Id: 1890280422', u'Server data: com.eps.indigoplugin.homekit-bridge : (dict)') HomeKit Bridge Server 'Test Server' has changed ports or users, validating config HomeKit Bridge Error Unable to build server configuration for 'Test Server'. HomeKit Bridge Error Unable to build server configuration for 'Test Server'. HomeKit Bridge Error HomeKit server 'Test Server' could not be started, please check the service logs for more information, If you continue to have problems starting this server use the Advanced Plugin Actions menu option to rebuild the Homebridge folder. |
I don't know, you suddenly and without explanation are having one problem after another and I really am having trouble keeping up with it or coming up with ideas for why that may be happening. I cannot even being to diagnose why you are getting the includedDevice message, particularly if you added two security cameras, because the data for those security cameras is stored IN includedDevices, if that wasn't present you wouldn't even see them on the list. Not to mention the fact that there must be at least 5 safeguards to ensure includedDevices is in the props even if you don't have any devices. I would say if you get that message then run the following script so I can see how it's even possible that you don't have that field. Also let me know precisely when that message occurs, is it while you are in the UI or after? When you try to start the server or when you save the config?
As for the SecuritySpy issue, that output didn't have an IP address so try using this script instead:
|
Here are the results of the SecuritySpy script (actual usernames and passwords deleted):
|
I set up a new camera server. It initially had only a default lamp module because I did not add any devices. When saved it showed no errors and the server started OK. I then went back and added a single camera to the server device and deleted the default lamp module. When I saved this device from the dialog I got the following error: Mar 23, 2018 at 12:58:04 PM HomeKit Bridge Error Unable to build server configuration for 'New Camera Server'. HomeKit Bridge Error Unable to build server configuration for 'New Camera Server'. The server did start even with these errors and is running. The following is the script you asked me to run: Action Group HomeKit Bridge Test |
The new camera server does not show the camera in the Home App - only the new Bridge. The config.json file also does not have the camera - only the bridge. So even though the server is running there is no camera. |
I honestly wouldn’t expect it to show in the config.json if you are getting errors during the configuration creation process.
|
What is your Indigo forum ID?
|
My Indigo forum ID is GRWilde |
What version of SS are you running?
|
I see the problem clearly, I'm just wondering why it's not populated as mine is. You say that everything worked before and wrote the cameras and then suddenly stopped. The one thing that changed between it working and not was me getting the extra characteristics from the SS server and I see very clearly now that the field on your config is empty, if it wasn't you most certainly would not be getting errors. |
I mean to ask what version of SS and of the SS plugin - I wonder if that's the difference between yours and mine. I can fix it in code now that I see the problem but want to know why it's like that in the first place. |
I'm still interested in the version info but I've added some extra code to work around this issue in the next release. That release MAY be today if I can put the current development tasks in complications in a state that won't break the plugin since it's only 1/2 implemented right now. If not then hopefully by the end of the weekend. |
My version of SecuritySpy is 4.2.3 and my version of the plugin is 2.3.0 My previously set up cameras still work in the Home App (just not those in the new server) and the old camera server still has an old config.json file dated March 18th. |
Yea, it’s because the ‘xaddress’ is empty in your SS config. I’ll see if that’s a difference between versions - although you’re the only one reporting it so I suspect that it may be you are on a slightly different version than the rest of us are, but regardless it’s already patched for the next release.
|
* Added additional sanity check on SecuritySpy servers that if they don't have the xaddress populated to get the address from a different field ([Issue #81](#81)) * Added 'ProgramHeat' and 'ProgramCool' to conditions for sending temperature set commands to a thermostat ([Issue #79](#79)) * Fixed bug where if a thermostat was set to auto heat/cool that changing temperatures in HomeKit would time out in the plugin because the plugin didn't know what to set, it will now increase the heat if the target temp is warmer than the current temp and increase cooling if it is cooler * Fixed bug where read-only HomeKit services may not get updates if not specifically programmed (i.e., for DSC alarms) ([Issue #86](#86)) * [Issue #81](#81) resolved * [Issue #79](#79) resolved * [Issue #86](#86) resolved
Try the latest release, that should resolve your issue. Please let me know if it does not. |
Still getting an error:
Stopping plugin HomeKit Bridge (pid 1598)
HomeKit Bridge Warning
#####################################################################
# HOMEKIT BRIDGE RUNNING SERVER SHUTDOWN #
#####################################################################
# Now blind stopping all running servers, due to Indigo timeout #
# limits the plugin cannot wait for them to stop but will instead #
# shut them down blindly and let them refresh when the plugin #
# restarts #
#####################################################################
HomeKit Bridge Blind stopping 'Environmental Bridge'
HomeKit Bridge Blind stopping 'HomeKit Bridge'
HomeKit Bridge Blind stopping 'Motion Sensor Bridge'
HomeKit Bridge Blind stopping 'Security Cameras Bridge'
Stopped plugin HomeKit Bridge
Upgrading plugin HomeKit Bridge to newer version 0.20.1 (previous version moved to trash)
Loading plugin "HomeKit Bridge 0.20.1"
Starting plugin "HomeKit Bridge 0.20.1" (pid 44141)
Started plugin "HomeKit Bridge 0.20.1"
HomeKit Bridge Upgrading plugin from 0.20.0 to 0.20.1
HomeKit Bridge Upgrading Environmental Bridge for changes in this plugin release
HomeKit Bridge Upgrading HomeKit Bridge for changes in this plugin release
HomeKit Bridge Upgrading Motion Sensor Bridge for changes in this plugin release
HomeKit Bridge Upgrading Security Cameras Bridge for changes in this plugin release
HomeKit Bridge Upgrade success
HomeKit Bridge Attempting to start 'Environmental Bridge'
HomeKit Bridge Attempting to start 'HomeKit Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4607: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'Motion Sensor Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4607: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'Security Cameras Bridge'
HomeKit Bridge Warning Unable to set the value of ContactSensorState on Bay Alarm Event to false because that attribute requires int and it was given unicode
HomeKit Bridge HomeKit Bridge is loaded and ready to use
HomeKit Bridge Server 'Security Cameras Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Warning Unable to set the value of ContactSensorState on Garage Door Status to false because that attribute requires int and it was given unicode
HomeKit Bridge Server 'Motion Sensor Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'Environmental Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'HomeKit Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
… On Mar 28, 2018, at 2:17 PM, Colorado Four Wheeler ***@***.***> wrote:
Try the latest release, that should resolve your issue. Please let me know if it does not.
|
Ok, I know what I missed. I’ll have another update tomorrow.
… On Mar 28, 2018, at 6:31 PM, grwilde ***@***.***> wrote:
Still getting an error:
Stopping plugin HomeKit Bridge (pid 1598)
HomeKit Bridge Warning
#####################################################################
# HOMEKIT BRIDGE RUNNING SERVER SHUTDOWN #
#####################################################################
# Now blind stopping all running servers, due to Indigo timeout #
# limits the plugin cannot wait for them to stop but will instead #
# shut them down blindly and let them refresh when the plugin #
# restarts #
#####################################################################
HomeKit Bridge Blind stopping 'Environmental Bridge'
HomeKit Bridge Blind stopping 'HomeKit Bridge'
HomeKit Bridge Blind stopping 'Motion Sensor Bridge'
HomeKit Bridge Blind stopping 'Security Cameras Bridge'
Stopped plugin HomeKit Bridge
Upgrading plugin HomeKit Bridge to newer version 0.20.1 (previous version moved to trash)
Loading plugin "HomeKit Bridge 0.20.1"
Starting plugin "HomeKit Bridge 0.20.1" (pid 44141)
Started plugin "HomeKit Bridge 0.20.1"
HomeKit Bridge Upgrading plugin from 0.20.0 to 0.20.1
HomeKit Bridge Upgrading Environmental Bridge for changes in this plugin release
HomeKit Bridge Upgrading HomeKit Bridge for changes in this plugin release
HomeKit Bridge Upgrading Motion Sensor Bridge for changes in this plugin release
HomeKit Bridge Upgrading Security Cameras Bridge for changes in this plugin release
HomeKit Bridge Upgrade success
HomeKit Bridge Attempting to start 'Environmental Bridge'
HomeKit Bridge Attempting to start 'HomeKit Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4607: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'Motion Sensor Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4607: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'Security Cameras Bridge'
HomeKit Bridge Warning Unable to set the value of ContactSensorState on Bay Alarm Event to false because that attribute requires int and it was given unicode
HomeKit Bridge HomeKit Bridge is loaded and ready to use
HomeKit Bridge Server 'Security Cameras Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Warning Unable to set the value of ContactSensorState on Garage Door Status to false because that attribute requires int and it was given unicode
HomeKit Bridge Server 'Motion Sensor Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'Environmental Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'HomeKit Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
> On Mar 28, 2018, at 2:17 PM, Colorado Four Wheeler ***@***.***> wrote:
>
> Try the latest release, that should resolve your issue. Please let me know if it does not.
>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
* **NOTE** This release begins the process of rewriting the entire HomeKit integration, small chunks at a time, so it's possible that this can break things. I'm trying to thoroughly test changes to make sure the end result is the same, but you have been warned. * Added failsafe when saving the Homebridge configuration that if there are no Indigo devices being passed that the Homebridge-indigo2 platform will not be loaded, this in case you are using a "camera server" that has nothing else on it doesn't cause issues with Homebridge-Indigo2 trying to load zero accessories * Changed model:submodel device resolution to detect if either model or submodel is an empty attribute and not pass the ":" separator if that is the case * Completely rewrote the SecuritySpy URL construction routine to better support users who don't store the xpassword state ([Issue #81](#81)) * Moved model/firmware resolution out of the main plugin and into the new factory package * Code housekeeping and cleanup
Ok, I rewrote the entire authentication for SecuritySpy, let's see if this works. I'm doing this blindly because I don't have this issue on my end so hopefully this is the one that does the trick. |
Looks like we have success!!
Just for your info here is also the config for the cameras which was successfully updated:
{
"platforms": [
{
"platform": "Camera-ffmpeg",
"cameras": [
{
"videoConfig": {
"maxBitrate": 300,
"maxWidth": 1920,
"packetSize": 1316,
"stillImageSource": "-i http://username:password@localhost:8002/++image?cameraNum=2&width=1920&height=1080",
"source": "-re -i http://username:password@localhost:8002/++video?cameraNum=2&width=1920&height=1080",
"maxHeight": 1080,
"maxFPS": 10
},
"name": "Driveway Camera"
},
{
"videoConfig": {
"maxBitrate": 300,
"maxWidth": 640,
"packetSize": 1316,
"stillImageSource": "-i http://username:password@localhost:8002/++image?cameraNum=1&width=640&height=480",
"source": "-re -i http://username:password@localhost:8002/++video?cameraNum=1&width=640&height=480",
"maxHeight": 480,
"maxFPS": 26
},
"name": "Front Porch Camera"
}
]
}
],
"bridge": {
"username": "CC:22:3D:E3:CE:12",
"name": "Security Cameras Bridge",
"pin": "031-45-154",
"port": "51828"
},
"accessories": [],
"description": "HomeKit configuration generated by HomeKit Bridge on 2018-03-29 13:23:27.383000 for device Security Cameras Bridge"
}
**[MODERATOR NOTE]** Edited content for readability and removed all usernames and passwords that were included in the data dump.
|
Outstanding! |
Thanks for your great support. HomeKit Bridge is a much needed plugin for Indigo and I thank you for what I know is a lot of effort to develop it. Even at its current Beta state I find it to be very stable and reliable - more so than my native Ecobee HomeKit App.
Thanks again,
George Wilde
… On Mar 29, 2018, at 9:02 AM, Colorado Four Wheeler ***@***.***> wrote:
Ok, I rewrote the entire authentication for SecuritySpy, let's see if this works. I'm doing this blindly because I don't have this issue on my end so hopefully this is the one that does the trick.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#81 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHlJwhRicXAenZvT18ae9zGpEPOqmoydks5tjQWhgaJpZM4S2aIA>.
|
You’re welcome, I’m glad that it’s working well for you finally!
|
I am getting the following error message indicating that a camera server error has occurred when upgrading to HomeKit Bridge 0.20.0:
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4616: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4616: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
I am not sure of the significance of this message because the server does start OK and the cameras are displayed properly in the Home App.
The complete log follows:
Stopping plugin HomeKit Bridge (pid 56329)
HomeKit Bridge Warning
#####################################################################
HOMEKIT BRIDGE RUNNING SERVER SHUTDOWN
#####################################################################
Now blind stopping all running servers, due to Indigo timeout
limits the plugin cannot wait for them to stop but will instead
shut them down blindly and let them refresh when the plugin
restarts
#####################################################################
HomeKit Bridge Blind stopping 'Environmental Bridge'
HomeKit Bridge Blind stopping 'HomeKit Bridge'
HomeKit Bridge Blind stopping 'Motion Sensor Bridge'
HomeKit Bridge Blind stopping 'Security Cameras Bridge'
Stopped plugin HomeKit Bridge
Upgrading plugin HomeKit Bridge to newer version 0.20.0 (previous version moved to trash)
Loading plugin "HomeKit Bridge 0.20.0"
Starting plugin "HomeKit Bridge 0.20.0" (pid 96061)
Started plugin "HomeKit Bridge 0.20.0"
HomeKit Bridge Upgrading plugin from 0.19.9 to 0.20.0
HomeKit Bridge Upgrading Environmental Bridge for changes in this plugin release
HomeKit Bridge Upgrading HomeKit Bridge for changes in this plugin release
HomeKit Bridge Upgrading Motion Sensor Bridge for changes in this plugin release
HomeKit Bridge Upgrading Security Cameras Bridge for changes in this plugin release
HomeKit Bridge Upgrade success
HomeKit Bridge Attempting to start 'Environmental Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4616: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'HomeKit Bridge'
HomeKit Bridge Attempting to start 'Motion Sensor Bridge'
HomeKit Bridge Error Exception in plugin.buildServerConfigurationDict line 4616: Invalid URL u'http://:8002/++systemInfo': No host supplied
CODE: data = requests.get(ssSystem, auth=(ssServer.ownerProps["username"], ssServer.ownerProps["password"])).content
HomeKit Bridge Error Unable to build server configuration for 'Security Cameras Bridge'.
HomeKit Bridge Attempting to start 'Security Cameras Bridge'
HomeKit Bridge HomeKit Bridge is loaded and ready to use
HomeKit Bridge Server 'Security Cameras Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'Motion Sensor Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'Environmental Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
HomeKit Bridge Server 'HomeKit Bridge' has successfully started, you can use your HomeKit apps or Siri for this accessory
The text was updated successfully, but these errors were encountered: