- Code: Select all
left_garage = indigo.variables[1470346067].value
right_garage = indigo.variables[1731578180].value
if left_garage == 'true':
indigo.actionGroup.execute(589155825)
if right_garage == 'true':
indigo.actionGroup.execute(1460987012)
left_garage = indigo.variables[1470346067].value
right_garage = indigo.variables[1731578180].value
if left_garage == 'true':
indigo.actionGroup.execute(589155825)
if right_garage == 'true':
indigo.actionGroup.execute(1460987012)
jay (support) wrote:If you want one for each door, then you wouldn't want to control them both in the same script, right?
ryanbuckner wrote:I was able to get the a virtual "Left Garage Door" to be recognized as a Garage Door Controller. I can open (with pin) and close the garage door using Alexa, open the left garage door or Alexa, close the garage door
One thing I'm having trouble with is still is the status. I have the status variable in the virtual device listed as isLeftGarageDoorOpen and the value of that variable is currently "true", which according to the documentation "If the value of the variable becomes “on” (or “true”, “open”, “1”, “yes”, “enabled”), we set the state of the virtual device to on. If the variable becomes “off” (or “false”, “closed”, “0”, “no”, “disabled”), then we set the state to off.". I can see in the Indigo client that the state of the virtual device is "on".
All good so far....
When I ask Alexa, is the Left Garage Door open?, she replies : Checking, hang on. The Left Garage Door is closed.
I assume I can just flip the status variable but this seems backwards and I'm reusing an existing variable so I'd need to create 2 new ones.
Users browsing this forum: No registered users and 0 guests