http: C001 cnnection failed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

http: C001 cnnection failed

#1 Post by ewaldharmsen » 07 Apr 2023, 19:27

I have added domoticz as a controller.
I always get this error:
http: C001 cnnection failed
and the device does not get updated in domoticz.
I also tried the generic http controller with this Controller Publish command:

Code: Select all

/json.htm?param=udevice&type=command&idx=%id%&nvalue=0&svalue=%value%
That does not work either:
EVENT: http#192.168.1.200=404
In both cases I am sure the ip and port is ok.

SendToHTTP does work:

Code: Select all

on DS18b20#Temperature do
 SendToHTTP, 192.168.1.200,8080,/json.htm?param=udevice&type=command&idx=61&nvalue=0&svalue=[DS18b20#Temperature]
 endon
What goes wrong?

I run 20230306 - Mega on a Sonoff Dual R2

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: http: C001 cnnection failed

#2 Post by Ath » 07 Apr 2023, 19:33

The 404 error suggests that the Domoticz server isn't reachable from where your ESP is, are you using the ip-address or a hostname for that server?
And please also enable HTTP support on Domoticz, next to HTTPS, and configure that HTTP port (usually 8080) on ESPEasy as we don't support the HTTPS protocol (yet).

As an alternative, you could install a MQTT server (usually Mosquitto is used on the same RPi that Domoticz is running on), and use the Domoticz MQTT controller instead.
/Ton (PayPal.me)

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: http: C001 cnnection failed

#3 Post by ewaldharmsen » 15 Apr 2023, 07:19

Well I do have http enable as sendHTTP is working…

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: http: C001 cnnection failed

#4 Post by Ath » 15 Apr 2023, 10:07

Can you share the configuration page of the Domoticz HTTP controller? (unmasked screenshot, attached to this thread, please)
/Ton (PayPal.me)

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: http: C001 cnnection failed

#5 Post by ewaldharmsen » 01 May 2023, 07:36


User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: http: C001 cnnection failed

#6 Post by Ath » 01 May 2023, 08:36

Can you please attach the screenshot in the forum? External services tend to 'lose' those images after a while, and throw adds at you when trying to view the image.
/Ton (PayPal.me)

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: http: C001 cnnection failed

#7 Post by ewaldharmsen » 03 May 2023, 06:42

Image
Ath wrote: 01 May 2023, 08:36 Can you please attach the screenshot in the forum? External services tend to 'lose' those images after a while, and throw adds at you when trying to view the image.
I don’t know how to do that

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: http: C001 cnnection failed

#8 Post by Ath » 03 May 2023, 10:10

ewaldharmsen wrote: 03 May 2023, 06:42 I don’t know how to do that
There is an Attachments tab, below the Post a Reply edit box:
Screenshot - 3-05-2023 , 10_08_16.png
Screenshot - 3-05-2023 , 10_08_16.png (12.85 KiB) Viewed 1391 times
/Ton (PayPal.me)

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: http: C001 cnnection failed

#9 Post by ewaldharmsen » 14 Jul 2023, 14:21

Flashed it with todays latest version and it works now

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: http: C001 cnnection failed

#10 Post by Ath » 14 Jul 2023, 15:22

ewaldharmsen wrote: 14 Jul 2023, 14:21 Flashed it with todays latest version and it works now
Great, but I'm still interested what actually caused the issue, might you find that.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests