[SOLVED]Error opening url:

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
BertB
Posts: 224
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

[SOLVED]Error opening url:

Post by BertB » Wednesday 01 August 2018 16:32

I have read a lot about this issue, but have not yet found an answer.
RPI 3B
Domoticz V4.9796

I use a Domoticz switch to configure a display in an ESPEasy device.
When the switch is on, it sends in the On action :

Code: Select all

http://192.168.0.76/control?cmd=NEXTION,page0.vFont.val=1
In the Off action

Code: Select all

http://192.168.0.76/control?cmd=NEXTION,page0.vFont.val=0
When I entere these commands in a web browser, I get no error message.
When I push the switch, I get:

Code: Select all

2018-08-01 16:29:44.203 Status: User: Admin initiated a switch command (293/RFLVijferpomp/Off)
[u]2018-08-01 16:29:44.933 Error: Error opening url: http://192.168.0.76/control?cmd=NEXTION,page0.vFont.val=0 [/u]
Strangely enough, the correct action is done in the ESPEasy device.

I use this method quite some time now, but I cannot remember this error before.
Last edited by BertB on Thursday 13 September 2018 19:00, edited 1 time in total.

Bochets34
Posts: 3
Joined: Wednesday 07 March 2018 15:53
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Error opening url:

Post by Bochets34 » Thursday 13 September 2018 15:42

Hi,

did you fix your issue ?

I have similar trouble, issuing the http://192.168.1.103:559/api/relay/0?ap ... 51&value=1 command from Web browser works just fine, doesn't work anymore from a Domoticz switch.

Error is

Code: Select all

2018-09-13 15:40:10.411 Error: Error opening url: http://192.168.1.103:559/api/relay/0?apikey=015ED241B70C7151&value=1
Olivier

BertB
Posts: 224
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

Re: Error opening url:

Post by BertB » Thursday 13 September 2018 19:00

Yes, my problem was caused by a missing answer statement in ESPEasy.

Vulpecula
Posts: 4
Joined: Wednesday 18 October 2017 14:25
Target OS: Raspberry Pi
Domoticz version: V3.8153
Contact:

Re: Error opening url:

Post by Vulpecula » Monday 29 October 2018 17:39

And how did you solve that ESPEasy returns an answer statement? I have the same error, but the functionality is working. I want to avoid unneccessary error messages.

BertB
Posts: 224
Joined: Tuesday 24 June 2014 19:02
Target OS: Raspberry Pi
Domoticz version:
Location: struggling and stumbling. Amsterdam area
Contact:

Re: [SOLVED]Error opening url:

Post by BertB » Monday 29 October 2018 20:24

It is solved in the later beta releases of ESPEasy.
The NEXTION plugin required an extra line (with SendStatus) in the Write section:

Code: Select all

        if (tmpString.equalsIgnoreCase(getTaskDeviceName(event->TaskIndex)) == true) { // If device names match we have a command to write.
            argIndex = string.indexOf(',');
            tmpString = string.substring(argIndex + 1);
            sendCommand(tmpString.c_str(), HwSerial);

            String log;
            log.reserve(110);                           // Prevent re-allocation
            log = F("NEXTION075 : WRITE = ");
            log += tmpString;
            #ifdef DEBUG_LOG  
              addLog(LOG_LEVEL_INFO, log);
            #endif
            SendStatus(event->Source, log);             // Reply (echo) to sender. This will print message on browser. <============
           success = true;                             // Set true only if plugin found a command to execute.
        }
        break;
    }

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests