Forums : IR Device Status Feedback
This page last changed on Dec 31, 2015 by ejr1283.
To start, I am new to openremote and I am not a programmer. I am a DIYer that likes to tinker with computers and technology.
I know this has been addressed on the forums in a couple different areas, such as this. I have tried to replicate the process discussed. But, I am still confused on how to handle scene switching when an device does not have discrete ON/Off codes.
As in the referenced thread, I currently have a harmony remote that I would like to replace with OR. I will be adding lighting scenes, etc. down the road. Currently, the devices I am working with do not have discrete IR-codes for On/Off. Specifically, I am working with the following equipment:
AVR - Pioneer VSX-917
On the harmony, the Remote "remembers" the states of the device so if the device is already turned on, the Turn ON/OFF code isn`t sent again.
Scenario would be the following:
Scene (Macro) "Watch TV (TV)" selected:
Now i want to watch movies
Scene (Macro) "Watch Movies" selected:
I know that I need to use In Memory Virtual Commands to make this happen. For the Pioneer VSX917 I have created the following commands:
1) VSX917_VRStatus (In-Memory Virtual Command - status)
I have created the following Sensor
VSX917_Power_Sensor (Command - VSX917_VRStatus; Type- switch)
I have created the following switch
I also know that I should use rules. I have created the following rule:
global org.openremote.controller.statuscache.CommandFacade execute;
rule "VSX917 On"
event(source == "VSX917_VRStatus", value = "on")
rule "VSX917 Off"
event(source == "VSX917_VRStatus", value = "off")
I then created a macro called "Watch Movies." This macro calls the "VXS917_VROn" command. I have a button on my UI that is associated with this macro. When I push the button, I see the IR emitter flash but nothing happens. The Pioneer VSX917 does not turn on. I know that the IR power toggle works because I also have a button on my UI that calls the Power toggle command directly and can turn the Pioneer VSX917 on and off.
What did I do wrong? I know my problem is something simple. If I can get this figured out, I think I will be able to setup my "first draft" of the OR system. Thanks in advance.
|Document generated by Confluence on Jun 05, 2016 09:33|