Open 18066034545 opened 2 years ago
INFO:root: 2022-05-28 12:34:35: Config loaded: {'broker': '192.168.31.122', 'port': '1883', 'username': 'homeassistant', 'password': 'naimooquaiPhachee1eir5wah0eema0ea3ahhai4aiphee4uy3ahtae1aixochuc', 'gateway': '192.168.31.230'} INFO:root: 2022-05-28 12:34:35: Connected to MQTT Broker! Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1373, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 319, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 301, in _read_status raise BadStatusLine(line) http.client.BadStatusLine: {"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸å室空è°","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äºæ¥¼ä¼è®®å®¤ç©ºè","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å¼ç室空è°","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ·æå¡ç空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æºæ¿ç©ºè°","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]} During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 450, in send timeout=timeout File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1373, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 319, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 301, in _read_status raise BadStatusLine(line) urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('{"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸\x89å\x91\x98室空è°\x83","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äº\x8c楼ä¼\x9a议室空è","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å\x80¼ç\x8f\xad室空è°\x83","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ\x88·æ\x9c\x8då\x8a¡ç\x8f\xad空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æ\x9cºæ\x88¿ç©ºè°\x83","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]}')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./vrf.py", line 92, in get_acs r = requests.get(api.format(CONFIG['gateway'],i), auth=('admin',''), proxies = {'http': None, 'https': None}) File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get return request('get', url, params=params, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 645, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('{"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸\x89å\x91\x98室空è°\x83","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äº\x8c楼ä¼\x9a议室空è","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å\x80¼ç\x8f\xad室空è°\x83","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ\x88·æ\x9c\x8då\x8a¡ç\x8f\xad空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æ\x9cºæ\x88¿ç©ºè°\x83","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]}')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "./vrf.py", line 215, in sync_acs(client) File "./vrf.py", line 163, in sync_acs acs_temp = get_acs() File "./vrf.py", line 102, in get_acs msg = json.loads(r[39:-3]) File "/usr/local/lib/python3.7/json/init.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid \escape: line 1 column 41 (char 40)
INFO:root: 2022-05-28 12:34:35: Config loaded: {'broker': '192.168.31.122', 'port': '1883', 'username': 'homeassistant', 'password': 'naimooquaiPhachee1eir5wah0eema0ea3ahhai4aiphee4uy3ahtae1aixochuc', 'gateway': '192.168.31.230'} INFO:root: 2022-05-28 12:34:35: Connected to MQTT Broker! Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1373, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 319, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 301, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: {"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸å室空è°","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äºæ¥¼ä¼è®®å®¤ç©ºè","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å¼ç室空è°","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ·æå¡ç空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æºæ¿ç©ºè°","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 450, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 786, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.7/http/client.py", line 1373, in getresponse
response.begin()
File "/usr/local/lib/python3.7/http/client.py", line 319, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.7/http/client.py", line 301, in _read_status
raise BadStatusLine(line)
urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('{"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸\x89å\x91\x98室空è°\x83","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äº\x8c楼ä¼\x9a议室空è","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å\x80¼ç\x8f\xad室空è°\x83","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ\x88·æ\x9c\x8då\x8a¡ç\x8f\xad空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æ\x9cºæ\x88¿ç©ºè°\x83","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]}'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./vrf.py", line 92, in get_acs
r = requests.get(api.format(CONFIG['gateway'],i), auth=('admin',''), proxies = {'http': None, 'https': None})
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('{"err":0,"unit":[{"oa":1,"ia":0,"nm":"ä¸\x89å\x91\x98室空è°\x83","on":1,"mode":1,"alarm":0,"tempSet":"26","tempIn":"25","fan":4,"idx":0,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":1,"nm":"äº\x8c楼ä¼\x9a议室空è","on":0,"mode":1,"alarm":0,"tempSet":"20","tempIn":"26","fan":1,"idx":1,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":20,"lowestVal":20,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":2,"nm":"å\x80¼ç\x8f\xad室空è°\x83","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"25","fan":1,"idx":2,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":3,"nm":"客æ\x88·æ\x9c\x8då\x8a¡ç\x8f\xad空è","on":0,"mode":1,"alarm":0,"tempSet":"23","tempIn":"26","fan":1,"idx":3,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":26,"lowestVal":26,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0},{"oa":1,"ia":4,"nm":"æ\x9cºæ\x88¿ç©ºè°\x83","on":1,"mode":1,"alarm":0,"tempSet":"25","tempIn":"24","fan":1,"idx":4,"grp":0,"OnoffLock":0,"tempLock":0,"highestVal":25,"lowestVal":25,"modeLock":0,"FlowDirection1":0,"FlowDirection2":0,"MainRmc":0}]}'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./vrf.py", line 215, in
sync_acs(client)
File "./vrf.py", line 163, in sync_acs
acs_temp = get_acs()
File "./vrf.py", line 102, in get_acs
msg = json.loads(r[39:-3])
File "/usr/local/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 1 column 41 (char 40)