fashberg / WThermostatBeca

Open Source firmware replacement for Tuya Wifi Thermostate from Beca and Moes with Home Assistant Autodiscovery
339 stars 70 forks source link

MQTTS is not working (with self signed certificates?) #81

Closed Lovely-Maisonette closed 2 years ago

Lovely-Maisonette commented 3 years ago

My Configuration: MQTT Devices -> Mosquitto -> Home Assistant WThermostat 1.19.beta1-fas

This is fully working for all my MQTT devices over SSL without problems. This is fully working for this firmware/device, if I turn off encryption (I need to tell publishers and subscriber to use tls insecure mode)

This device/firmware fails if I turn SSL on, with: MQTT | 1606356324: OpenSSL Error[0]: error:140260FC:SSL routines:ACCEPT_SR_CLNT_HELLO:unknown protocol This strongly suggest that it may be rejecting Self signed certificates

Maybe we need an option to run openssl with tls_insecure.

I use mostly ESPHome, this firmware seems to be based on Tasmota, after researching a little I found this https://github.com/issacg/tasmota-fingerprint

It seems that Tasmota firmwares can be helped if one provides the certificate fingerprint. A field to place this fingerprint in the configuration, may be another solution.

github-actions[bot] commented 2 years ago

Message to comment on stale issues. If none provided, will not mark issues stale