The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.14-1~deb10u1 (Linux)
File Line Function
/showthread.php 895 errorHandler->error



  • 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using API webserver send page "message":"failed"
#1
Hi

What is wrong?

my
pilight-Version is v7.0-10-ge774832 (nightly)


my config.json
Code:
"Switch3": {
            "protocol": [ "brennenstuhl" ],
            "id": [{
                "systemcode": 27,
                "unitcode": 4
            }],
            "state": "off"
        },
my send message:
Code:
{\"action\":\"control\",\"code\":{\"device\":\"Switch3\",\"state\":\"off\"}}
translated as
Code:
http://172.29.152.54:8686/send?%7B%22action%22%3A%22control%22%2C%22code%22%3A%7B%22device%22%3A%22Switch3%22%2C%22state%22%3A%22on%22%7D%7D
****** response data = {"message":"failed"}


with code in the browser
with contol not send
Code:
http://172.29.152.54:8686/control?device=Switch3&state=on
****** response data = {"message":"success"}

what am I doing wrong in an earlier version everything worked.

I have no idea.
in pilight.err and pilight.log are no errors
 
Reply
  


Messages In This Thread
Using API webserver send page "message":"failed" - by fips - 01-06-2016, 07:51 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Can't send or receive on Raspberry Pi Zero W ChristophH 12 460 04-09-2020, 06:34 PM
Last Post: curlymo
  pilight-send seems successful but doesn't actually send RF signal ayeyebrazov 37 2,025 03-31-2020, 01:02 PM
Last Post: curlymo
  ERROR: failed to read config. stack: 2 Stefan 6 400 02-03-2020, 09:37 PM
Last Post: curlymo
  failed to run command zlin50 4 351 01-03-2020, 10:32 PM
Last Post: zlin50
  NOTICE: 433gpio send buffer full HuberDe 3 439 10-31-2019, 12:10 PM
Last Post: curlymo
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 878 10-18-2019, 10:25 PM
Last Post: DominikB1993
  [Already fixed in 8.1.2] Loss of webserver-connection Ulrich.Arnold 34 4,821 08-02-2019, 02:25 PM
Last Post: curlymo
  pilight-send does not stop (terminate) va13 3 969 05-15-2019, 06:06 PM
Last Post: curlymo
  WebSocket connection failed: One or more reserved bits gregnau 8 3,118 02-16-2018, 10:02 PM
Last Post: curlymo
  RSL366 receive fine, can't send? pukington 2 881 02-15-2018, 11:04 AM
Last Post: pukington

Forum Jump:


Browsing: 1 Guest(s)