Jump to content
chef

Vera Home Automation Plugin (Emby Vera)

Recommended Posts

groundglass

Hello,

I'm newly testing this plugin. I have Emby server running on my Open Media Vault NAS, and a Vera 3 running UI5. Both are on the same network.

 

After installing the plugin I am presented with "No Device Detected" on the setup page. I don't see any place to put the vera IP address or other configurations. I'm assuming there is something obvious I'm doing wrong but can't figure it out.

 

Thank you for any advice.

Share this post


Link to post
Share on other sites
chef

@@groundglass I will re enable UI5. It has a different api then Ui7.

 

You'll have to give me sometime to do it though.

Edited by chef

Share this post


Link to post
Share on other sites
jasonwilliams

Hello Chef,

 

Love the plugin!  I have everything working perfectly with Movies (triggering various scenes on Play/Pause etc...).  I have exactly the same setup for TV, but the un-pause event isn't triggering properly - it seems to be calling the same as "Pause".

 

I have version 1.0.0.22

 

Any advice is appreciated.

 

Jason

  • Like 1

Share this post


Link to post
Share on other sites
chef

Hello Chef,

 

Love the plugin! I have everything working perfectly with Movies (triggering various scenes on Play/Pause etc...). I have exactly the same setup for TV, but the un-pause event isn't triggering properly - it seems to be calling the same as "Pause".

 

I have version 1.0.0.22

 

Any advice is appreciated.

 

Jason

Hey Jason,

 

Thanks for letting me know. The pause and unpause events have always been a bit finicky because they are built on monitoring playback of a media item in the PlaybackProgress event.

 

It saves the last position of the media item and calculates if the item has been paused if it is equal the next moment the event fires.

 

To be honest the logic in the event needs to be looked at again. I haven't been totally happy with how it was working.

 

Gives me something to do! I'll check it out and do an update. See if I can make it more reliable.

  • Like 1

Share this post


Link to post
Share on other sites
jasonwilliams

Thanks Chef!

Share this post


Link to post
Share on other sites
chef

@@jasonwilliams

 

Hey great job finding that bug in the code. I looked through and found where it was. LOL. It was one line of code calling "pause" on episodes" when it should have called "unpause".

 

Thank you Jason. I think the bug is squashed.

 

Let me know if there are still issues with the latest update of the plugin.

  • Like 1

Share this post


Link to post
Share on other sites
gmontem

I am using Emby server version 4.1.1.0 and have version 1.0.0.24 of the Vera plugin installed.

The plugin detects my Vera device but no Emby devices are available for me to choose.

The + button does nothing.

 

 

5ceb52be7f244_EmbyVeraPluginIssue.png

Share this post


Link to post
Share on other sites
chef

Cool. thank you. I fix it immediately!

Share this post


Link to post
Share on other sites
chef

I am using Emby server version 4.1.1.0 and have version 1.0.0.24 of the Vera plugin installed.

The plugin detects my Vera device but no Emby devices are available for me to choose.

The + button does nothing.

 

 

5ceb52be7f244_EmbyVeraPluginIssue.png

I can not reproduce this at all.

 

@@PrincessClevage can you help here, by testing the new version of the Vera Plugin?

 

It is working for me without issue.

 

@@gmontem

Can you please try clearing Browser Cache (history/data) and then reopening the Emby Dashboard, and see what shows up in the Plugin Configuration Device List.

Thank you.

Finally, when selecting the "Devices" tab in Emby Dashboard, is the list populated with devices?

Edited by chef

Share this post


Link to post
Share on other sites
gmontem

I cleared my history and cache, and still see the same problem.

 

What is the Plugin Configuration Device List?

 

From the Dashboard, I see "Vera Emby Plugin 1.1" as an active device.

I have also tried uninstalling the plugin and re-installing it.

 

Does the plugin leave any configuration files in the Emby server that I ought to delete manually in case the plugin uninstall wasn't a clean uninstall?

Thanks.

 

 

I can  not reproduce this at all.

 

@PrincessCleavage can you help here, by testing the new version of the Vera Plugin?

 

It is working for me without issue.

 

@@gmontem

Can you please try clearing Browser Cache (history/data) and then reopening the Emby Dashboard, and see what shows up in the Plugin Configuration Device List.

Thank you.

Finally, when selecting the "Devices" tab in Emby Dashboard, is the list populated with devices?

Share this post


Link to post
Share on other sites
chef

Sorry lets start again, because I wasn't very clear in my question.

 

 

