epoplavskis / homeassistant_salus

Home Assistant integration with Salus devices
MIT License
48 stars 17 forks source link

Unavailable entries after reboot. #11

Closed bse4792 closed 3 years ago

bse4792 commented 3 years ago

Hi I'm facing a weird problem.

All is working well and fine when I install via hacs. I add the integration give key and ip, all entries comes and changeable.

But when I restart HA, then all entries becomes unavailable. Then I can remove and add integration and then it's working fine.

I have tried reinstall via hacs, but nothing seems to work.

Kindly Daniel

jvitkauskas commented 3 years ago

Can you see any errors in the logs? Also, are you sure IP of the gateway remains the same?

How are you restarting HA? Supervisor -> System -> Reboot host?

bse4792 commented 3 years ago

Hi I just removed integration now and reintegrated it to be sure it was OK and working.

Was working perfectly before reboot but after not.

Screenshot_20210219-175934 Here is the log after normal reboot as you described never do it in other ways.

bse4792 commented 3 years ago

It also come with this error

Screenshot_20210219-180631

bse4792 commented 3 years ago

Here is proof it's working prereboot

Screenshot_20210219-205003 Screenshot_20210219-205018 Screenshot_20210219-205046

jvitkauskas commented 3 years ago

Some questions you can answer to help me reproduce this:

bse4792 commented 3 years ago

VM on esxi 6.0 with image from home assistant. So obviously wired ethernet.

wired ethernet on uge600 but WiFi credentials are added

Configuration -> server control -> reboot

bse4792 commented 3 years ago

Screenshot_20210219-221506

marithpl commented 3 years ago

I've got the same problem. Usually after fresh start of Home Assistant the Salus Thermostats are unavailable.

2021-02-24 11:15:32 ERROR (MainThread) [custom_components.salus] Authentication error: check if you have specified gateway's EUID correctly.

Usually restart HA from UI helps, but not always.

My config is: Home Assistant installed via Docker on Synology NAS Salus Gateway conntected via Wi-Fi with strong signal

jvitkauskas commented 3 years ago

Unfortunately I can't reproduce this, think I'll do a 3 time connection retry. Maybe it would help.

jvitkauskas commented 3 years ago

I've added a simple 3 time retry with 3 second delay between retries.

jvitkauskas commented 3 years ago

@bse4792 @marithpl have you tried new version? Did it solve your problems?

bse4792 commented 3 years ago

Hi @jvitkauskas yes i have tried, but it did not resolve the problem.

i'm considering trying a new HA install just to test, if that is my problem

jvitkauskas commented 3 years ago

It sucks that I cannot reproduce this myself. Maybe one of you have access to a smart(er) switch with port mirroring and could set up wireshark to see how many connection attempts/requests are being sent to gateway and of they timeout or whatnot. Or just dump tcp traffic destined to salus gateway on the home assistant machine.

bse4792 commented 3 years ago

i'm getting a dream mashine some time this week and will resetup my wifi/network completely

if you could help me with tcp trafic dump then it would be helpful.

as of now i'm using pfsense in VM and i'm expecting that to cause some problems. can you send private massage then we can take this a bit more secure

marithpl commented 3 years ago

Recently I didn't observe this problem.

bse4792 commented 3 years ago

seams to be working now