Http binding - connection reset

Hi,
I have a defined item
Switch LOCALWEATHER_observerreboot { http=">[ON:POST:http://192.168.1.5/msgreboot.htm]" }

and when the item turns ON (I do this by a rule at 1pm) it would like that the URL is called. (SImply accessing the URL does reboot a device and is needed as the device gets unstable after a while)

However the log shows:
2019-12-25 23:00:00.160 [ERROR] [org.openhab.io.net.http.HttpUtil ] - Fatal transport error: java.net.SocketException: Connection reset

  1. Anybody knows what I am doing wring?
  2. If you see a much simpler solution (e.g. without a item at all) to just “call” a URL at a given time please let me know.

thanks

You can do it in a rule using the Http action:

This seems an unsurprising result? Meaning, you’re not doing anything wrong - you reboot, you lose connection for a while.

1 Like

ahh ok
means it actually works … maybe :wink:
I will double check … thanks :slight_smile:

Presumably you have other Items for actual data from this device? You might need to do something to get them to recover after unexpected reset.

http binding + regex reads another html page from that device to my weatherstation items .
I think the http binding just would throw a single error when it reads during the reboot and it should work once the reboot is done without any further hacks… hopefully