Jump to content

Switched On/Off Changes?


mbking

Recommended Posts

Posted

@Jimbo,

In the PG2 version of the Hue Emulator, the Switched On/Off condition was recognized in programs when the device was switched on or off by my Harmony remotes.  That's not the case in PG3 and it's a nice feature to have.  I don't know if that's due to a change in the node server or some other component, but I wanted to bring it up in case it's a bug or something that can be added back.  I verified that Polisy ISY does recognize the switched on/off from other devices.

Mark

Posted

That's odd, nothing has changed related to how devices are turned on.  So you are saying when Harmony Remote turned on a device using the Hue Emulator the ISY would see that a s Control?  It's possible the underlying PyISY program changed, but I don't think anything has changed there either.

 

Posted
3 hours ago, Jimbo said:

That's odd, nothing has changed related to how devices are turned on.  So you are saying when Harmony Remote turned on a device using the Hue Emulator the ISY would see that a s Control?  It's possible the underlying PyISY program changed, but I don't think anything has changed there either.

 

Yes, the 994i saw it as a Control event.  I used it to disable a motion sensor for a few seconds to allow me to exit the room after turning off a light with the harmony remote.  There are other ways to handle it, so I don't view this as a must have.  I was just surprised it worked differently with Polisy ISY and PG3.

  • 2 weeks later...
Posted (edited)

Just read this and want to see if it applies to my use case as I just installed Polyglot 3 (haven't used it yet)

The only way that I have figured out to get the Hue Emulator V2 to run a program on the ISY is to create a scene (with Notes:spoken=1) which (for example) sets a light to 10% dim - then I have a program that runs using:  if '... Lt Switch' Status is 10% then (take action)

Is this the kind of situation that you are talking about?

Or Is there another way of getting a program to run from the Hue Emulator?  Someone once mentioned "fake scenes" but I don't know what that means or how to do that.

For me, this capability is critical as I really want to be able to run programs using the Harmony Companion Home Control buttons, not just turn scenes on and off

Edited by JTsao
Posted

@JTsao,

I primarily use the Hue Emulator to turn lights on or off using my Harmony remotes.  It's more convenient than pulling out the phone to do it.  In my office, I use motion to turn on my desk light as I walk into the room and keep it on while I'm in the room.  When I leave the room, I turn off the light using my remote and need a way for the motion sensor to be ignored while I leave.  This is where the "Switched Off" action works great.  The motion sensor is deactivated for about 15 seconds when it sees the desk light "switched off".  Using the status is too slow.  Switch Off used to work with PG2, but doesn't with PG3.  Not sure what is different.  It's not a big deal, just was nice to have.  I don't know of any other way to use the Hue Emulator.  It just emulates the Phillips Hue lights so the Harmony remote will recognize it as such even if the light is really another type of light in the ISY.  I'm not aware of any other functions that are available with the node server.

Posted

So you're saying that in PG3, pushing the button on the Harmony remote sets the associated scene with the light set to off, and you have a program that runs like the following:

if 'Lt Switch' is switched off then 

  (action here - ignore motion sensor, or whatever)

and it doesn't work with the PG3 Hue Emulator?

 

In my program - I use the status of one of the lights I intend to control which signals a program to run

if 'Lt Switch' status is 10% then

(action here - e.g. increment state variable) - 

In my case, using PG2 this runs right away when I push the button, activating the scene where the light is set to 10%

If the ability to trigger a program is broken in the PG3 version, then that is indeed a big problem

Posted
8 hours ago, JTsao said:

So you're saying that in PG3, pushing the button on the Harmony remote sets the associated scene with the light set to off, and you have a program that runs like the following:

if 'Lt Switch' is switched off then 

  (action here - ignore motion sensor, or whatever)

and it doesn't work with the PG3 Hue Emulator?

 

In my program - I use the status of one of the lights I intend to control which signals a program to run

if 'Lt Switch' status is 10% then

(action here - e.g. increment state variable) - 

In my case, using PG2 this runs right away when I push the button, activating the scene where the light is set to 10%

If the ability to trigger a program is broken in the PG3 version, then that is indeed a big problem

@JTsao,

Your program will work fine with the Hue Emulator.  Once the Hue Emulator has set your light to 10% and the ISY recognizes the change, your program will run.  My issue is a timing issue.  In PG2, the ISY recognized turning on or off a light using the Hue Emulator as a control action which is very fast.  With PG3 and ISY on Polisy, the control action does not trigger when I turn off a light from my Harmony remote.  Jimbo does not believe there's been any change in the Hue Emulator to cause that.  He's surprised that it worked in PG2.  It could be the ISY code or some of the PG3 base code.  So for me, I have to come up with a better way to handle my logic because the status update is slower than the control trigger.  Your example will work fine.  I've had really good luck with the Hue Emulator and would recommend it.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.6k
×
×
  • Create New...