HBB Integrated Plugin: Sonos ZonePlayer

Posted on
Tue Dec 19, 2017 3:43 pm
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

HBB Integrated Plugin: Sonos ZonePlayer

NOTICE
As of 1.0.7 this plugin will no longer be available. It requires a higher version of Node.js than HBB currently offers in a stable environment and it is not worth sacrificing that stability for the sake of one add-on. All routines will stay in place for a future implementation of this but for now please remove all Sonos ZP devices you have created in Indigo and save your HBB config to no longer reference them as the next release will NOT have these devices available any longer.

This thread is only to discuss any issues or suggestions you have with the new Sonos ZonePlayer integration for Homebridge Buddy.

Similar to the iTunes plugin, this gives you control over your Sonos device(s) via HomeKit. I do not have a Sonos myself so this is coding in the blind, but there is a device you can add to HBB to add this to your HBB setup and you should be able to add it as an accessory to HomeKit.

The Homebridge NPM package description can be found HERE

WARNING
This CAN NOT be stressed enough, but before you start experimenting with your Indigo system GET A FULL BACKUP! Every system is a little different, every instance of Indigo is a little different and all of us have different levels of "mission critical" that our home automation may be in so you need to be able to return to your pre-testing configuration in a pinch if it all goes bad! I will work with you extensively on these plugin tests but you should have a fallback in case I am unable to resolve your issue timely. USE AT YOUR OWN RISK ALWAYS. Click here to read up on how to back up Indigo.

Screen Shot 2017-12-19 at 2.39.57 PM.png
Sonos Device in HBB
Screen Shot 2017-12-19 at 2.39.57 PM.png (79.17 KiB) Viewed 816 times

Posted on
Wed Dec 20, 2017 9:32 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

Ok, not directly related to SONOS yet, but I just installed HBB v1.0.2 because I wanted to test the SONOS integration and now my Homebridge Indigo server will not start at all. The below log entry is all that shows and it is complaining about an illegal character? HBB v1.0.1 did not complain and I have not made any changes or additions of new devices. How can I track down where this legal character is? I already rebooted my server, but it did not solve the problem.

My setup:
    Mac mini 2.3 GHz Intel Core i7
    16 GB RAM
    macOS 10.12 Beta (16A312a)
    Indigo 7.1.1


Code: Select all
Dec 20, 2017, 11:08:53 AM
   Enabling plugin "EPS - Homebridge Buddy 1.0.2"
   Starting plugin "EPS - Homebridge Buddy 1.0.2" (pid 1579)
   EPS - Homebridge Buddy Debug    Refreshing plugin information
   EPS - Homebridge Buddy Error    Exception encountered with /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Network Devices.indigoPlugin (this error is NOT critical)
   EPS - Homebridge Buddy Error    Exception in plugcache.refresh line 557: LowLevelBadParameterError -- illegal character in XML tag name or value
                      CODE: self.pluginCache[plugInfo["id"]] = plugInfo


Code: Select all
Dec 20, 2017, 11:27:04 AM
   EPS - Homebridge Buddy         

#####################################################################
# EPS - Homebridge Buddy                                            #
#####################################################################
#                                                                   #
# Plugin Version      : 1.0.2                                       #
# Template Version    : 3.2.1                                       #
# Core Engine Version : 2.2.0                                       #
# Indigo Version      : 7.1.1                                       #
# Indigo API Version  : 2.0                                         #
#                                                                   #
=====================================================================
= CACHE                                                             =
=====================================================================
= Cache is empty                                                    =
=====================================================================
=====================================================================
= PLUGIN DEVICES                                                    =
=====================================================================
#                                                                   #
#####################################################################


Posted on
Wed Dec 20, 2017 9:34 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

Ok, so that is the result of another plugin's XML headers being bad - we read those in so we can hook into them. What have you installed or updated recently?

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 20, 2017 9:41 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

Oops, I didn't read the message, it's the Network Devices.indigoPlugin that caused this. I'm changing something in the code right now to allow the plugin to continue despite that message, I'll have that posted in a few minutes. Look for an update to 1.0.3 and then use that to have it get past that without stopping the startup process (hopefully).

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 20, 2017 10:25 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

1.0.3 is posted and addresses your issue specifically.

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 20, 2017 10:29 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

Installed the new 1.0.3 release but my Homebridge device will still not start. I am unable to enable it in the Indigo GUI.

Dec 20, 2017, 12:09:30 PM
Reloading plugin "EPS - Homebridge Buddy 1.0.3"
Stopping plugin "EPS - Homebridge Buddy 1.0.3" (pid 4830)
Stopped plugin "EPS - Homebridge Buddy 1.0.3"
Starting plugin "EPS - Homebridge Buddy 1.0.3" (pid 15738)
EPS - Homebridge Buddy Debug Refreshing plugin information
EPS - Homebridge Buddy Ingoring the Network Devices plugin because it generates errors when we access it
Started plugin "EPS - Homebridge Buddy 1.0.3"
EPS - Homebridge Buddy Automatically creating and configuring the first Homebridge server
EPS - Homebridge Buddy Error Exception in plugin.homebridgeDiscovery line 1512: NameNotUniqueError
CODE: props=props)



Dec 20, 2017, 12:10:32 PM
EPS - Homebridge Buddy

#####################################################################
# EPS - Homebridge Buddy #
#####################################################################
# #
# Plugin Version : 1.0.3 #
# Template Version : 3.2.1 #
# Core Engine Version : 2.2.1 #
# Indigo Version : 7.1.1 #
# Indigo API Version : 2.0 #
# #
=====================================================================
= CACHE =
=====================================================================
= Cache is empty =
=====================================================================
=====================================================================
= PLUGIN DEVICES =
=====================================================================
# #
#####################################################################
Attachments
homebridge_device.jpeg
homebridge_device.jpeg (51.75 KiB) Viewed 748 times

