Error status not shown when http control message fails

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
MarcoC
Posts: 2
Joined: Wednesday 05 December 2018 3:44
Target OS: Raspberry Pi
Domoticz version:
Location: Sydney, Australia
Contact:

Error status not shown when http control message fails

Post by MarcoC » Wednesday 05 December 2018 4:04

I am new to Domoticz but have a background in Industrial Automation and SCADA systems.

I have implemented a system using Sonoff S20 switches reflashed with EasyESP. Domoticz is running on Rasperry Pi and using http proptocol to communicate to the Wifi smart plugs. This setup works well for 'normal' operations - Domoticz switches the smart switches on/off from the dashboard and the activation through the local manual pushbutton shows a changed state on the Domoticz dashboard.

However, I can't get a 'failed' message to show. An example situation - smart switch is powered off and I activate manual switch from the Domoticz dashboard. What I expect to see is that the http message cannot be delivered (as the Wifi device is not available) and the icon/dashboard should show and error, or at least no change in status. What I see happening is an http error in the log (cannot deliver) but the icon on the dashboard shows that the switch is activated. The software seems to be ignoring the failed message display and adopting an assumed state (ie, technically, open loop control rather than closed loop control).

This may something obvious I am missing, but what do I need to configure to take note of the failed message and show a 'failed' indicator on the dashboard? This seems like a basic bit of functionality that should just happen without further configuration required.

User avatar
waaren
Posts: 1352
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error status not shown when http control message fails

Post by waaren » Wednesday 05 December 2018 9:51

MarcoC wrote:
Wednesday 05 December 2018 4:04
... I can't get a 'failed' message to show. An example situation - smart switch is powered off and I activate manual switch from the Domoticz dashboard. What I expect to see is that the http message cannot be delivered (as the Wifi device is not available) and the icon/dashboard should show and error, or at least no change in status. What I see happening is an http error in the log (cannot deliver) but the icon on the dashboard shows that the switch is activated. The software seems to be ignoring the failed message display and adopting an assumed state (ie, technically, open loop control rather than closed loop control).
I am by no means an expert but what I understand is that the http communication from domoticz to the Sonoff is initiated by switching the virtual device, meaning the device is already set to the On / Off state before the http is send. From there on there is no longer a connection to the http and the switch and there is no information in the http call to reveal what the originator of the call is. So domoticz does not know what action to take if a "cannot deliver" (or other) error occurs than posting the error in the log.
In order to achieve what you suggest, scripting in any way or form will be required. Check this wiki article for an example.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

MarcoC
Posts: 2
Joined: Wednesday 05 December 2018 3:44
Target OS: Raspberry Pi
Domoticz version:
Location: Sydney, Australia
Contact:

Re: Error status not shown when http control message fails

Post by MarcoC » Wednesday 05 December 2018 10:37

Thanks for that. I'll give it a try.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests