Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

EventGhost + zVirtualScenes Integration Plugins

If you have a question or need help, this is the place to be.
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: EventGhost + zVirtualScenes Integration Plugins

Post by Sem;colon »

Hello hairlesshobo,

why does the device ID in zVirtualScenes not match the ID of the device in the plugin (but name matches)??
If you like my work, Image me a drink :wink:
hairlesshobo
Posts: 9
Joined: Fri Sep 27, 2013 4:01 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by hairlesshobo »

Sorry for the late response on this. For some reason I didn't get notified of the new post. This has something to do with the IDs that are used by the WebAPI. I forget the exact details since it has been a while since I looked at the code, but I remember there not being any way to get around this unfortunately.
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

For the zVirtualScenes Control plugin for EventGhost should I use Beta 2 or Beta 3. Just got my z-stick and one wall switch today and I cant wait to play around with this.
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

What am I doing wrong. The logs in zVirtualScenes show events sent to EventGhost but I do not see them in EventGhost.

zVirtualScenes - Logs

Code: Select all

2014-12-25 21:08:45,287 [bl3][Thread:11][INFO] zvs.Processor.Core - Light - Family Room Basic changed from 0 to 255.
2014-12-25 21:08:45,381 [bl3][Thread:11][INFO] EventGhostPlugin.EventGhostPlugin - Light - Family Room (2): Set Basic, new value: 255, old value: 0
EventGhost - Logs

Code: Select all

20:59:56   System.Idle
21:10:20   System.UnIdle
Also more of a zVirtualScenes questions but I know Steve may know. I am seeing about a 10-20 minute delay when I turn my one switch on or off from zVirtualScenes, any thoughts?
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

Should I upgrade to zVirtualScenes 8.0 or hold off?
hairlesshobo
Posts: 9
Joined: Fri Sep 27, 2013 4:01 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by hairlesshobo »

I haven't personally used it yet so I have no way to know whether or not the plugins will work with it. I kinda doubt it will because I had to modify the source code to fix a major bug in the API, and chances are that if the code was fixed in version 8, it was likely fixed in a manner that does not line up with the EventGhost plugin.

If you would, give it a shot and see if it works or not and let me know. If it turns out that it does not work, I will look into updating my plugins to be compatible.
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

I'm scared of change, maybe this weekend.
sintei
Posts: 26
Joined: Thu Oct 09, 2014 9:46 am

Re: EventGhost + zVirtualScenes Integration Plugins

Post by sintei »

m19brandon, did you try out the new v8 of virtualscenes and the plugin to Eventghost yet?
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

I did not get a chance too. I took a look at the documentation and it will not work. Plus I opened an issue with them about requiring to run with elevated rights, that does not go well with Windows 8.1.
sintei
Posts: 26
Joined: Thu Oct 09, 2014 9:46 am

Re: EventGhost + zVirtualScenes Integration Plugins

Post by sintei »

I did a quick test with V8. The application force closed on me when selecting my z-wave stick so I went back to V7.
Waiting for Steve to finish up his own software so I can try it ;)
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

Now that my wife has given me the go ahead to add z-wave devices everywhere from our original 2 switch test, I added 5 more this week but have to add some code per switch. Does anyone of a better option? A dictionary maybe with the zVs service name, Im looking for some ideas. My current code to track status is using the Event Name="TCP.zVirtualScenes.Basic" followed by this python script. Any thoughts?

Code: Select all

p = eg.event.payload
if p[1] == 'Light - Family Room':
    if p[4] == '0':
        eg.globals.zlight_family = True
        print 'Light - Family Room is now ON'
    if p[4] == '255':
        eg.globals.zlight_family = False
        print 'Light - Family Room is now OFF'
elif p[1] == 'Light - Master Bedroom':
    if p[4] == '0':
        eg.globals.zlight_master_bedroom = True
        print 'Light - Master Bedroom is now ON'
    if p[4] == '255':
        eg.globals.zlight_master_bedroom = False
        print 'Light - Master Bedroom is now OFF'
elif p[1] == 'Light - House Front':
    if p[4] == '0':
        eg.globals.zlight_house_front = True
        print 'Light - House Front is now ON'
    if p[4] == '255':
        eg.globals.zlight_house_front = False
        print 'Light - House Front is now OFF'
else:
    print 'Unknown Device ' + str(p)
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

I updated to zvs 8 and the the webapi has been rewriten. /v2 is now /obdata. And all the commands look different.

Rolled back to zvs 7 and it works.

Side questions any idea why the webapi received a command but hangs for a minute and then zvs start work on the command?
Derbyboy
Posts: 6
Joined: Mon Aug 01, 2011 11:01 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by Derbyboy »

Could you get the plugin to work with v 8?


Pls
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: EventGhost + zVirtualScenes Integration Plugins

Post by m19brandon »

This plugin works well. I did find that the websevice in zVirtualScenes seems to suspend after a few minutes and is slow to respond. Thus I post a post command every minute to make sure everything working when I need it.
PanteraGSTK
Posts: 25
Joined: Fri Feb 19, 2010 1:30 am

Re: EventGhost + zVirtualScenes Integration Plugins

Post by PanteraGSTK »

Does anyone still use this plugin? I've tried everything I can think of to get it to connect with v7 of zvirtualscenes, but no success.

I can get to the webserver without issue, but if I add /v2 to the end I get an error. I am running the correct version 7 if I'm not mistaken.

Thoughts?
Post Reply