Posted on
Wed Dec 20, 2017 10:36 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

I decided to revert back to v 1.0.1 but now I get the same error and the home bridge will not start. Not sure if this could be the issue, but every time I update the plug-in, it wants to create a new default Homebridge for Indigo device, but I already have one. I could try deleting it, but then I will lose all my configuration, but I can make a make first. Should I try deleting the default homebridge device in Indigo?


Code: Select all
[code]Dec 20, 2017, 12:27:19 PM
   Reloading plugin "EPS - Homebridge Buddy 1.0.1"
   Stopping plugin "EPS - Homebridge Buddy 1.0.1" (pid 81239)
   Stopped plugin "EPS - Homebridge Buddy 1.0.1"
   Starting plugin "EPS - Homebridge Buddy 1.0.1" (pid 82978)
   EPS - Homebridge Buddy Debug    Refreshing plugin information
   EPS - Homebridge Buddy Error    Exception encountered with /Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Network Devices.indigoPlugin (this error is NOT critical)
   EPS - Homebridge Buddy Error    Exception in plugcache.refresh line 557: LowLevelBadParameterError -- illegal character in XML tag name or value
                      CODE: self.pluginCache[plugInfo["id"]] = plugInfo

   Started plugin "EPS - Homebridge Buddy 1.0.1"
   EPS - Homebridge Buddy          Automatically creating and configuring the first Homebridge server
   EPS - Homebridge Buddy Error    Exception in plugin.homebridgeDiscovery line 1512: NameNotUniqueError
                      CODE: props=props)[/code]

Posted on
Wed Dec 20, 2017 10:39 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

Did you delete your HBB server or did you install HB-Indigo? That message is saying the name for the automatically created server is not unique. Rename your other server to something other than "Homebridge for Indigo". The fact that this fired up in the first place implies that there were no Homebridge-Server devices in your setup. By the way, if you need to return to 1.01 it's still the one on the Plugin Store.

Reverting back to 1.0.1 is fine but you will have to disable Network Devices when you first start HBB, it's causing that 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
Wed Dec 20, 2017 10:44 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

I never installed any other version of HB yet, except the one that is installed with HBB and I do not see a second Homebrdige for Indigo device?

Posted on
Wed Dec 20, 2017 10:51 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

If you don't see a second then you may have removed it and that's why it's asking to recreate one for you. That message is only supposed to pop up when it does a comprehensive search of your Indigo database and cannot find any servers - it's the "plug and play" part of the plugin that tries to get you up-and-running right away with minimal effort. Do you have a backup of your database that you can restore to see if you removed the 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
Wed Dec 20, 2017 10:56 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

Reverting back to 1.0.1 is fine but you will have to disable Network Devices when you first start HBB, it's causing that error.


I disabled the Network Devcies plug-in, but my bridge is still not starting, I am unable to enable communication? My Indigo Homebridge device list as Model "Homebridge SONOS ZonePlayer", but I am running v 1.0.1, which does not have this feature?

Code: Select all
Dec 20, 2017 at 12:49:16
   Disabling plugin "EPS - Homebridge Buddy 1.0.1"
   Stopping plugin "EPS - Homebridge Buddy 1.0.1" (pid 63914)
   Stopped plugin "EPS - Homebridge Buddy 1.0.1"
   Enabling plugin "EPS - Homebridge Buddy 1.0.1"
   Starting plugin "EPS - Homebridge Buddy 1.0.1" (pid 66747)
   Started plugin "EPS - Homebridge Buddy 1.0.1"
   Trigger                         Update server memory variable
   Ignored                         device "Homebridge for Indigo" action request (communication is disabled)
   Ignored                         device "Homebridge for Indigo" action request (communication is disabled)
   Ignored                         device "Homebridge for Indigo" action request (communication is disabled)
Attachments
Screen Shot 2017-12-20 at 12.52.40.jpeg
Screen Shot 2017-12-20 at 12.52.40.jpeg (80.34 KiB) Viewed 725 times

Posted on
Wed Dec 20, 2017 10:59 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

Change that device type to be a server, it should still have all it's settings.

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 20, 2017 11:03 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

Colorado4Wheeler wrote:
Change that device type to be a server, it should still have all it's settings.


Unfortunately, there is no server nor any other Model type, except the Sonos ZonePlayer? I am going to instal HBB v 1.0.3 again, since I disabled Network Devices now and never tested this under v 1.0.3.

Posted on
Wed Dec 20, 2017 11:09 am
Colorado4Wheeler offline
User avatar
Posts: 2723
Joined: Jul 20, 2009
Location: Colorado

Re: HBB Integrated Plugin: Sonos ZonePlayer

mlooss wrote:
Unfortunately, there is no server nor any other Model type, except the Sonos ZonePlayer


That's odd, I cannot think of any reason why that would be the case. There should be a number of devices under Homebridge.

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 20, 2017 11:36 am
mlooss offline
Posts: 181
Joined: Sep 05, 2013

Re: HBB Integrated Plugin: Sonos ZonePlayer

We are making progress, after installing HBB v1.0.3 again, I got several model types and was able to select "Homebridge Indigo Server" and my device now has communication enabled in Indigo. But something is still not right, my Apple Home app shows all Indigo devices with no response and it has been doing so for the last 10 minutes or more? May I need to remove the Indigo HB bridge from my Home App again?

I believe that the upgrade to v1.0.3 and its attempt to create a default Homebridge device, when one already existed may have caused this issue. Maybe you can add some additional logic to check for an existing default device first, rather than attempt creation of one immediately?

Who is online

Users browsing this forum: No registered users and 3 guests