h4de5 / home-assistant-vimar

VIMAR by-me integration into home-assistant.io
GNU General Public License v3.0
44 stars 7 forks source link

[SETUP] #4

Closed lollo03 closed 4 years ago

lollo03 commented 4 years ago

The error:

2020-06-08 13:03:11 INFO (MainThread) [custom_components.vimar_platform.vimarlink] Vimar link initialized

2020-06-08 13:03:11 ERROR (SyncWorker_16) [custom_components.vimar_platform.vimarlink] Other error occurred: SSLError(MaxRetryError('HTTPSConnectionPool(host=\'192.168.1.110\', port=443): Max retries exceeded with url: /vimarbyweb/modules/system/user_login.php?sessionid=&username=ha&password=ha&remember=0&op=login (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))

2020-06-08 13:03:13 ERROR (MainThread) [custom_components.vimar_platform] Could not connect to Vimar Webserver 192.168.1.110

How can I force an HTTP connection at my webserver? Or, alternatively, how can I fix my SSL certificate?

My config:

vimar_platform:
  username: ha
  password: ******
  host: 192.168.1.110
  schema: http
  port: 80

Setup

Thank you for your help. I very much appreciate this project.

h4de5 commented 4 years ago

Hello. i just tried out http connection and it seems this option can be removed - the webserver is always forwarding to https.

try this config:

vimar_platform:
  username: ha
  password: ******
  host: 192.168.1.110
  schema: https
  port: 443
lollo03 commented 4 years ago

I tried, still won't work.

2020-06-08 14:42:00 INFO (MainThread) [custom_components.vimar_platform.vimarlink] Vimar link initialized
2020-06-08 14:42:00 ERROR (SyncWorker_4) [custom_components.vimar_platform.vimarlink] Other error occurred: SSLError(MaxRetryError('HTTPSConnectionPool(host=\'192.168.1.110\', port=443): Max retries exceeded with url: /vimarbyweb/modules/system/user_login.php?sessionid=&username=ha&password=ha&remember=0&op=login (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'tls_process_server_certificate\', \'certificate verify failed\')])")))'))
2020-06-08 14:42:02 ERROR (MainThread) [custom_components.vimar_platform] Could not connect to Vimar Webserver 192.168.1.110
2020-06-08 14:42:02 ERROR (MainThread) [homeassistant.setup] Error during setup of component vimar_platform
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 171, in _async_setup_component
    hass, processed_config
  File "/config/custom_components/vimar_platform/__init__.py", line 110, in async_setup
    raise PlatformNotReady
homeassistant.exceptions.PlatformNotReady

This is my webserver configuration... image Is okay? I tried also to use the webserver local IP instead of the duckdns one. Still won't work. Also, when I try to access the webserver I have this error: image

h4de5 commented 4 years ago

see my answer over there: https://github.com/h4de5/VimarWebserverApi/issues/1#issuecomment-640590554

it seems there is a problem during downloading the certificate it self .

lollo03 commented 4 years ago

It still won't work. Maybe a web server update will help (I'm on currently v1.13.0 )?

h4de5 commented 4 years ago

oh. I see - i though I already asked about that. I only tested it so far with the latest one - v1.25.

lollo03 commented 4 years ago

Ok, I tried, now I only have to figure out how to obtain the XML file because the webserver wants it. Do you have any advice?

alfienero commented 4 years ago

Ciao Lollo, to get your XML file you need to load the plant configuration file (.db) on EasyToolProfessional and to export XML from there

lollo03 commented 4 years ago

Unfortunately, I have only the webserver DB... and I don't have any equipment to connect to my central.

alfienero commented 4 years ago

You should ask the installer to provide you the file, Have you solved the config/certificate issue? Is the vimar_platform starting?

h4de5 commented 4 years ago

:( this sounds very bad. If you do not have your own db or the xml file, the webserver won't come up correctly. didn't the webserver warn you about having a backup?

lollo03 commented 4 years ago

I made the database backup but he wants the XML file. I tried to restore de database but it didn't work. I call the installer and let him send me the file.

h4de5 commented 4 years ago

I am not sure - but I think you can export the xml file directly from EasyToolProfessional - https://www.vimar.com/de/int/easytool-professional-11527162.html first load the db there and then export it as xml. havn't done this since I did the initial setup.

alfienero commented 4 years ago

Yes Andi I confirm you that you can export xml from EasyTool, I did it because xml is needed for the Ilevia software installation.

lollo03 commented 4 years ago

I am not sure - but I think you can export the xml file directly from EasyToolProfessional - https://www.vimar.com/de/int/easytool-professional-11527162.html first load the db there and then export it as xml. havn't done this since I did the initial setup.

I have only the web-server database :( I can still do it?

alfienero commented 4 years ago

if you are unable to get .db from the installer, you can buy the vimar interface to connect pc to by me module, maybe is unexpensive now that the new webserver is out

lollo03 commented 4 years ago

I will try, thank you for your help and congrats for this awesome project. I would like to help with the development.

h4de5 commented 4 years ago

Thanks for the support. I really hope you get the webserver working up and running again :/

alfienero commented 4 years ago

I don't know if I got your problem (just webserver software update, right?) However as far as I can remember I've always updated webserver firmware using downloaded firmware files (vimar site) and never asked me for reloading xml or maybe some alert prompted, but in the end I never used xml files: the webserver itself took again the file that already has without any action