question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Smart Meter Texas SSL Certificate Verification Error

See original GitHub issue

The problem

Smart Meter Texas integration has been working (including with Energy Dashboard since 40348 was resolved but as of late yesterday, is now reporting Failed to Connect with an SSL Certificate Error.

What is version of Home Assistant Core has the issue?

core-2021.10.2 and core-2021.10.4

What was the last working version of Home Assistant Core?

core-2021.10.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Smart Meter Texas

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smart_meter_texas/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.config_entries
Source: components/smart_meter_texas/__init__.py:49
First occurred: 12:59:56 PM (1 occurrences)
Last logged: 12:59:56 PM

Error setting up entry NateEaton for smart_meter_texas
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport
    await waiter
  File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 528, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata
    self._sslobj.do_handshake()
  File "/usr/local/lib/python3.9/ssl.py", line 944, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'smartmetertexas.com'. (_ssl.c:1129)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/smart_meter_texas/__init__.py", line 49, in async_setup_entry
    await smart_meter_texas_data.client.authenticate()
  File "/usr/local/lib/python3.9/site-packages/smart_meter_texas/__init__.py", line 196, in authenticate
    await self._init_websession()
  File "/usr/local/lib/python3.9/site-packages/smart_meter_texas/__init__.py", line 147, in _init_websession
    await self.websession.get(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/connector.py", line 971, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host smartmetertexas.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'smartmetertexas.com'. (_ssl.c:1129)")]

Additional information

This integration has been working fine since July and stopped working last night (2021.10.11 about 9pm CT), still not working this afternoon even after updating Core from 2021.10.2 to 2021.10.4. I am able to log into my account on smartmetertexas.com.

July Screenshot 2021-10-12 4 28 13 PM

Yesterday Screenshot 2021-10-12 4 26 48 PM

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:8
  • Comments:119 (9 by maintainers)

github_iconTop GitHub Comments

9reactions
johnavichcommented, Oct 14, 2021

Called their help line, they escalated the ticket to their L2 team, who deals with API and such. I was given an ETA of 48h for a fix, so we should just buckle down.

On that note, i’ve been looking through the code, and cannot locate where it looks for the domain to connect to. If someone could point that out, i’d be grateful.

9reactions
johnavichcommented, Oct 13, 2021

This issue was caused by SmartMeterTexas.com SSL Renewal process. They didn’t include the SAN for “smartmetertexas.com”, and only included “www.smartmetertexas.com”. I have already emailed SMT support about their SSL issue(s), and hope to get a reply soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smart Meter Texas problem - Home Assistant Community
I'm having problems with the Smart Meter Texas integration. ... Smart Meter Texas SSL Certificate Verification Error.
Read more >
SMT Interface Guide - Smart Meter Texas
A minimum of one signed registered API SSL certificate to the SMT Entity Account owner ... {"error":"Basic authentication header is missing."}.
Read more >
SMART METER TEXAS SMART METER TEXAS - ERCOT.com
Smart Meter Texas In-Home Device Guide ... also includes SMT requirements for CA issued certificates (SSL and Signer Cert) in its production.
Read more >
111111 11 HMI II Control Number: 47472 - PUC Interchange
Cost and Design of Smart Meter Texas" in PUCT Project 42786.1 Awesome ... Error messages from SMT are not informative in solving a...
Read more >
Smartmetertexas.com
Smart Meter Texas API Implementation for Node-Red and Home Assistant - GitHub ... Smart Meter Texas SSL Certificate Verification Error. The Smart Meter ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found