
lsibarra
Members-
Posts
137 -
Joined
-
Last visited
Everything posted by lsibarra
-
Also, the group and owner on /home/pi/node/logs/myq-garage.log is set to root [0]. Should I change that to pi [1000] for both group and owner?
-
Hi xKing, The /home/pi/node/logs/myq-garage.log is on 0644 permission. Should I change that to 0755? Thanks, Larry
-
Hi xKing, This is what I get: pi@raspberrypi:~/node $ ./myq-garage.py status Traceback (most recent call last): File "./myq-garage.py", line 401, in <module> LOGGER = setup_log('myq-garage') File "./myq-garage.py", line 108, in setup_log HANDLER = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, when="midn ight", backupCount=30) File "/usr/lib/python2.7/logging/handlers.py", line 171, in __init__ BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/__init__.py", line 911, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.7/logging/__init__.py", line 936, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/home/pi/node/logs/myq-garage.log'
-
Hi, I started getting this error again on 02/14/2017. Anyone have any idea? Sorry again for constantly reporting issues on this. Thanks in advance for any help/guidance. 2017-02-14 23:49:32,719 INFO ==================================STARTED================================== 2017-02-14 23:49:33,185 ERROR Traceback (most recent call last): 2017-02-14 23:49:33,185 ERROR File "/home/pi/node/myq-garage.py", line 407, in <module> 2017-02-14 23:49:33,186 ERROR gdoor_main() 2017-02-14 23:49:33,186 ERROR File "/home/pi/node/myq-garage.py", line 396, in gdoor_main 2017-02-14 23:49:33,186 ERROR print(doorname + ' not found in available doors.') 2017-02-14 23:49:33,187 ERROR UnboundLocalError 2017-02-14 23:49:33,187 ERROR : 2017-02-14 23:49:33,187 ERROR local variable 'doorname' referenced before assignment
-
Hi xKing and einstein.42, I just want to update both of you that the new file from github works perfectly. @xKing, thank you for letting me know how to use the config file. It works now as long as I include the full path. Guys, I've learned a lot from your codes. Thanks again for sharing this. Great work!
-
Thank you so much xKing. I will give this a try when I get home. I will keep you posted. You and einstein.42 are the best! Thanks for all your work!
-
Thanks xKing. You are awesome! I will let you know as soon as I entered all the needed information to integrate with my ISY. I am using io_guy's nodelink relay server. So the config.ini doesnt work for me. This might be a dumb question. Is the ChamberAPPID still this --> NWknvuBd7LoFHfXmKNMBcgajXtZEgKUh4V7WNzMidrpUUluDpVYVZx+xT4PCM5Kx or your modified script automatically pulls the new APPID? Sorry for being a newbie Larry
-
Hi xKing, Thanks for your reply and for your help. Could you please guide me how I can use the script you provided above. Is that something I add to einstein.42 myq srcript? I am not really sure what I need to do as I am a novice in python scripts. Thanks again, Larry
-
Hi Einstein.42, Sorry to bother you again with this. However, the script stopped working again. Below is the error log. Could this be the API again? Thanks for any help. 2017-02-13 20:29:51,035 INFO ==================================STARTED================================== 2017-02-13 20:29:51,434 ERROR Traceback (most recent call last): 2017-02-13 20:29:51,434 ERROR File "/home/pi/node/myq-garage.py", line 361, in <module> 2017-02-13 20:29:51,435 ERROR gdoor_main() 2017-02-13 20:29:51,435 ERROR File "/home/pi/node/myq-garage.py", line 327, in gdoor_main 2017-02-13 20:29:51,436 ERROR myq = MyQ() 2017-02-13 20:29:51,436 ERROR File "/home/pi/node/myq-garage.py", line 217, in __init__ 2017-02-13 20:29:51,436 ERROR self.login() 2017-02-13 20:29:51,436 ERROR File "/home/pi/node/myq-garage.py", line 228, in login 2017-02-13 20:29:51,437 ERROR res = req.json() 2017-02-13 20:29:51,437 ERROR File "/usr/lib/python2.7/dist-packages/requests/models.py", line 793, in json 2017-02-13 20:29:51,438 ERROR return json.loads(self.text, **kwargs) 2017-02-13 20:29:51,438 ERROR File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads 2017-02-13 20:29:51,438 ERROR return _default_decoder.decode(s) 2017-02-13 20:29:51,439 ERROR File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode 2017-02-13 20:29:51,439 ERROR obj, end = self.raw_decode(s) 2017-02-13 20:29:51,439 ERROR File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode 2017-02-13 20:29:51,440 ERROR return self.scan_once(s, idx=_w(s, idx).end()) 2017-02-13 20:29:51,440 ERROR simplejson.scanner 2017-02-13 20:29:51,440 ERROR . 2017-02-13 20:29:51,441 ERROR JSONDecodeError 2017-02-13 20:29:51,441 ERROR : 2017-02-13 20:29:51,441 ERROR Expecting value: line 1 column 1 (char 0)
-
Hi einstein.42 Thank you for your reply yesterday and appreciate your thorough explanations. I will keep it the way I have it since it is now working. In the event, you want me to test anything (ie: the new api you have) just let me know. Thanks, Larry
-
Hi einstein.42, I was running the commands via network resource module in ISY using the relay server from io_guy's NodeLink Server. I setup the relay command in ISY as follows: Command Type: tcp, Host: <rpi_id_address>, Port: 2405, Mode: C Escaped However, it is currently not working with the script. Therefore, I tried to bypass the config.ini file and entered all the information directly to your myq-garage.py script. Doing it this way, I was able to get the garage to respond from the ISY command via network resource module. Do you have any idea why it is not working with the config.ini file? Both files (myq-garage.py and the config.ini permission is set to 0755). Thanks, Larry
-
Hi einstein.42 and xKing, you guys are awesome I tested the new script and it works perfectly from the terminal. However, I cannot get it to work from the network module from ISY. Do you have any idea? Larry
-
Hi einstein.42, I really appreciate you looking into this so quickly. It is unfortunate that these companies are not willing to support our community here at Universal Devices. However, I would like to thank you for putting this together for us. It was quite a ride for me for two years to be able to control my garage door with my ISY. I really appreciate all the updates and support you've provided here. If there is no API available for this, do you have any recommendation or the best solution to control/monitor my garage door? Thanks again, Larry
-
Hi, I am getting this error message when i execute the command to open/close/status my 'MyQ Garage Door" from linux terminal. Does anyone know why this error is happening? I am currently running ISY firmware 5.0.2. Please help.
-
Hi einstein42, I upgraded my ISY to 5.02 and using the nodelink 0.6.7 with the relay enabled to port 2405. However, I'm having issues with the myq-garage.py script. If I run it in terminal, it works just fine. However, if I run in from the ISY to send the command, it is not responding. Below is the error log I have. Hope you can help me again and I hope its an easy fix. Larry 2016-10-24 02:12:49,708 INFO ==================================STARTED================================== 2016-10-24 02:12:50,657 WARNING Unsupported device (Gateway) found, skipping 2016-10-24 02:12:52,150 INFO Searching ISY Definitions for MyQ_gDoor 2016-10-24 02:12:52,151 INFO State variable: MyQ_gDoor found with ID: 37 2016-10-24 02:12:52,169 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 02:12:52,169 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 0 2016-10-24 02:12:52,187 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 02:13:21,934 INFO ==================================STARTED================================== 2016-10-24 02:13:22,784 WARNING Unsupported device (Gateway) found, skipping 2016-10-24 02:13:24,631 INFO Searching ISY Definitions for MyQ_gDoor 2016-10-24 02:13:24,632 INFO State variable: MyQ_gDoor found with ID: 37 2016-10-24 02:13:24,650 INFO Get_Var_State: init: 0 - val: 1 2016-10-24 02:13:24,650 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 1 2016-10-24 02:13:24,668 INFO Get_Var_State: init: 0 - val: 1 2016-10-24 03:26:54,819 INFO ==================================STARTED================================== 2016-10-24 03:27:06,919 INFO ==================================STARTED================================== 2016-10-24 03:27:07,730 WARNING Unsupported device (Gateway) found, skipping 2016-10-24 03:27:08,555 INFO gDoor is Closed. Last changed at Mon 24 Oct 2016 02:40:41 2016-10-24 03:27:08,592 INFO Searching ISY Definitions for MyQ_gDoor 2016-10-24 03:27:08,593 INFO State variable: MyQ_gDoor found with ID: 37 2016-10-24 03:27:08,611 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 03:27:08,612 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 0 2016-10-24 03:27:08,629 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 03:27:08,630 INFO MyQ_gDoor is already set to 0 2016-10-24 03:37:17,068 INFO ==================================STARTED================================== 2016-10-24 03:37:18,089 WARNING Unsupported device (Gateway) found, skipping 2016-10-24 03:37:19,373 INFO Searching ISY Definitions for MyQ_gDoor 2016-10-24 03:37:19,374 INFO State variable: MyQ_gDoor found with ID: 37 2016-10-24 03:37:19,392 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 03:37:19,393 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 0 2016-10-24 03:37:19,412 INFO Get_Var_State: init: 0 - val: 0 2016-10-24 03:37:45,755 INFO ==================================STARTED================================== 2016-10-24 03:37:46,979 WARNING Unsupported device (Gateway) found, skipping 2016-10-24 03:37:48,171 INFO Searching ISY Definitions for MyQ_gDoor 2016-10-24 03:37:48,172 INFO State variable: MyQ_gDoor found with ID: 37 2016-10-24 03:37:48,190 INFO Get_Var_State: init: 0 - val: 1 2016-10-24 03:37:48,191 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 1 2016-10-24 03:37:48,209 INFO Get_Var_State: init: 0 - val: 1
-
Hi einstein.42 here's additional info that may help. 2016-07-01 18:17:00,818 INFO ==================================STARTED================================== 2016-07-01 18:17:02,065 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 17:39:34 2016-07-01 18:17:02,076 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 18:17:02,077 ERROR Traceback (most recent call last): 2016-07-01 18:17:02,077 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 18:17:02,077 ERROR gdoor_main() 2016-07-01 18:17:02,078 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 18:17:02,078 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 18:17:02,078 ERROR TypeError 2016-07-01 18:17:02,078 ERROR : 2016-07-01 18:17:02,079 ERROR 'NoneType' object is not iterable 2016-07-01 18:17:29,316 INFO ==================================STARTED================================== 2016-07-01 18:18:00,701 INFO ==================================STARTED================================== 2016-07-01 18:18:02,302 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 18:18:02,303 ERROR Traceback (most recent call last): 2016-07-01 18:18:02,303 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 18:18:02,304 ERROR gdoor_main() 2016-07-01 18:18:02,304 ERROR File "./myq-garage.py", line 332, in gdoor_main 2016-07-01 18:18:02,304 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 18:18:02,305 ERROR TypeError 2016-07-01 18:18:02,305 ERROR : 2016-07-01 18:18:02,305 ERROR 'NoneType' object is not iterable 2016-07-01 18:19:42,997 INFO ==================================STARTED================================== 2016-07-01 18:19:45,111 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 18:19:45,111 ERROR Traceback (most recent call last): 2016-07-01 18:19:45,111 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 18:19:45,112 ERROR gdoor_main() 2016-07-01 18:19:45,112 ERROR File "./myq-garage.py", line 332, in gdoor_main 2016-07-01 18:19:45,112 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 18:19:45,113 ERROR TypeError 2016-07-01 18:19:45,113 ERROR : 2016-07-01 18:19:45,113 ERROR 'NoneType' object is not iterable 2016-07-01 18:51:28,995 INFO ==================================STARTED================================== 2016-07-01 18:51:30,559 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 18:20:04 2016-07-01 18:51:30,570 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 18:51:30,571 ERROR Traceback (most recent call last): 2016-07-01 18:51:30,571 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 18:51:30,572 ERROR gdoor_main() 2016-07-01 18:51:30,572 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 18:51:30,572 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 18:51:30,573 ERROR TypeError 2016-07-01 18:51:30,573 ERROR : 2016-07-01 18:51:30,573 ERROR 'NoneType' object is not iterable 2016-07-01 18:51:42,888 INFO ==================================STARTED================================== 2016-07-01 19:04:05,072 INFO ==================================STARTED================================== 2016-07-01 19:04:06,521 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 18:20:04 2016-07-01 19:04:06,532 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:04:06,532 ERROR Traceback (most recent call last): 2016-07-01 19:04:06,533 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:04:06,533 ERROR gdoor_main() 2016-07-01 19:04:06,533 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:04:06,534 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:04:06,534 ERROR TypeError 2016-07-01 19:04:06,534 ERROR : 2016-07-01 19:04:06,535 ERROR 'NoneType' object is not iterable 2016-07-01 19:04:18,276 INFO ==================================STARTED================================== 2016-07-01 19:04:19,864 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:04:19,865 ERROR Traceback (most recent call last): 2016-07-01 19:04:19,865 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:04:19,865 ERROR gdoor_main() 2016-07-01 19:04:19,866 ERROR File "./myq-garage.py", line 332, in gdoor_main 2016-07-01 19:04:19,866 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:04:19,866 ERROR TypeError 2016-07-01 19:04:19,866 ERROR : 2016-07-01 19:04:19,867 ERROR 'NoneType' object is not iterable 2016-07-01 19:04:35,597 INFO ==================================STARTED================================== 2016-07-01 19:04:37,074 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 18:20:04 2016-07-01 19:04:37,085 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:04:37,086 ERROR Traceback (most recent call last): 2016-07-01 19:04:37,086 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:04:37,086 ERROR gdoor_main() 2016-07-01 19:04:37,087 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:04:37,087 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:04:37,087 ERROR TypeError 2016-07-01 19:04:37,087 ERROR : 2016-07-01 19:04:37,088 ERROR 'NoneType' object is not iterable 2016-07-01 19:05:07,169 INFO ==================================STARTED================================== 2016-07-01 19:05:08,722 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:05:08,723 ERROR Traceback (most recent call last): 2016-07-01 19:05:08,723 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:05:08,724 ERROR gdoor_main() 2016-07-01 19:05:08,724 ERROR File "./myq-garage.py", line 332, in gdoor_main 2016-07-01 19:05:08,724 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:05:08,725 ERROR TypeError 2016-07-01 19:05:08,725 ERROR : 2016-07-01 19:05:08,725 ERROR 'NoneType' object is not iterable 2016-07-01 19:05:14,282 INFO ==================================STARTED================================== 2016-07-01 19:05:20,946 INFO ==================================STARTED================================== 2016-07-01 19:05:32,137 INFO ==================================STARTED================================== 2016-07-01 19:05:33,722 INFO gDoor is Open. Last changed at Fri 01 Jul 2016 19:05:19 2016-07-01 19:05:33,733 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:05:33,735 ERROR Traceback (most recent call last): 2016-07-01 19:05:33,735 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:05:33,736 ERROR gdoor_main() 2016-07-01 19:05:33,736 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:05:33,737 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:05:33,737 ERROR TypeError 2016-07-01 19:05:33,737 ERROR : 2016-07-01 19:05:33,737 ERROR 'NoneType' object is not iterable 2016-07-01 19:05:47,071 INFO ==================================STARTED================================== 2016-07-01 19:05:48,553 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:05:48,553 ERROR Traceback (most recent call last): 2016-07-01 19:05:48,554 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:05:48,554 ERROR gdoor_main() 2016-07-01 19:05:48,555 ERROR File "./myq-garage.py", line 332, in gdoor_main 2016-07-01 19:05:48,555 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:05:48,555 ERROR TypeError 2016-07-01 19:05:48,556 ERROR : 2016-07-01 19:05:48,556 ERROR 'NoneType' object is not iterable 2016-07-01 19:05:56,133 INFO ==================================STARTED================================== 2016-07-01 19:05:57,375 INFO gDoor is Open. Last changed at Fri 01 Jul 2016 19:05:19 2016-07-01 19:05:57,386 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:05:57,386 ERROR Traceback (most recent call last): 2016-07-01 19:05:57,386 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:05:57,387 ERROR gdoor_main() 2016-07-01 19:05:57,387 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:05:57,388 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:05:57,388 ERROR TypeError 2016-07-01 19:05:57,388 ERROR : 2016-07-01 19:05:57,388 ERROR 'NoneType' object is not iterable 2016-07-01 19:06:02,995 INFO ==================================STARTED================================== 2016-07-01 19:06:04,305 INFO gDoor is Closing. Last changed at Fri 01 Jul 2016 19:05:57 2016-07-01 19:06:04,316 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:06:04,316 ERROR Traceback (most recent call last): 2016-07-01 19:06:04,316 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:06:04,317 ERROR gdoor_main() 2016-07-01 19:06:04,317 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:06:04,318 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:06:04,318 ERROR TypeError 2016-07-01 19:06:04,318 ERROR : 2016-07-01 19:06:04,318 ERROR 'NoneType' object is not iterable 2016-07-01 19:06:22,276 INFO ==================================STARTED================================== 2016-07-01 19:06:23,672 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:06:23,683 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:06:23,684 ERROR Traceback (most recent call last): 2016-07-01 19:06:23,684 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:06:23,684 ERROR gdoor_main() 2016-07-01 19:06:23,685 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:06:23,685 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:06:23,685 ERROR TypeError 2016-07-01 19:06:23,686 ERROR : 2016-07-01 19:06:23,686 ERROR 'NoneType' object is not iterable 2016-07-01 19:06:36,476 INFO ==================================STARTED================================== 2016-07-01 19:06:38,087 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:06:38,097 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:06:38,098 ERROR Traceback (most recent call last): 2016-07-01 19:06:38,098 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:06:38,098 ERROR gdoor_main() 2016-07-01 19:06:38,099 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:06:38,099 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:06:38,099 ERROR TypeError 2016-07-01 19:06:38,100 ERROR : 2016-07-01 19:06:38,100 ERROR 'NoneType' object is not iterable 2016-07-01 19:06:44,794 INFO ==================================STARTED================================== 2016-07-01 19:06:46,207 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:06:46,218 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:06:46,218 ERROR Traceback (most recent call last): 2016-07-01 19:06:46,219 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:06:46,219 ERROR gdoor_main() 2016-07-01 19:06:46,219 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:06:46,220 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:06:46,220 ERROR TypeError 2016-07-01 19:06:46,220 ERROR : 2016-07-01 19:06:46,220 ERROR 'NoneType' object is not iterable 2016-07-01 19:06:56,389 INFO ==================================STARTED================================== 2016-07-01 19:06:57,948 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:06:57,959 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:06:57,960 ERROR Traceback (most recent call last): 2016-07-01 19:06:57,960 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:06:57,960 ERROR gdoor_main() 2016-07-01 19:06:57,961 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:06:57,961 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:06:57,961 ERROR TypeError 2016-07-01 19:06:57,961 ERROR : 2016-07-01 19:06:57,962 ERROR 'NoneType' object is not iterable 2016-07-01 19:07:15,882 INFO ==================================STARTED================================== 2016-07-01 19:07:17,188 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:07:17,198 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:07:17,199 ERROR Traceback (most recent call last): 2016-07-01 19:07:17,199 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:07:17,199 ERROR gdoor_main() 2016-07-01 19:07:17,200 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:07:17,200 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:07:17,200 ERROR TypeError 2016-07-01 19:07:17,201 ERROR : 2016-07-01 19:07:17,201 ERROR 'NoneType' object is not iterable 2016-07-01 19:08:14,673 INFO ==================================STARTED================================== 2016-07-01 19:08:15,996 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:08:16,007 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:08:16,008 ERROR Traceback (most recent call last): 2016-07-01 19:08:16,008 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:08:16,008 ERROR gdoor_main() 2016-07-01 19:08:16,009 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:08:16,009 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:08:16,009 ERROR TypeError 2016-07-01 19:08:16,010 ERROR : 2016-07-01 19:08:16,010 ERROR 'NoneType' object is not iterable 2016-07-01 19:08:28,553 INFO ==================================STARTED================================== 2016-07-01 19:08:29,929 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:08:29,939 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:08:29,940 ERROR Traceback (most recent call last): 2016-07-01 19:08:29,940 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:08:29,941 ERROR gdoor_main() 2016-07-01 19:08:29,941 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:08:29,941 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:08:29,941 ERROR TypeError 2016-07-01 19:08:29,942 ERROR : 2016-07-01 19:08:29,942 ERROR 'NoneType' object is not iterable 2016-07-01 19:08:33,393 INFO ==================================STARTED================================== 2016-07-01 19:08:34,617 INFO gDoor is Closed. Last changed at Fri 01 Jul 2016 19:06:07 2016-07-01 19:08:34,628 ERROR Caught Exception in isy_get_var_id: ('Connection aborted.', error(111, 'Connection refused')) 2016-07-01 19:08:34,628 ERROR Traceback (most recent call last): 2016-07-01 19:08:34,628 ERROR File "./myq-garage.py", line 348, in <module> 2016-07-01 19:08:34,629 ERROR gdoor_main() 2016-07-01 19:08:34,629 ERROR File "./myq-garage.py", line 320, in gdoor_main 2016-07-01 19:08:34,630 ERROR id, varname, init, value = isy_get_var_id(inst.name) 2016-07-01 19:08:34,630 ERROR TypeError 2016-07-01 19:08:34,630 ERROR : 2016-07-01 19:08:34,630 ERROR 'NoneType' object is not iterable
-
Hi einstein.42 I am not sure what log are you referring. How can i get or obtain the log? All the log I have was the one form the logs folder. I am not sure if this will help but this is all I am getting. I am new to linux and not sure what the command. Please let me know. 2016-06-30 15:48:37,067 INFO ==================================STARTED================================== 2016-06-30 22:06:45,304 INFO ==================================STARTED================================== 2016-06-30 22:06:46,756 INFO gDoor is Closed. Last changed at Thu 30 Jun 2016 14:58:26 2016-06-30 22:06:46,787 INFO Searching ISY Definitions for MyQ_gDoor 2016-06-30 22:06:46,788 INFO State variable: MyQ_gDoor found with ID: 37 2016-06-30 22:06:46,801 INFO Get_Var_State: init: 0 - val: 0 2016-06-30 22:06:46,801 INFO ISY Get Var ID Return - id: 37 - varname: MyQ_gDoor - init: 0 - value: 0 2016-06-30 22:06:46,814 INFO Get_Var_State: init: 0 - val: 0 2016-06-30 22:06:46,815 INFO MyQ_gDoor is already set to 0 2016-06-30 23:23:14,427 INFO ==================================STARTED==================================
-
Hi Einstein.42 You helped me integrate my garage door last December. I had issues because the python script was not compatible with my ISY firmaware version. Since then, you updated the script, it was running very smooth. Thanks again for all your help. I just wanted to make you aware that I believe there are new added features or updates on the my-garage.py script. I tried to use the new one this past weekend and it didn't work with my ISY. The odd part though was that, I was able to run the command via terminal and the garage would open or close depending which one I run. However, it is not working from the DSCLink relay server. Even including the full path it is still not working. I am not sure if you have any idea why its not working. The old one still works like a charm. My current ISY version is 4.4.6. Hope this helps. I wonder if you received any feedback from anyone with the same issue. Thanks again for your help. -Larry
-
Cool...thanks
-
Hey einstein.42, I have a sensor on that garage that's already integrated in DSClink. Should I use that to change to update the garage door state variable instead of running MyQ_STATUS every 5 minutes? Which one do you think is better
-
Hi einstein.42, So awesome... as soon as I uploaded the new version, and run it in the terminal... it found the state variable right away. Everything is now working. I still kept the full path on the relay server since replacing it with ./myq-garage.py only does not work on mine. Thank you so much again. I really appreciate all your hard work and effort on getting this fully functional. Cheers, Larry
-
Hi einstein.42, Thanks for resending me the updated myq-garage.py for v4.3.26 ISY version. Thanks for your help. I will check it out in a bit and will report back.
-
yes... i do...
-
Hi einstein.42, Below is the partial log from the dscserver.exe 2015-12-18 17:59:19 - ISY: <CList type="VAR_INT"><e id="1" name="sAlarmZone1_Garage_Rollup_Door" /><e id="2" name="sAlarmZone9_FrontEntyExitDoor" /><e id="3" name="sAlarmZone10_GarageEntryExitDoor" /><e id="4" name="sAlarmZone11_GarageEntryExitSideDoor" /><e id="5" name="sAlarmZone12_FamilyRoomPatioDoor" /><e id="6" name="sAlarmZone13_DiningRoomPatioDoor" /><e id="7" name="sAlarmZone14_LivingRoomWindow_Left" /><e id="8" name="sAlarmZone15_LivingRoomWindow_Right" /><e id="9" name="sAlarmZone16_KitchenSmallWindow" /><e id="10" name="sAlarmZone17_KitchenLargeWindow" /><e id="11" name="sAlarmZone18_DownstairsBathroomWindow" /><e id="12" name="sAlarmZone19_BedroomWindow_Right" /><e id="13" name="sAlarmZone20_BedroomWindow_Left" /><e id="14" name="sAlarmZone21_MastersBedroomWindow_Left" /><e id="15" name="sAlarmZone22_MastersBedroomWindow_Right" /><e id="16" name="sAlarmZone23_MastersBathroom" /><e id="17" name="sAlarmZone24_HallwayBathroom" /><e id="18" name="sAlarmZone25_LivingRoomMotion" /><e id="19" name="sAlarmZone26_FamilyRoomMotion" /><e id="20" name="sAlarmZone40_KeypadNonTouchscreen" /><e id="21" name="sAlarmZone41_WirelessKeyfob1" /><e id="22" name="sAlarmZone42_WirelessKeyfob2" /><e id="23" name="sAlarmStatus_Alarmed" /><e id="24" name="sAlarmStatus_Disarmed" /><e id="25" name="sAlarmStatus_Ready" /><e id="26" name="sAlarmStatus_ExitDelay" /><e id="27" name="sAlarmStatus_EntryDelay" /><e id="28" name="sAlarmStatus_ArmedStay" /><e id="29" name="sAlarmStatus_ArmedAway" /><e id="30" name="sAlarm_Heartbeat" /><e id="31" name="sAlarm_PanelTrouble" /><e id="32" name="sAlarm_DisarmingUser" /><e id="33" name="mLarry_android" /><e id="34" name="mVirginia_android" /><e id="35" name="Kitchen_Nook_Light_Count" /><e id="36" name="mJohn_android" /><e id="37" name="MyQ_gDoor" /></CList> (vars/definitions/2) I already changed the name on the garage door to gDoor. As you noticed, id="37" is showing MyQ_gDoor. Thus the dscserver is seeing the new state variable. Below is the log from your script: 2015-12-18 18:01:14,835 INFO Get_Var_ID: Request response: 200 <CList type="VAR_INT"><e id="1" name="sAlarmZone1_Garage_Rollup_Door" /><e id="2" name="sAlarmZone9_FrontEntyExitDoor" /><e id="3" name="sAlarmZone10_GarageEntryExitDoor" /><e id="4" name="sAlarmZone11_GarageEntryExitSideDoor" /><e id="5" name="sAlarmZone12_FamilyRoomPatioDoor" /><e id="6" name="sAlarmZone13_DiningRoomPatioDoor" /><e id="7" name="sAlarmZone14_LivingRoomWindow_Left" /><e id="8" name="sAlarmZone15_LivingRoomWindow_Right" /><e id="9" name="sAlarmZone16_KitchenSmallWindow" /><e id="10" name="sAlarmZone17_KitchenLargeWindow" /><e id="11" name="sAlarmZone18_DownstairsBathroomWindow" /><e id="12" name="sAlarmZone19_BedroomWindow_Right" /><e id="13" name="sAlarmZone20_BedroomWindow_Left" /><e id="14" name="sAlarmZone21_MastersBedroomWindow_Left" /><e id="15" name="sAlarmZone22_MastersBedroomWindow_Right" /><e id="16" name="sAlarmZone23_MastersBathroom" /><e id="17" name="sAlarmZone24_HallwayBathroom" /><e id="18" name="sAlarmZone25_LivingRoomMotion" /><e id="19" name="sAlarmZone26_FamilyRoomMotion" /><e id="20" name="sAlarmZone40_KeypadNonTouchscreen" /><e id="21" name="sAlarmZone41_WirelessKeyfob1" /><e id="22" name="sAlarmZone42_WirelessKeyfob2" /><e id="23" name="sAlarmStatus_Alarmed" /><e id="24" name="sAlarmStatus_Disarmed" /><e id="25" name="sAlarmStatus_Ready" /><e id="26" name="sAlarmStatus_ExitDelay" /><e id="27" name="sAlarmStatus_EntryDelay" /><e id="28" name="sAlarmStatus_ArmedStay" /><e id="29" name="sAlarmStatus_ArmedAway" /><e id="30" name="sAlarm_Heartbeat" /><e id="31" name="sAlarm_PanelTrouble" /><e id="32" name="sAlarm_DisarmingUser" /><e id="33" name="mLarry_android" /><e id="34" name="mVirginia_android" /><e id="35" name="Kitchen_Nook_Light_Count" /><e id="36" name="mJohn_android" /><e id="37" name="MyQ_gDoor" /></CList> 2015-12-18 18:01:16,233 INFO Searching ISY Definitions for MyQ_gDoor Seemed to be doing the same issue.
-
Hi einstein.42, Do you know how I can find the log for dsc server whether if the command is being accepted? Is there something I need to enable. The only thing I see is the status on the main page of DSC server.