When you click on "Devices" in the Dashboard

 

5cebc97384e96_exampleDevices.png

 

is it populated like the image above?

 

 

When the Vera plugin populates the "Emby Device" drop down list, it makes an API call to Emby, and grabs all of the names from this list.

 

I just want to narrow down some possible problems.

 

Thanks for your patients :)

Edited by chef

Share this post


Link to post
Share on other sites
gmontem

Yes, I do see devices populating the Devices page.

 

Thanks.  :)

 

5cec182920339_EmbyDevicelist.png

 

 

 

 

Sorry lets start again, because I wasn't very clear in my question.


When you click on "Devices" in the Dashboard

5cebc97384e96_exampleDevices.png

is it populated like the image above?


When the Vera plugin populates the "Emby Device" drop down list, it makes an API call to Emby, and grabs all of the names from this list.

I just want to narrow down some possible problems.

Thanks for your patients :)

 

Share this post


Link to post
Share on other sites
chef

Okay, FYI: That VeraSecure device is the Emby plugin for Vera. It creates a device when it connects to the Emby server.

Looks fine.

 

Are you in windows? Or Linux?

 

EDIT: I can deduct you are on windows.

 

Can you open the Emby server plugin folder?

 

It is found under:

 

AppData/Roaming/Emby-Server/program data/plugins

 

Once there open the folder called "configuration".

 

Inside there is an xml file called "Vera Home Automation.xml".

 

Open the xml file and you will see a node called "EmbyReadyNetworkDevices"

 

I need to know if it is populated with information for you system.

 

 

If that seems like too much, note that I am currently reworking the device request code for the plugin

And should have something working really soon.

Edited by chef

Share this post


Link to post
Share on other sites
gmontem

My XML file doesn't have spaces in the names. It's "VeraHomeAutomation.xml". Here are the contents (empty parent nodes).

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <UserVeraIPOverride>false</UserVeraIPOverride>
  <DeviceConfiguration />
  <SavedDeviceProfiles />
  <InternalIp />
  <SerialNumber />
  <Model />
  <Scenes />
</PluginConfiguration>

I hope this doesn't matter but on my setup, I obtained this XML file from this directory:

AppData\Roaming\MediaBrowser-Server\plugins\configurations

I found no Emby-Server directory. I think the Emby server installer reused my old MediaBrowser-Server directory when I upgraded it.

 

 

Thanks.

 

 

 

Okay, FYI: That VeraSecure device is the Emby plugin for Vera. It creates a device when it connects to the Emby server.
Looks fine.

Are you in windows? Or Linux?

EDIT: I can deduct you are on windows.

Can you open the Emby server plugin folder?

It is found under:

AppData/Roaming/Emby-Server/program data/plugins

Once there open the folder called "configuration".

Inside there is an xml file called "Vera Home Automation.xml".

Open the xml file and you will see a node called "EmbyReadyNetworkDevices"

I need to know if it is populated with information for you system.


If that seems like too much, note that I am currently reworking the device request code for the plugin
And should have something working really soon.

 

  • Like 1

Share this post


Link to post
Share on other sites
chef

Okay, there is certainly an issue with that xml structure. It's missing a lot if information. I realize you may have removed some for the sake of posting.

 

Would you mind, cutting the xml out of the plugins/configuration folder and pasting it somewhere that you could find later if needs be, and restarting the server?

 

It should generate a new xml which may be a fixed version.

Share this post


Link to post
Share on other sites
gmontem

Here is the contents of the XML file. It looks the same as last time.

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <UserVeraIPOverride>false</UserVeraIPOverride>
  <DeviceConfiguration />
  <SavedDeviceProfiles />
  <InternalIp />
  <SerialNumber />
  <Model />
  <Scenes />
</PluginConfiguration>

This file was generated after I did the following:

  1. Shutdown the Emby server.
  2. Delete the 'plugins/configuration/VeraHomeAutomation.xml' file.
  3. Restart the Emby server.
  4. Wait until the Vera Emby plugin appeared in the active device list.

 

Also, my VeraSecure FW is 1.7.4454.

 

Do I need to enable the other two security settings below?

 

5cec2f456858a_VeraSecuritySettings.png

 

 

Thanks.  :)

 

 

Okay, there is certainly an issue with that xml structure. It's missing a lot if information. I realize you may have removed some for the sake of posting.

Would you mind, cutting the xml out of the plugins/configuration folder and pasting it somewhere that you could find later if needs be, and restarting the server?

