xswxm / hassio-addons Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
我是群晖下的ha,没有add-on,我把文件夹放入custom_components,在config里的写法不对
climate: -platform: zhonghong_vrf
配置检查报错。
另外我看到作者你这个插件也支持docker,想问下怎么配置。dockerhub上面没有写
貌似状态的更新不是基于时间的轮训,而是基于状态转换之后会publish到mqtt的topic,请问可否改成基于时间的轮训,并且可以定义轮训时间?现在有的时候一个状态反馈可能4-5秒,还一个问题就是如果重启HA 状态不更新,需要手动更新一下实体空调的状态才能同步。
跪求大佬出一版本docker安装方法,因为不是hassio,真的整不了,或者告诉一下方法进入您那个docker中改什么配置,然后能否提供一下configurition.yaml的写法,我看也是用mqtt模拟的。
当前版本:0.3.5
ha版本:
Home Assistant 2023.1.7
Supervisor 2023.04.1
Operating System 9.5
前端版本: 20230110.0 - latest
启动插件后,能够准确获取空调设备信息,但是一定时间后(一般是三到五天),出现所有设备“不可用”情况,日志停留在连接MQTT成功处,restart插件后一切正常,一段时间后又会出现“不可用”。
请教一下,我通过路由器连接vrf网关,网关显示的地址还是默认的192.168.1.251,不是我路由器的网段,路由器内部显示lan连接但是也没显示ip地址,如何操作获取vrf网关的ip
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)
你好,我在安装的时候出现“The command '/bin/sh -c apt-get update' returned a non-zero code: 100”,请问是什么问题呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.