News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

XBMC, EventGhost and Lights

Started by lja, July 20, 2014, 05:02:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lja

Is it possible to have the lights turned off when the command "play" is given in Vox Commando?

jitterjames


lja

Quote from: jitterjames on July 20, 2014, 06:06:01 PM
Yes.

OK Thanks. I will do some more research and hopefully find a way.

nime5ter

This kind of thing is exactly what VC is designed for.

The issue is more to do with hardware. Obviously, some kind of automated lighting is needed, whether it's a Hue light or a Belkin Wemo, or Z-wave lights with a Vera controller, or X-10 lights, etc.

You mention Eventghost in your subject line, but it's not clear why. VoxCommando can communicate directly with a variety of home automation devices, so Eventghost *may* be necessary, or not.

The details of how such a VC command would be built will depend on specifics of your hardware, and the conditions under which you want this scenario (i.e., every time a "play movie" XBMC command is issued, or only in certain circumstances).
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

Quote from: nime5ter on July 20, 2014, 06:33:33 PM
This kind of thing is exactly what VC is designed for.

The issue is more to do with hardware. Obviously, some kind of automated lighting is needed, whether it's a Hue light or a Belkin Wemo, or Z-wave lights with a Vera controller, or X-10 lights, etc.

You mention Eventghost in your subject line, but it's not clear why. VoxCommando can communicate directly with a variety of home automation devices, so Eventghost *may* be necessary, or not.

The details of how such a VC command would be built will depend on specifics of your hardware, and the conditions under which you want this scenario (i.e., every time a "play movie" XBMC command is issued, or only in certain circumstances).

Thanks @Nime5ter for taking the time to provide the info. I do not normally use XBMC but after purchasing Vox and reading on this forum I wanted to try some of the things I saw here. I am a long time user of MediaBrowser. However I have now set up XBMC as I wanted to try the voice controlled approach which is not yet available for MediaBrowser. Currently I have it mostly working on XBMC with my remote where play turns off the lights on start of movie, dims at pause, turns on lights on stop  of movie. This is using EventGhost. My lights are controlled by Smartlinc 2412n. I am therefore looking to voice control with Vox to perform the same process as the remote. I will continue the search.

Kalle

#5
Hi lja, please try the forum search with insteon and you will find all for what you looking for.
You can use the scrape action in VC to get access to the insteon API and you will find how the command looks like with examples here (thanks to nime5ter): http://www.leftovercode.info/smartlinc.html
***********  get excited and make things  **********

jitterjames

If you are already using EventGhost anyway it might be easier to send a message to EventGhost.

If you could tell us more about what you already have set up (in some detail) it will be easier for us to help.

lja

Quote from: Kalle on July 21, 2014, 03:54:09 AM
Hi lja, please try the forum search with insteon and you will find all for what you looking for.
You can use the scrape action in VC to get access to the insteon API and you will find how the command looks like with examples here (thanks to nime5ter): http://www.leftovercode.info/smartlinc.html

Thanks Kalle. I have already and am still reading some of the insteon info on the forum. Tried scrape action: http://192.168.1.200/3?02621D1E3B0F11FF=I=3 However no luck. The relative info was changed to mine. Thanks for the link. Will review.

nime5ter

#8
The url you post does not include a port number. Aussie mate mentions in a follow-up thread that he had to specify the port number for his Insteon hub, so you cold try that if you haven't yet.

See: http://voxcommando.com/forum/index.php?topic=1395.msg12148;topicseen#msg12148

See also: http://voxcommando.com/forum/index.php?topic=1423.0 (linked to from the Home Automation page of the wiki)
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

Thanks to
@nime5ter
@jitterjames
@kalle

With your help and lots of reading, it is almost where I want it. I now have the basic actions working. It seems my main problem was the port. After resetting the port it all started to work. Thanks for your help.

lja

#10
The attached turns off lights when the movie starts. I would like to be able to turn the lights on when the movie ends. Is there a way to do this? I have the info for the scrape action to turn the lights on. If so can you help?

XBMC:Gotham 13.2
Vox: 2.007

Thanks.


nime5ter

Yes, you can use the event that is generated when XBMC stops playing a movie. (The same could be done for turning the light off, as an event is generated when a movie starts as well.)

e.g. when a movie stops playing in XBMC, it should be generating the event: XBMC.Player.OnStop.movie.

Then your command would just have whatever actions you want to happen when the movie stops, such as turning the lights on.

http://voxcommando.com/mediawiki/index.php?title=Events
http://voxcommando.com/mediawiki/index.php?title=Video_Tutorials
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

Thanks nime5ter. I had tried the XBMC.Player.OnStop.movie without luck, but after rereading the wiki you posted got it to work. Still playing with XBMC while waiting for a Mediabrowser plugin hopefully sometime in the not too distant future.

lja

Quote from: lja on November 01, 2014, 04:01:52 PM
Thanks nime5ter. I had tried the XBMC.Player.OnStop.movie without luck, but after rereading the wiki you posted got it to work. Still playing with XBMC while waiting for a Mediabrowser plugin hopefully sometime in the not too distant future.

@nime5ter
No longer working.
I noticed that the group XBMC Notifications and Events has a command XBMC.Player.OnPlay.movie listed, is this the proper location for XBMC.Player.OnStop.movie?

jitterjames

Quote from: lja on November 06, 2014, 03:43:31 PM
@nime5ter
No longer working.

This is a meaningless statement which will accomplish nothing.

Quote from: lja on November 06, 2014, 03:43:31 PM
I noticed that the group XBMC Notifications and Events has a command XBMC.Player.OnPlay.movie listed, is this the proper location for XBMC.Player.OnStop.movie?

What are you asking?  Are you asking which group to put your new command in?

Why don't you tell us what you have done, and try to explain what is actually happening.  Maybe post your xml or some screenshots or a log or something.