It should generate a new xml which may be a fixed version.

 

Share this post


Link to post
Share on other sites
chef

Here is the contents of the XML file. It looks the same as last time.

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <UserVeraIPOverride>false</UserVeraIPOverride>
  <DeviceConfiguration />
  <SavedDeviceProfiles />
  <InternalIp />
  <SerialNumber />
  <Model />
  <Scenes />
</PluginConfiguration>
 
This file was generated after I did the following:
  • Shutdown the Emby server.
  • Delete the 'plugins/configuration/VeraHomeAutomation.xml' file.
  • Restart the Emby server.
  • Wait until the Vera Emby plugin appeared in the active device list.

Also, my VeraSecure FW is 1.7.4454.

 

Do I need to enable the other two security settings below?

 

5cec2f456858a_VeraSecuritySettings.png

 

 

Thanks. :)

Okay, now when you open the plugin configuration page, is you Vera recognized?

 

 

 

 

Still there is a problem with getting your emby devices...

 

Okay, I need to take a look.

Share this post


Link to post
Share on other sites
gmontem

From the Home Automation tab, I can see the Vera is recognized. It is showing the internal IP address and the correct image of the Vera.

 

The Emby Devices list is empty.

 

Okay, now when you open the plugin configuration page, is you Vera recognized?




Still there is a problem with getting your emby devices...

Okay, I need to take a look.

  • Like 1

Share this post


Link to post
Share on other sites
chef

Holy mackerel! I recoded the entire device acquisition.

 

That took a while. @@gmontem In a second I'm gonna post the dll here on this thread. Will you install it in your plugin folder and test it for me before I push an update?

Edited by chef
  • Like 1

Share this post


Link to post
Share on other sites
gmontem

Hi chef, I would be more than happy to test it for you.

Thanks. :)

 

Holy mackerel! I recoded the entire device acquisition.

That took a while. @@gmontem In a second I'm gonna post the dll here on this thread. Will you install it in your plugin folder and test it for me before I push an update?

 

  • Like 1

Share this post


Link to post
Share on other sites
chef

Thank you

 

Here is the Zipped up plugin DLL

 

VeraHomeAutomation.zip

 

If this doesn't populate the device list, then there may be a big issue.

 

This version uses the javascript to access the API and request all the device names directly. 

 

The plugin use to build a list in C# and then hand it over through the plugin configuration to the web page.

 

Meh... this is how it should have been written in the first place.

 

Hope this works.

Share this post


Link to post
Share on other sites
gmontem

Tried the test plugin DLL and couldn't get it to work. The XML file contents looked identical to the one written from the DLL available through the catalog.

 

Steps I took:

  1. Shut down the Emby server
  2. Deleted the 'plugins\configurations\VeraHomeAutomation.xml' file
  3. Replaced the 'plugins\VeraHomeAutomation.dll' with the test DLL.
  4. Restarted the Emby server

One thing that just occurred to me is maybe I was not supposed to install the Emby interface app that was available through the Vera web interface. Any ideas?

 

Thanks

 

Thank you

 

Here is the Zipped up plugin DLL

 

attachicon.gifVeraHomeAutomation.zip

 

If this doesn't populate the device list, then there may be a big issue.

 

This version uses the javascript to access the API and request all the device names directly. 

 

The plugin use to build a list in C# and then hand it over through the plugin configuration to the web page.

 

Meh... this is how it should have been written in the first place.

 

Hope this works.

Share this post


Link to post
Share on other sites
chef

Yeah, the xml for then plugin changed, so that dll should have created a whole new xml which would look almost nothing like the old one.

Edited by chef

Share this post


Link to post
Share on other sites
chef

@@jasonwilliams

 

You wouldnt mind weighing in here and tell us about your experiences with the latest releases of this plugin. Does the Devices list populates for you?

Share this post


Link to post
Share on other sites
chef

Tried the test plugin DLL and couldn't get it to work. The XML file contents looked identical to the one written from the DLL available through the catalog.

 

Steps I took:

  • Shut down the Emby server
  • Deleted the 'plugins\configurations\VeraHomeAutomation.xml' file
  • Replaced the 'plugins\VeraHomeAutomation.dll' with the test DLL.
  • Restarted the Emby server
One thing that just occurred to me is maybe I was not supposed to install the Emby interface app that was available through the Vera web interface. Any ideas?

 

Thanks

Having that interface app from Vera is okay. I'm using it too and it causes no issues. There is something else happening here.

 

Can you PM me some log files of your server loading?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...