I have no clue as to what I am doing.
Upgrading my HASSIO installation did not work. So I did a reinstall and used the following steps to get Nefit running again:
ssh [email protected] -p 22222
Doe: ““login”” op de cli
run shell in homeassistant docker container
docker exec -it homeassistant /bin/bash
#define user base directory
export PYTHONUSERBASE=/config/deps
#install pyaes
pip3 install --user --no-cache-dir --prefix= --no-dependencies pyaes
#install nefit-client
pip3 install --user --no-cache-dir --prefix= --no-dependencies nefit-client
I also installed the custom_components in
\\HASSIO\config\custom_components\climate
This worked great in the previous HASSIO version. I now get the following errors in the HASSIO logfiles:
Nefit api returned invalid data: ‘NoneType’ object is not subscriptable
13:08 custom_components/climate/nefit.py (WARNING)
<TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6f3b7db0 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1>
13:08 /usr/local/lib/python3.6/site-packages/sleekxmpp/basexmpp.py (ERROR)
Connection error.
13:08 /usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py (ERROR)
Update of climate.heating is taking over 10 seconds
13:07 util/async_.py (WARNING)
<TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6feed570 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1>
13:07 /usr/local/lib/python3.6/site-packages/sleekxmpp/basexmpp.py (ERROR)
and so on
Other errors are:
pyasn1.error.PyAsn1Error: <TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6f487190 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1> 2018-10-29 13:10:07 WARNING (SyncWorker_4) [custom_components.climate.nefit] Nefit api returned invalid data: ‘NoneType’ object is not subscriptable 2018-10-29 13:10:10 ERROR (read_thread) [sleekxmpp.xmlstream.xmlstream] Connection error. 2018-10-29 13:10:10 ERROR (read_thread) [sleekxmpp.basexmpp] <TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6feede10 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1> Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1492, in _process if not self.__read_xml(): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1564, in __read_xml self.__spawn_event(xml) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1632, in __spawn_event handler.prerun(stanza_copy) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py”, line 64, in prerun self.run(payload, True) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py”, line 76, in run self._pointer(payload) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/features/feature_starttls/starttls.py”, line 64, in _handle_starttls_proceed if self.xmpp.start_tls(): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 889, in start_tls cert.verify(self._expected_server_name, self._der_cert) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py”, line 134, in verify cert_names = extract_names(raw_cert) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py”, line 73, in extract_names asn1Spec=OctetString())[0] File “/usr/local/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py”, line 1318, in call ‘%s not in asn1Spec: %r’ % (tagSet, asn1Spec) pyasn1.error.PyAsn1Error: <TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6feede10 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1> 2018-10-29 13:10:20 ERROR (read_thread) [sleekxmpp.xmlstream.xmlstream] Connection error. 2018-10-29 13:10:20 ERROR (read_thread) [sleekxmpp.basexmpp] <TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6feedc10 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1> Traceback (most recent call last): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1492, in _process if not self.__read_xml(): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1564, in __read_xml self.__spawn_event(xml) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 1632, in __spawn_event handler.prerun(stanza_copy) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py”, line 64, in prerun self.run(payload, True) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py”, line 76, in run self._pointer(payload) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/features/feature_starttls/starttls.py”, line 64, in _handle_starttls_proceed if self.xmpp.start_tls(): File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py”, line 889, in start_tls cert.verify(self._expected_server_name, self._der_cert) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py”, line 134, in verify
cert_names = extract_names(raw_cert) File “/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py”, line 73, in extract_names asn1Spec=OctetString())[0] File “/usr/local/lib/python3.6/site-packages/pyasn1/codec/ber/decoder.py”, line 1318, in call ‘%s not in asn1Spec: %r’ % (tagSet, asn1Spec) pyasn1.error.PyAsn1Error: <TagSet object at 0x705ac2b0 tags 0:32:16> not in asn1Spec: <OctetString schema object at 0x6feedc10 tagSet <TagSet object at 0x731ad250 tags 0:0:4> encoding iso-8859-1>