Jump to content


Photo

Vera Zwave Controller: Add More Than 1 Emby Device

plugins vera zwave

  • Please log in to reply
27 replies to this topic

#1 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 21 September 2019 - 06:44 PM

Hello @chef, I am loving the Vera Zwave Controller plugin, but it will not keep the configuration for more than 1 device. Is this by design? When I add a config for a second device  and leave the Settings and then come back, only the most recent device is shown and automation for the previous device no longer works. I have both the Emby app and Kodi on my NVIDIA Shield TV and need automation for both devices since it is use in the theater room where Kodi with CinemaVision is used for movie nights and Emby is used for Live TV and casual viewing. Thanks for your help!



#2 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 21 September 2019 - 06:55 PM

Okay, I'll look into it immediately. Thank you for the heads up.

#3 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 21 September 2019 - 07:13 PM

After trying a bunch of different things with the plugin:

 

- adding devices

- taking them away

- adding scenes

-removing them

 

I can't seem to replicate this.

 

 

Can you explain to me again where the plugin breaks?

 

I think you mean that the UI doesn't show the second device you add, I just can;t seem to replicate it.

 

 



#4 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 22 September 2019 - 11:38 AM

Please see the next post....image troubles


Edited by otispresley, 22 September 2019 - 11:46 AM.


#5 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 22 September 2019 - 11:45 AM

Just to reset, I uninstalled the plugin, restarted the server, installed the plugin, and restarted the server. It still has save files though because it still had my previous config.

 

I start with one device as seen below:

5d87969dec648_ss1.jpg

 

I add and configure another device and it looks good.

5d8797056a87d_ss2.jpg

 

I navigate away or refresh and only the last device is shown and only that one gets automated.

5d879728af2e9_ss3.jpg


  • chef likes this

#6 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 22 September 2019 - 12:08 PM

Oh, that is very strange. It's a configuration issue for sure.

Last question before I locate troublesome code, which browser are you using there?

Edited by chef, 22 September 2019 - 12:09 PM.


#7 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 22 September 2019 - 02:46 PM

@otispresley I'm going to release a new version of the plugin which changes when it access the configuration, I also made sure to double check how it is saving everything. You should see it later tonight.

#8 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 22 September 2019 - 03:06 PM

Thanks @chef! BTW, I am using Chrome on Ubuntu 19.04 to access the Admin Dashboard.



#9 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 24 September 2019 - 08:48 AM

Hi @chef, my Emby still hasn't downloaded a new version of the plugin. It is still on 1.0.1.8. Do you know when the new version would be available?


  • chef likes this

#10 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 24 September 2019 - 09:13 AM

Hi @chef, my Emby still hasn't downloaded a new version of the plugin. It is still on 1.0.1.8. Do you know when the new version would be available?


I'll get it up right after work.

#11 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 24 September 2019 - 09:29 PM

@otispresley

 

I have pushed a release which I am hoping will fix some issues.

 

Would you mind removing the : 'Emby-Server\programdata\plugins\VeraHomeAutomation.xml' configuration file from your computer before you restart the server.

 

This way you'll start from a clean slate with the plugin.

 

Please let me know how it goes.


  • otispresley likes this

#12 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 26 September 2019 - 09:11 PM

Hi @chef, I have been traveling but will do this as soon as I get home tomorrow and let you know how it goes.


  • chef likes this

#13 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 27 September 2019 - 04:23 PM

Hi @chef, just got home and found my server crashed. I restarted it, and the new version of the plugin was installed already, so I deleted /var/lib/emby/plugins/configurations/VeraHomeAutomation.xml and restarted the server. There were no profiles, so I created and saved 2. When I navigated away and back again, it only shows the last one now, same as before. BTW, I am running Emby on Debian 10 in a Hyper-V VM.



#14 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 27 September 2019 - 06:38 PM

Hi @chef, just got home and found my server crashed. I restarted it, and the new version of the plugin was installed already, so I deleted /var/lib/emby/plugins/configurations/VeraHomeAutomation.xml and restarted the server. There were no profiles, so I created and saved 2. When I navigated away and back again, it only shows the last one now, same as before. BTW, I am running Emby on Debian 10 in a Hyper-V VM.

I'm starting to wonder if this is an issue specifically with Linux saving configuration data. Although I can't understand why because .netcore should be the same across platforms.

Is there anyway to pm me a log file from when you added the device?

There is some logging happening in the plugin, plus maybe I would see some configuration errors that would lead to a fix.

I know where the culprit code is. It is the 'add' button, but I just don't know why.

Edited by chef, 27 September 2019 - 06:40 PM.

  • otispresley likes this

#15 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 28 September 2019 - 08:44 AM

Hi @chef, I PM'ed you the log. I shutdown the server, deleted the XML config file and then started the server and added 2 devices; however I did things a bit different this time. I added the 2 devices without configuring them, and they stuck. I was then able to configure both of them, but now the Playback Unpause Scene config won't stick on both devices. I can configure it on one and it will remove it from the other device. It should all be in the log. Please let me know if you need me to redo it the other way and send that log.



#16 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 28 September 2019 - 08:53 AM

I went and tested automation and found that it is not working for either device. I deleted both devices and added and configured 1 device, and the automation works. I hope this helps!


Edited by otispresley, 28 September 2019 - 08:53 AM.


#17 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 28 September 2019 - 08:53 AM

Hi @chef, I PM'ed you the log. I shutdown the server, deleted the XML config file and then started the server and added 2 devices; however I did things a bit different this time. I added the 2 devices without configuring them, and they stuck. I was then able to configure both of them, but now the Playback Unpause Scene config won't stick on both devices. I can configure it on one and it will remove it from the other device. It should all be in the log. Please let me know if you need me to redo it the other way and send that log.

Ah, I see. There must have been an error in the xml configuration initially, which would explain why the config couldn't save and read.

Okay playback unpause events, not sticking.

Would you mind pm'ing me the xml configuration file?

Edited by chef, 28 September 2019 - 08:53 AM.

  • otispresley likes this

#18 otispresley OFFLINE  

otispresley

    Advanced Member

  • Members
  • 145 posts
  • Local time: 04:08 PM
  • LocationApex, NC

Posted 28 September 2019 - 09:05 AM

Ah, I see. There must have been an error in the xml configuration initially, which would explain why the config couldn't save and read.

Okay playback unpause events, not sticking.

Would you mind pm'ing me the xml configuration file?

 

I was unable to recreate the previous scenario, so I recreated the one where the second device added overwrites the first and PM'ed you the config and log.


  • chef likes this

#19 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 28 September 2019 - 09:13 AM

I have a theory, would you mind changing the name of your scene in Vera from "Overhead 20%" to "Overhead 20".

Remove the percent sign from the name. Something tells me that the percent is causing issues when saving the configuration. It's just a theory.

Afterwards, you would want to shut down the server and delete the configuration xml. Restart the server and try to save devices again.

If this fixes the issue, then we would have a bug in the configuration setup and we can bring it to the lead devs.
  • otispresley likes this

#20 chef ONLINE  

chef

    Advanced Member

  • Developers
  • 4235 posts
  • Local time: 04:08 PM
  • LocationPeterborough, Canada

Posted 28 September 2019 - 09:19 AM

I should also mention that sometimes it takes a second for the drop-down controls to populate on the device scene configuration page. I noticed it the other day and I'll get some code written to keep the Emby loader on the screen until the drop-down selectors are populated.
  • otispresley likes this





Also tagged with one or more of these keywords: plugins, vera, zwave

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users