#!/usr/bin/env python
import myq as q

command = 'close'
state_request = q.myq_main2('status')
state = state_request.split(' ')[4].lower().replace('.','')
print (command + ' ' + state)
if command == 'close' and state == 'open':
    print(q.myq_main2('close','Garage Door Opener'))

if command == 'open' and state == 'closed':
    print(q.myq_main2('open','Garage Door Opener'))

f0719a4b9d96a0fe56cecfbb8f12423106dc9c80
<mask token>

<mask token>
print(command + ' ' + state)
if command == 'close' and state == 'open':
    print(q.myq_main2('close', 'Garage Door Opener'))
if command == 'open' and state == 'closed':
    print(q.myq_main2('open', 'Garage Door Opener'))

<mask token>
command = 'close'
state_request = q.myq_main2('status')
state = state_request.split(' ')[4].lower().replace('.', '')
print(command + ' ' + state)
if command == 'close' and state == 'open':
    print(q.myq_main2('close', 'Garage Door Opener'))
if command == 'open' and state == 'closed':
    print(q.myq_main2('open', 'Garage Door Opener'))

import myq as q
command = 'close'
state_request = q.myq_main2('status')
state = state_request.split(' ')[4].lower().replace('.', '')
print(command + ' ' + state)
if command == 'close' and state == 'open':
    print(q.myq_main2('close', 'Garage Door Opener'))
if command == 'open' and state == 'closed':
    print(q.myq_main2('open', 'Garage Door Opener'))

#!/usr/bin/env python
import myq as q

command = 'close'
state_request = q.myq_main2('status')
state = state_request.split(' ')[4].lower().replace('.','')
print (command + ' ' + state)
if command == 'close' and state == 'open':
    print(q.myq_main2('close','Garage Door Opener'))

if command == 'open' and state == 'closed':
    print(q.myq_main2('open','Garage Door Opener'))
