Rest platform error

Since this morning I get the following error: Platform rest not ready yet: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c: 1129); Retrying in background in 30 seconds

Can anybody confirm this?

A REST towards what?
Obviously, whatever you’re trying to reach has an expired certificate…

I thought the rest platform had a certificate that has expired.
But your point of view is more logical.
Its: https://www.luen-ni.de/JSON.txt

EDIT: Its seems the page security-certificate has expired. Can I do something against it?

“verify_ssl” (RESTful Sensor - Home Assistant) to false might do, assuming it disables both host and expiry validation, but usually this kind of setting only disable host verification.

Thank you for your help. Unfortunately it didn’t work. (see below) I will now wait for the site operator to update the certificate.

sensor.yaml
- platform: rest
scan_interval: 600
name: “Wetterstation OL-Sued”
resource: https://www.luen-ni.de/JSON.txt
verify_ssl: false
json_attributes_path: “$.messwerte[2].messstellen[2]”
json_attributes:
- kennung
- luftqualitaet
- verlauf
value_template: “{{ value_json.zeit }}”

HA LOG: Platform rest not ready yet: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129); Retrying in background in 30 seconds
14:14:36 – (WARNUNG) Sensor

Then, I guess you are stuck until they renew their certificate…
If you have a contact point, you can try to wake them up.

Since the certificate is apparently only valid for three months, I assume that it will be renewed quickly :slight_smile:
certificate