Logic - Make a HTTP POST request - fails on certificate validation

I’m trying to get Logic to Make a HTTP POST, where:

Now all I get is that Homey is unable to validate the certificate.

request to https://192.168.100.219:4343/api/v1/dev/widget/update/com.lametric… failed, reason: unable to verify the first certificate.

This is probably due to that LaMetric using self-signed certificate. Is there a way to get Homey not validate certificates?

Found a work around using http on port 8080 on the LaMetric device. But never the less, is there a way to tell Homey to not validate certificates?

No.

I ran into a similar issue when trying to talk with Philips Hue’s v2 API (which is HTTPS only).

Has anyone found a fix?

You’re going to have to use HomeyScript and fetch().

Same issue there.

I assume you’re not telling it to ignore self-signed certificates, which you do like this:

const agent = new https.Agent({ rejectUnauthorized: false });
const response = await fetch(URL, { agent });