INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Scenes + Sequences  (Read 2833 times)

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Scenes + Sequences
« on: June 08, 2016, 10:34:35 pm »

Thanks JimH for the help battling the light bulb last week.

I've had the colored light bulb running under Engen and OneRemote for a week and it works great. I'm planning to try out scenes this weekend, and power strips are on the way.

What would really be useful would an ability to sequence commands. For example, I have a music alarm that plays a Mozart playlist at 6:45. I currently keep a small amplifier always on for this, and send a command through Windows Scheduler. The command sequence is something like this, and it's currently a windows .bat batch file.

-Turn off music playing in Zone 1 via mc.21 command line
-Turn off music playing in Zone 2
-Kill Chrome Browser (often used for Pandora)
-Switch to Zone 1 Whole House Audio (this goes to a Whole House Tuneblade audio system aka Interact User Hilton http://yabb.jriver.com/interact/index.php?topic=95760.0)
-Play Morning Mozart Playlist

It would be great to add a command in the list to turn on the amps on the two house stereos, which you could currently do by calling up an Engen web command. This would be more elegant as a command line function in the batch file, but once the outlet arrives I'll try it out with the web page command.

Even better would be the eventual ability to eventually send all of these commands via OneRemote, in a specific order, and call this a sequence.

Just an idea, food for thought. Excited to see how this develops!

-Phil
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Scenes + Sequences
« Reply #1 on: June 09, 2016, 06:55:54 am »

I'll see if Gene can reply to some of this, but OneRemote should be able to do some things now with MC using our MCWS.  I wrote about that briefly somewhere on the forum.
Logged

linutic

  • Recent member
  • *
  • Posts: 33
Re: Scenes + Sequences
« Reply #2 on: June 09, 2016, 03:47:46 pm »

Turns out you can control Engen from the command line just fine.   You can use any of the commands available in EngenClient.exe.

The EngenClient.exe is installed in the folder:

    C:\Program Files (x86)\J River\Engen 1\Server

You can run EngenClient interactively from there in any windows command window as in:

Code: [Select]
C:\Program Files (x86)\J River\Engen 1\Server>EngenClient.exe
For help, type help()
>>> help(basic_set)

    Does a zwave basic set operation to a network node.

    basic_set(node, value)

    node - Number in the range 1-232 (or)
           node/subnode as in (232,4).

    value - A number in the range 0-100.  Note that some devices
            ignore the value 100, but accept 99 as full on.

    Returns the status of the transmission to the device.
>>> basic_set(7,1)
{ 'status': 'ok',
  'times': { 'ack': 0, 'reply': 23, 'response': 6, 'wait': 0}}
>>> ^Z

EOF

C:\Program Files (x86)\J River\Engen 1\Server>

You can also run commands non-interactively, using the -n option to EngenClient.exe:

Code: [Select]
C:\Program Files (x86)\J River\Engen 1\Server>EngenClient.exe -n basic_set(6,99)

C:\Program Files (x86)\J River\Engen 1\Server>

That should allow you to control most devices from a script.   ;D
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Scenes + Sequences
« Reply #3 on: June 10, 2016, 01:11:26 pm »

linutic is Gene.  He's the developer of Engen.
Logged

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Re: Scenes + Sequences
« Reply #4 on: June 12, 2016, 09:42:43 am »

Thank you Gene. This is perfect, I will give this a go later today. Impressive work on this software!

Also, how can we help troubleshoot here on the beta board, other than just set up hardware and try things out?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Scenes + Sequences
« Reply #5 on: June 12, 2016, 11:41:12 am »

Any feedback is very welcome.  Thanks.
Logged

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Re: Scenes + Sequences
« Reply #6 on: June 12, 2016, 06:42:51 pm »




That should allow you to control most devices from a script.   ;D

This worked great. Thank you. Will test with new devices as they arrive.
Logged
Pages: [1]   Go Up