Hi,
I have recently started to utilie Home Assistant to bring together my different smart home devices and run more complex automations - so far so good! I have HA running on a Raspberry Pi with integrations to Alexa (not using Home Assistant Cloud), Smart Things (for my washing machine), my Asus Router (for home presence detection), ZHA for a couple of Aqara light switches, Sony TV and playstation, and Tuya.
I have both the Tuya and the Local Tuya integrations set up as I would ultimately prefer to move wholesale to Local Tuya (where I cannot replace devices using WiFi with Zigbee equivalents), however I have expereinced some challenges with this where my Coredy Vacuum cleaner seems to be particularly difficult to get working in Local Tuya. Also, in some instances entities will be come unavailable in Local Tuya but remain available in full Tuya so until I can get it working reliable I would like both to continue to operate on the same devices to ensure the best possible chance of automations executing correctly. This is particularly important for the fused spur operating my immersion heater - I need to ensure it is turned on and off correctly at the correct times.
I have purchased a domain name to use rather than using duckdns as this was causing me an issue with the SmartThings integration which would not recognise the duckdns domain as being valid, and have a valid LetsEncrypt certificate installed for my domain.
This has all been working fine for the last few weeks, however last night I lost control of all my Tuya devices through both the Local and Cloud integrations. Tuya devices work correctly through the Smart Life application and through the direct Alexa integration to Tuya, but both integrations in Home Assistant show Failed to setup, will retry.
I have checked that the subscriptions have not expired in the Tuya IOT developer portal, that all seems to be fine, and also re-authorised to no avail.
The key to this all seems to be in the following log entry:
‘’’’
2023-10-05 14:24:34.959 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘neil.willingham@e*********s.co.uk’ for tuya integration not ready yet: HTTPSConnectionPool(host=‘openapi.tuyaeu.com’, port=443): Max retries exceeded with url: /v1.0/iot-01/associated-users/actions/authorized-login (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)’))); Retrying in background
‘’’’
A very similar entry seems to appear for the Local Tuya entry also. It looks as tough there is some sort of issue with the certificate installed on my Home Assistant instance, but I cannot for the life of me discover where?
Can anybody offer me any guidance on resolving this issue, or advise if I’m barking up completely the wrong tree?
Thanks
Neil