ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 31 forks source link

HA cannot connect to Bosch cloud #29

Closed liquid-motion closed 2 years ago

liquid-motion commented 3 years ago

Problem Even with the changes in place in /etc/ssl/openssl.cnf, Hassio is not able to connect to the Bosch cloud. I keep getting the double notification error on my Raspberry Pi:

Unexpected disconnect of [xxx] with Bosch server. Try to reconnect.. Did not succeed in connecting [xxx] to Bosch cloud after retrying 3 times. Retry in 30 seconds.

This was working for quite some time now, but now all of a sudden the problems are back.

I'm on HA 0.116.4.

pitoganzado commented 3 years ago

I'm getting the same behavior even after 0.117.0 upgrade.

pitoganzado commented 3 years ago

Fix my issues removing:

MinProtocol = None CipherString = DEFAULT

from the file /etc/ssl/openssl.cnf

AdeZwart commented 3 years ago

I have the same issue running 0.117.0. A restart of Home Assistant solved it for about a day or so. I'm now trying the approach of @pitoganzado, by removing the suggested config from openssl.cnf.

AdeZwart commented 3 years ago

Today it started throwing errors again. So removing the MinProtocol and CipherString worked for 5 days for me.

liquid-motion commented 3 years ago

It doesn't work at all for me. With or without the modifications in openssl. What I do notice is that sometime when the errors are thrown (what is 9 times out of 10 after a reboot again), the integration is working correctly. So maybe the timeout needs to be changed? Or the error is passed along to quickly to Hassio?

daveweb commented 3 years ago

Same issue here. Does someone have the answer?

liquid-motion commented 3 years ago

Problem still persist in 2020.12.2...

MHOMEASS commented 3 years ago

I had this problem for long time. Then I upgraded from RPI3 to RPI4 and that solved it for me.

Wollli commented 3 years ago

I had this problem for long time. Then I upgraded from RPI3 to RPI4 and that solved it for me.

I'M running 2020.12.2 on an RASPI 4 and it does not run at all, always the same error message, with or without openssl modification. May be the used login serial / accesskey / password is somehow wrong ? May be I misunderstood something because I did not set anywhere the IP of the "EasyControl" ? Or is it found by the serial number ? Or how ?

ksya commented 3 years ago

I had this problem for long time. Then I upgraded from RPI3 to RPI4 and that solved it for me.

I'M running 2020.12.2 on an RASPI 4 and it does not run at all, always the same error message, with or without openssl modification. May be the used login serial / accesskey / password is somehow wrong ? May be I misunderstood something because I did not set anywhere the IP of the "EasyControl" ? Or is it found by the serial number ? Or how ?

This integration is for the Nefit Easy, not the Bosch EasyControl, which is the successor of the Nefit Easy. They probably work with the same tech, but I cannot test it and make it work since I don't have it.

liquid-motion commented 3 years ago

I had this problem for long time. Then I upgraded from RPI3 to RPI4 and that solved it for me.

I ordered a RPI4. Let's see if that will solve my problem.

liquid-motion commented 3 years ago

Problem hasn't occured anymore since I switched to rPi4!

Salvora commented 3 years ago

I am getting two notifications every time I restart HA. In addition to that, I am having performance issues. Sometimes, setting temp does not register with the add-on and it goes back to previous value.

I have also noticed that I am getting "boiler cannot transfer heat to central heating" on the nefit status state.

rpi4 8gb Home Assistant OS 5.10 core-2021.1.5

Tried adding MinProtocol = None CipherString = DEFAULT to openssl.cnf but it is not persistant.

Does this even necessary anymore?

ksya commented 3 years ago

I have also noticed that I am getting "boiler cannot transfer heat to central heating" on the nefit status state.

Beware that this is an issue with your boiler!

Is anyone still having issues?

RobBie1221 commented 3 years ago

I have also noticed that I am getting "boiler cannot transfer heat to central heating" on the nefit status state.

Beware that this is an issue with your boiler!

It's not even an issue. If you only use thermostatic valves and there is no radiator in need of heat, obviously the boiler cannot transfer heat to central heating. It's a valid state of the system. If I'm correct, the same message appears when outbound and inbound water have same temperature. Than also no heat is transfered and the boiler goes to a waiting state.

Salvora commented 3 years ago

I have also noticed that I am getting "boiler cannot transfer heat to central heating" on the nefit status state.

Beware that this is an issue with your boiler!

It's not even an issue. If you only use thermostatic valves and there is no radiator in need of heat, obviously the boiler cannot transfer heat to central heating. It's a valid state of the system. If I'm correct, the same message appears when outbound and inbound water have same temperature. Than also no heat is transfered and the boiler goes to a waiting state.

Dear Sir, What you said totally makes sense. It is just that the message is a little bit negative so I took it as an error.

Regarding OpenSSL setting, does this work?

AdeZwart commented 3 years ago

I have also noticed that I am getting "boiler cannot transfer heat to central heating" on the nefit status state.

Beware that this is an issue with your boiler!

Is anyone still having issues?

Yes. Varying results. Sometimes multiple times a day, sometimes not for a couple of days. ~Today I don't seem to get it working at all.~ It got to work again, but still with connections every now and then.

I'm running Home Assistant Core 2021.2.1 in a docker container.

Salvora commented 3 years ago

Regarding the connection issue: Around 90 percent of the time, whenever I restart HA, I am getting this parse error with slixmpp

Any idea what it is about?

2021-02-20 22:06:13 ERROR (MainThread) [slixmpp.xmlstream.xmlstream] Parse error: b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="wa2-mz36-qrmzh6.bosch.de" id="140rl0jjkb" xml:lang="en" version="1.0"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/></stream:features>'
2021-02-20 22:06:13 ERROR (MainThread) [slixmpp.xmlstream.xmlstream] Parse error: b'<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09IndhMi1tejM2LXFybXpoNi5ib3NjaC5kZSIsbm9uY2U9ImdFSW9nZUNLUFpxUXJOVkVZTTRHcnI1VC8vWWQxeTE3dVAxY2puUFIiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>'
2021-02-20 22:06:13 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/slixmpp/xmlstream/xmlstream.py", line 521, in _consume_send_queue_before_disconnecting
    self.schedule('Disconnect wait', wait,
  File "/usr/local/lib/python3.8/site-packages/slixmpp/xmlstream/xmlstream.py", line 875, in schedule
    raise ValueError(
ValueError: There is already a scheduled event of name: Disconnect wait
2021-02-20 22:06:13 ERROR (MainThread) [slixmpp.xmlstream.xmlstream] Parse error: b'</stream:stream>'
2021-02-20 22:06:13 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/slixmpp/xmlstream/xmlstream.py", line 521, in _consume_send_queue_before_disconnecting
    self.schedule('Disconnect wait', wait,
  File "/usr/local/lib/python3.8/site-packages/slixmpp/xmlstream/xmlstream.py", line 875, in schedule
    raise ValueError(
ValueError: There is already a scheduled event of name: Disconnect wait