I am integrating Hunter Douglass shades with a Omni 2 Pro and Radio RA2. The issue is that Hunter Douglass only gives serial command control to choose a preset scene. So to make even a simple open/close takes 2 buttons, I am dealing with many more features on the shades like top down bottom up, dualite etc, basic control will eat up endless buttons.
So...
I would like to have a Radio RA button in essence scroll through 2 or more serial commands.
I first tried using flags, a "If on then off - if off then on" approach:
WHEN TOGGLE TEST (Button)
AND IF TOGGLE TEST ON (flag)
THEN TOGGLE TEST OFF (flag)
WHEN TOGGLE TEST (Button)
AND IF TOGGLE TEST OFF (flag)
THEN TOGGLE TEST ON (flag)
But the flag defeats itself, I monitored its state in the "Status/Control" section, should see it go "0" to "1", but it does not. If it starts "on" this code then turns it "off" then "on" leaving it in the state that it started in, on. And vice versa for "off".
Can anyone solve this puzzle?
Marty
So...
I would like to have a Radio RA button in essence scroll through 2 or more serial commands.
I first tried using flags, a "If on then off - if off then on" approach:
WHEN TOGGLE TEST (Button)
AND IF TOGGLE TEST ON (flag)
THEN TOGGLE TEST OFF (flag)
WHEN TOGGLE TEST (Button)
AND IF TOGGLE TEST OFF (flag)
THEN TOGGLE TEST ON (flag)
But the flag defeats itself, I monitored its state in the "Status/Control" section, should see it go "0" to "1", but it does not. If it starts "on" this code then turns it "off" then "on" leaving it in the state that it started in, on. And vice versa for "off".
Can anyone solve this puzzle?
Marty