I have read it and I am playing. You guys have a lot more experience than I do so thanks for feedback. I hate redundant code and like to localize stuff. 1 place to change delays, 1 place if inputs need to shift, ..
Plus, I thought I nailed it moving the delay from keeping the source setup from proceeding.
Anyway, I still messing with it. I moved to small config and coding fake rooms/devices so downloads are fast and it makes trying stuff less of a burden
In this case, I what to localize actions needed to watch TV in this room.
1 - turn TV on/or verify it is on
2 - delay until it is ready for input change
3 - change input based on source being watch.
I have localized the source actions in their corresponding event
The react variable has all the required information. To make decisions on the react variable, I am currently storing the variable in a URC variable just so I can do a if/else decisions on it.
if source:bedroom includes DTV
set input 1
if source:bedroom includes atv
set input 2
I am wondering if I can avoid having to store by react variable (bedroom-activity) to source:bedroom and achieve the same thing.
I am just now starting to absorb some of this. I have coded up a basic room with a watch and a couple source events.
My control variable is BedRoom-Activity.
I see my watch and whatever source event firing when variable gets set. For example, Watch-DTV
Now, in my watch event, I want to make decisions on source as well, for example to set an input on a TV.
Is there only way to get the current value of the react variable and store in a urc variable?
Then standard if/else on the value of the urc variable.
Followers 0 Following 0 Joined Last Online