• 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
Problems after upgrade with switching on and off multiple lamps consecutively
#1
Hi,

I’m currently in the process of expanding my home automation system. I would like to install piVCCU to connect my Homematic items to my Openhab2. Therefor I had to upgrade my Pi3 system from Jessie to Stretch, including the newest kernel. In this context, I got also an upgrade of pilight from 7.0 to 8.1.4.

Currently I'm using two different ways to switch on and off multiple lamps consecutively. The first way is a shell script,

Code:
#!/bin/bash


if [ $1 == "an" ]
then
pilight-send -p quigg_gt7000 -i 2816 -u 0 -t
sleep 0.3
pilight-send -p quigg_gt7000 -i 2816 -u 1 -t
sleep 0.3
pilight-send -p rsl366 -s 1 -u 1 -t
sleep 0.3
pilight-send -p rsl366 -s 1 -u 2 -t
sleep 0.3
pilight-send -p rsl366 -s 1 -u 3 -t
sleep 0.3
pilight-send -p intertechno_switch -u 1 -i 1 -t
else
pilight-send -p quigg_gt7000 -i 2816 -u 0 -f
sleep 0.3
pilight-send -p quigg_gt7000 -i 2816 -u 1 -f
sleep 0.3
pilight-send -p rsl366 -s 1 -u 1 -f
sleep 0.3
pilight-send -p rsl366 -s 1 -u 2 -f
sleep 0.3
pilight-send -p rsl366 -s 1 -u 3 -f
sleep 0.3
pilight-send -p intertechno_switch -u 1 -i 1 -f
fi

The second way is an Openhab rule.

Code:
rule "sSchalterWonzimmerKomplett"
when
Item sSchalterWonzimmerKomplett received command
then
if(receivedCommand == ON) {
Pilight_Send_Args.sendCommand("-p intertechno_switch -u 1 -i 1 -t") //Wandlampe
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterWandlampe.sendCommand(ON)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 2 -t") //Stehlampe
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterStehlampe.sendCommand(ON)
Pilight_Send_Args.sendCommand("-p quigg_gt7000 -u 0 -i 2816 -t") //Fenster Fernseher
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterFenterFernseher.sendCommand(ON)
Pilight_Send_Args.sendCommand("-p quigg_gt7000 -u 1 -i 2816 -t") //Glas Fenster
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterGlasFernseher.sendCommand(ON)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 3 -t") //Fenster vorne
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterFenterVorne.sendCommand(ON)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 1 -t") //Wand Wintergarten
sSchalterWintergartenWand.sendCommand(ON)
}
else {
Pilight_Send_Args.sendCommand("-p intertechno_switch -u 1 -i 1 -f") //Wandlampe
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterWandlampe.sendCommand(OFF)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 2 -f") //Stehlampe
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterStehlampe.sendCommand(OFF)
Pilight_Send_Args.sendCommand("-p quigg_gt7000 -u 0 -i 2816 -f") //Fenster Fernseher
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterFenterFernseher.sendCommand(OFF)
Pilight_Send_Args.sendCommand("-p quigg_gt7000 -u 1 -i 2816 -f") //Glas Fenster
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterGlasFernseher.sendCommand(OFF)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 3 -f") //Fenster vorne
while(Pilight_Send.state != OFF) Thread::sleep(100)
sSchalterFenterVorne.sendCommand(OFF)
Pilight_Send_Args.sendCommand("-p rsl366 -s 1 -u 1 -f") //Wand Wintergarten
sSchalterWintergartenWand.sendCommand(OFF)
}

while(Pilight_Send.state != OFF) Thread::sleep(100)

logInfo("sSchalterWonzimmerKomplett")
end

.things:

Code:
Thing exec:command:pilight-send [command="/usr/local/bin/pilight-send %2$s", interval=0, autorun=true]


Both ways worked fine with the old configuration. But after the upgrade and some little adaptions to get pilight running (SSDP issue), it is not possible to use one of these ways. At the moment maximum one lamp switches on, independently of the way. I used some sleeps() but nothing worked. I tried to use the pilight-daemon in debug mode and also set the log level, but I didn’t found any mistakes.

Last but not least, I tried to downgrade to 7.0 but until now, it didn't work. Maybe to less knowledge regarding Linux!?

Do you have any ideas?

/etc/pilight $ cat config.json:

Code:
{
        "devices": {},
        "rules": {},
        "gui": {},
        "settings": {
                "log-level": 6,
                "pid-file": "/var/run/pilight.pid",
                "log-file": "/var/log/pilight.log",
                "standalone": 0,
                "webserver-enable": 0,
                "webserver-root": "/usr/local/share/pilight/webgui",
                "webserver-http-port": 80,
                "webserver-https-port": 5002,
                "webserver-cache": 1,
                "whitelist": "",
                "gpio-platform": "raspberrypi3"
        },
        "hardware": {
                "433gpio": {
                        "sender": 3,
                        "receiver": 4
                }
        },
        "registry": {
                "webserver": {
                        "ssl": {
                                "certificate": {
                                        "location": "/etc/pilight/pilight.pem"
                                }
                        }
                },
                "pilight": {
                        "version": {
                                "current": "8.1.4"
                        }
                }
        }
}

Openhab (try to switch on):


Code:
[Feb 24 10:43:55:376208] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:55:376312] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:55:376346] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:55:479397] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37400
[Feb 24 10:43:55:479465] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:43:55:479493] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:43:55:479551] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:43:55:479632] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:43:55:479743] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"unit":1,"id":1,"on":1,"protocol":["kaku_dimmer"]}}
[Feb 24 10:43:55:480014] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:55:480017] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

300 3000 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 300 300 1200 300 1200 300 300 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 10200
[Feb 24 10:43:55:480151] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37400
[Feb 24 10:43:55:480168] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:55:480432] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:43:55:480463] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:43:56:152903] pilight-daemon: DEBUG: cpu: 1.421476%
[Feb 24 10:43:58:401764] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:401873] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:401906] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:443984] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:444132] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:444200] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:482177] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:482307] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:482370] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:43:58:509351] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37436
[Feb 24 10:43:58:509424] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:43:58:509447] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:43:58:509505] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:43:58:509584] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:43:58:510036] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":2,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:43:58:510280] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:510285] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:43:58:510364] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:510573] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37436
[Feb 24 10:43:58:510611] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:43:58:510636] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:43:58:549385] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37438
[Feb 24 10:43:58:549451] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:43:58:549472] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:43:58:549525] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:43:58:549613] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:43:58:550174] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"unit":1,"id":1,"on":1,"protocol":["kaku_dimmer"]}}
[Feb 24 10:43:58:550454] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:550467] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

300 3000 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 300 300 1200 300 1200 300 300 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 10200
[Feb 24 10:43:58:550618] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37438
[Feb 24 10:43:58:550620] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:550923] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:43:58:550956] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:43:58:589397] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37440
[Feb 24 10:43:58:589464] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:43:58:589488] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:43:58:589550] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:43:58:589636] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:43:58:590040] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"dimlevel":15,"unit":1,"id":1,"protocol":["kaku_dimmer"]}}
[Feb 24 10:43:58:590348] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:590349] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

300 3000 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 300 300 1200 300 300 300 300 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 1200 300 300 300 10200
[Feb 24 10:43:58:590522] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:43:58:590811] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"dimlevel":15,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:43:58:590848] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"arctech_dimmer","message":{"id":1,"unit":1,"dimlevel":15,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:43:58:590860] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37440
[Feb 24 10:43:59:152358] pilight-daemon: DEBUG: cpu: 2.198319%
[Feb 24 10:44:01:439085] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:439193] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:439223] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:459469] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:459557] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:459591] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:01:549388] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37462
[Feb 24 10:44:01:549456] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:01:549478] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:01:549537] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:01:549619] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:01:550059] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":0,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:44:01:550304] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:01:550303] pilight-daemon: DEBUG: **** RAW CODE ****
700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 700 1400 1400 700 81000
[Feb 24 10:44:01:550389] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:01:550547] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37462
[Feb 24 10:44:01:550638] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:01:550663] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:01:569515] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37464
[Feb 24 10:44:01:569586] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:01:569615] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:01:570032] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:01:570136] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:01:570459] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":2,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:44:01:570790] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:01:570826] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:44:01:570894] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:01:571272] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:01:571327] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:01:571371] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37464
[Feb 24 10:44:02:152564] pilight-daemon: DEBUG: cpu: 2.056231%
[Feb 24 10:44:04:460609] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:460723] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:460760] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:470678] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:470799] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:470835] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:04:569363] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37478
[Feb 24 10:44:04:569432] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:04:569454] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:04:569512] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:04:569595] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:04:569741] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":1,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:44:04:569976] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:04:569978] pilight-daemon: DEBUG: **** RAW CODE ****
700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 1400 700 81000
[Feb 24 10:44:04:570062] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:04:570337] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:04:570355] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37478
[Feb 24 10:44:04:570376] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:04:579794] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37480
[Feb 24 10:44:04:579866] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:04:579895] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:04:579977] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:04:580119] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:04:581502] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":0,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:44:04:581814] pilight-daemon: DEBUG: **** RAW CODE ****
700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 700 1400 1400 700 81000
[Feb 24 10:44:04:581895] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:04:581902] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:04:582211] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:04:582231] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37480
[Feb 24 10:44:04:582247] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:05:152424] pilight-daemon: DEBUG: cpu: 0.829200%
[Feb 24 10:44:07:429003] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:429095] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:429126] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:476325] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:476440] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:476530] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:07:539378] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37494
[Feb 24 10:44:07:539449] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:07:539470] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:07:539527] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:07:539602] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:07:539716] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":3,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:44:07:539939] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:07:539944] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:44:07:540035] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:07:540316] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:07:540335] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37494
[Feb 24 10:44:07:540348] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:07:589376] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37496
[Feb 24 10:44:07:589443] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:07:589463] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:07:589518] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:07:589593] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:07:590198] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":1,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:44:07:590456] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:07:590460] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 1400 700 81000
[Feb 24 10:44:07:590530] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:07:590806] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:07:590838] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:07:590978] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37496
[Feb 24 10:44:08:152442] pilight-daemon: DEBUG: cpu: 1.397222%
[Feb 24 10:44:10:490330] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:490490] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:490562] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:531819] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:531967] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:532007] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:540094] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:540196] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:540231] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:44:10:599342] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37530
[Feb 24 10:44:10:599410] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:10:599432] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:10:600183] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:10:600260] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:10:600446] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":1,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:44:10:600662] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:10:600668] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:44:10:600768] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:10:601032] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:10:601064] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:10:601078] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37530
[Feb 24 10:44:10:649333] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37534
[Feb 24 10:44:10:649400] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:44:10:649420] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:44:10:649532] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 37536
[Feb 24 10:44:10:649552] pilight-daemon: DEBUG: client fd: 18
[Feb 24 10:44:10:649568] pilight-daemon: DEBUG: client id: 4
[Feb 24 10:44:10:649620] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:10:649695] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:10:650372] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":3,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:44:10:650636] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:10:650636] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:44:10:650716] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:10:650753] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:44:10:650799] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:10:650994] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:10:651025] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:10:651329] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":1,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:44:10:651552] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:44:10:651563] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:44:10:651630] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37536
[Feb 24 10:44:10:651645] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:44:10:651896] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:44:10:651927] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:44:10:652218] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 37534
[Feb 24 10:44:11:152608] pilight-daemon: DEBUG: cpu: 1.288678%
[Feb 24 10:44:14:152810] pilight-daemon: DEBUG: cpu: 0.562614%
[Feb 24 10:44:17:152904] pilight-daemon: DEBUG: cpu: 0.318174%
[Feb 24 10:44:20:153859] pilight-daemon: DEBUG: cpu: 0.538904%
[Feb 24 10:44:23:154150] pilight-daemon: DEBUG: cpu: 0.330562%
[Feb 24 10:44:26:154187] pilight-daemon: DEBUG: cpu: 0.336275%


.sh script (try to switch on):


Code:
[Feb 24 10:46:59:153846] pilight-daemon: DEBUG: cpu: 0.409147%
[Feb 24 10:47:02:154146] pilight-daemon: DEBUG: cpu: 0.452323%
[Feb 24 10:47:04:306779] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:306909] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:306972] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:409689] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38314
[Feb 24 10:47:04:409804] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:04:409850] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:04:409959] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:04:410116] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:410321] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":0,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:47:04:410760] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:410778] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 700 1400 1400 700 81000
[Feb 24 10:47:04:410908] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:411373] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:04:411402] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38314
[Feb 24 10:47:04:411442] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":0,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:47:04:442578] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:442805] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:442913] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:549667] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38316
[Feb 24 10:47:04:549773] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:04:549817] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:04:549929] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:04:550098] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:550405] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":1,"id":2816,"protocol":["quigg_gt7000"]}}
[Feb 24 10:47:04:550864] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:550867] pilight-daemon: DEBUG: **** RAW CODE ****
700 1400 700 700 1400 1400 700 1400 700 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 700 1400 700 1400 1400 700 1400 700 81000
[Feb 24 10:47:04:551044] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:551513] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:04:551524] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38316
[Feb 24 10:47:04:551609] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"quigg_gt7000","message":{"id":2816,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:47:04:583379] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:583598] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:583707] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:689680] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38320
[Feb 24 10:47:04:689783] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:04:689830] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:04:690243] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:04:690365] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:690702] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":1,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:47:04:691097] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:691116] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:47:04:691305] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:691465] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38320
[Feb 24 10:47:04:691792] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:04:691856] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:47:04:725895] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:726049] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:726120] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:829706] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38322
[Feb 24 10:47:04:829817] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:04:829861] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:04:829967] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:04:830120] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:830347] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":2,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:47:04:830766] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:830770] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:47:04:830995] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:831472] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:04:831490] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38322
[Feb 24 10:47:04:831548] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":2,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:47:04:862735] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:862883] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:862955] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:04:969719] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38324
[Feb 24 10:47:04:969821] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:04:969865] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:04:969970] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:04:970122] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:970314] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"systemcode":1,"programcode":3,"on":1,"protocol":["rsl366"]}}
[Feb 24 10:47:04:970732] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:04:970736] pilight-daemon: DEBUG: **** RAW CODE ****
480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 480 1440 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 1440 1440 480 480 16320
[Feb 24 10:47:04:970928] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:04:970974] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38324
[Feb 24 10:47:04:971422] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:04:971488] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"rsl366","message":{"systemcode":1,"programcode":3,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[  Feb 24 10:47:05:3535] pilight-daemon: DEBUG: ssdp sent notify
[  Feb 24 10:47:05:3690] pilight-daemon: DEBUG: ssdp sent notify
[  Feb 24 10:47:05:3760] pilight-daemon: DEBUG: ssdp sent notify
[Feb 24 10:47:05:109824] pilight-daemon: INFO: new client, ip: 192.168.0.11, port: 38326
[Feb 24 10:47:05:109923] pilight-daemon: DEBUG: client fd: 17
[Feb 24 10:47:05:109967] pilight-daemon: DEBUG: client id: 3
[Feb 24 10:47:05:110084] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[Feb 24 10:47:05:110270] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:05:110517] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":1,"id":1,"protocol":["intertechno_switch"]}}
[Feb 24 10:47:05:110994] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 24 10:47:05:111000] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:05:111224] pilight-daemon: DEBUG: client disconnected, ip 192.168.0.11, port 38326
315 2835 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 1260 315 315 315 315 315 1260 315 1260 315 315 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 1260 315 315 315 10710
[Feb 24 10:47:05:111362] pilight-daemon: DEBUG: **** RAW CODE ****
[Feb 24 10:47:05:111849] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"arctech_switch","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}

[Feb 24 10:47:05:111908] pilight-daemon: DEBUG: broadcasted: {"origin":"sender","protocol":"arctech_switch","message":{"id":1,"unit":1,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-62a719"}
[Feb 24 10:47:05:154541] pilight-daemon: DEBUG: cpu: 2.549831%
[Feb 24 10:47:05:808449] pilight-daemon: DEBUG: possible arctech_switch protocol
[Feb 24 10:47:05:808539] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:808634] pilight-daemon: DEBUG: caught minimum # of repeats 1 of arctech_switch
[Feb 24 10:47:05:808673] pilight-daemon: DEBUG: called arctech_switch parseRaw()
[Feb 24 10:47:05:809350] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_switch","uuid":"0000-b8-27-eb-62a719","repeats":1}

[Feb 24 10:47:05:809407] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_switch","uuid":"0000-b8-27-eb-62a719","repeats":1}
[Feb 24 10:47:05:809571] pilight-daemon: DEBUG: possible arctech_screen protocol
[Feb 24 10:47:05:809610] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:809643] pilight-daemon: DEBUG: caught minimum # of repeats 1 of arctech_screen
[Feb 24 10:47:05:809676] pilight-daemon: DEBUG: called arctech_screen parseRaw()
[Feb 24 10:47:05:810156] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"up"},"origin":"receiver","protocol":"arctech_screen","uuid":"0000-b8-27-eb-62a719","repeats":1}

[Feb 24 10:47:05:810211] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"up"},"origin":"receiver","protocol":"arctech_screen","uuid":"0000-b8-27-eb-62a719","repeats":1}
[Feb 24 10:47:05:810308] pilight-daemon: DEBUG: possible arctech_dimmer protocol
[Feb 24 10:47:05:810375] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:810407] pilight-daemon: DEBUG: caught minimum # of repeats 1 of arctech_dimmer
[Feb 24 10:47:05:810441] pilight-daemon: DEBUG: called arctech_dimmer parseRaw()
[Feb 24 10:47:05:810939] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_dimmer","uuid":"0000-b8-27-eb-62a719","repeats":1}

[Feb 24 10:47:05:810993] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_dimmer","uuid":"0000-b8-27-eb-62a719","repeats":1}
[Feb 24 10:47:05:811093] pilight-daemon: DEBUG: possible arctech_contact protocol
[Feb 24 10:47:05:811132] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:811163] pilight-daemon: DEBUG: caught minimum # of repeats 1 of arctech_contact
[Feb 24 10:47:05:811198] pilight-daemon: DEBUG: called arctech_contact parseRaw()
[Feb 24 10:47:05:811762] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"opened"},"origin":"receiver","protocol":"arctech_contact","uuid":"0000-b8-27-eb-62a719","repeats":1}

[Feb 24 10:47:05:811849] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"opened"},"origin":"receiver","protocol":"arctech_contact","uuid":"0000-b8-27-eb-62a719","repeats":1}
[Feb 24 10:47:05:895380] pilight-daemon: DEBUG: possible arctech_switch protocol
[Feb 24 10:47:05:895459] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:895501] pilight-daemon: DEBUG: caught minimum # of repeats 2 of arctech_switch
[Feb 24 10:47:05:895539] pilight-daemon: DEBUG: called arctech_switch parseRaw()
[Feb 24 10:47:05:896169] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_switch","uuid":"0000-b8-27-eb-62a719","repeats":2}

[Feb 24 10:47:05:896234] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_switch","uuid":"0000-b8-27-eb-62a719","repeats":2}
[Feb 24 10:47:05:896345] pilight-daemon: DEBUG: possible arctech_screen protocol
[Feb 24 10:47:05:896392] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:896427] pilight-daemon: DEBUG: caught minimum # of repeats 2 of arctech_screen
[Feb 24 10:47:05:896466] pilight-daemon: DEBUG: called arctech_screen parseRaw()
[Feb 24 10:47:05:896990] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"up"},"origin":"receiver","protocol":"arctech_screen","uuid":"0000-b8-27-eb-62a719","repeats":2}

[Feb 24 10:47:05:897045] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"up"},"origin":"receiver","protocol":"arctech_screen","uuid":"0000-b8-27-eb-62a719","repeats":2}
[Feb 24 10:47:05:897149] pilight-daemon: DEBUG: possible arctech_dimmer protocol
[Feb 24 10:47:05:897192] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:897226] pilight-daemon: DEBUG: caught minimum # of repeats 2 of arctech_dimmer
[Feb 24 10:47:05:897259] pilight-daemon: DEBUG: called arctech_dimmer parseRaw()
[Feb 24 10:47:05:897769] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_dimmer","uuid":"0000-b8-27-eb-62a719","repeats":2}

[Feb 24 10:47:05:897820] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"on"},"origin":"receiver","protocol":"arctech_dimmer","uuid":"0000-b8-27-eb-62a719","repeats":2}
[Feb 24 10:47:05:897921] pilight-daemon: DEBUG: possible arctech_contact protocol
[Feb 24 10:47:05:897961] pilight-daemon: DEBUG: recevied pulse length of 313
[Feb 24 10:47:05:897993] pilight-daemon: DEBUG: caught minimum # of repeats 2 of arctech_contact
[Feb 24 10:47:05:898026] pilight-daemon: DEBUG: called arctech_contact parseRaw()
[Feb 24 10:47:05:898617] pilight-daemon: DEBUG: socket write succeeded: {"message":{"id":1,"unit":1,"state":"opened"},"origin":"receiver","protocol":"arctech_contact","uuid":"0000-b8-27-eb-62a719","repeats":2}

[Feb 24 10:47:05:898669] pilight-daemon: DEBUG: broadcasted: {"message":{"id":1,"unit":1,"state":"opened"},"origin":"receiver","protocol":"arctech_contact","uuid":"0000-b8-27-eb-62a719","repeats":2}
[Feb 24 10:47:08:153881] pilight-daemon: DEBUG: cpu: 2.873014%
[Feb 24 10:47:11:153514] pilight-daemon: DEBUG: cpu: 0.321706%
[Feb 24 10:47:14:154341] pilight-daemon: DEBUG: cpu: 0.319507%
[Feb 24 10:47:17:153647] pilight-daemon: DEBUG: cpu: 0.364751%
[Feb 24 10:47:20:153330] pilight-daemon: DEBUG: cpu: 0.385109%
[Feb 24 10:47:23:153742] pilight-daemon: DEBUG: cpu: 0.359334%
[Feb 24 10:47:26:154337] pilight-daemon: DEBUG: cpu: 0.350770%
[Feb 24 10:47:29:154286] pilight-daemon: DEBUG: cpu: 0.283292%
 
Reply
#2
Quote:I used some sleeps() but nothing worked.
What did you try with those sleeps?
 
Reply
#3
(03-03-2019, 01:24 PM)curlymo Wrote:
Quote:I used some sleeps() but nothing worked.
What did you try with those sleeps?

I tried to get break between the single calls. As an example you can see the sleeps inside the shell script. Its only a test. I have no idea, why it's working with 7.0 and not with the newest version.
 
Reply
#4
Because pilight got faster. Therefor, you need longer delays. This 'issue' has been discussed many times before on this forum, and increasing the delays has until now always worked.
 
Reply
#5
(03-03-2019, 06:25 PM)curlymo Wrote: Because pilight got faster. Therefor, you need longer delays. This 'issue' has been discussed many times before on this forum, and increasing the delays has until now always worked.

I tried delays up to 2000ms, but nothing helped. Maybe I did it in a wrong way. Here an example.

Code:
if(receivedCommand == ON) {
Pilight_Send_Args.sendCommand("-p intertechno_switch -u 1 -i 1 -t") //Wandlampe
while(Pilight_Send.state != OFF) Thread::sleep(100)
  Thread::sleep(2000)
...

How is it possible, to switch back to V7.0? Should I use 7.0.199-g616d7b1 or 7.0? Any other things I've to install or to configure, in the event of using V7.0 together with Stretch?

Code:
sudo apt-get download pilight=7.0.199-g616d7b1 pilight-webgui=7.5
sudo dpkg -i --ignore-depends=pilight-webgui pilight_7.0.199-g616d7b1_*.deb
sudo dpkg -i pilight-webgui_7.5_*.deb
 
Reply
#6
I'm in general amazed that it doesn't use the socket API.
 
Reply
#7
(03-03-2019, 08:28 PM)curlymo Wrote: I'm in general amazed that it doesn't use the socket API.
How does it work with the socket API? pilight-control? Do you think it would solve my problem?
 
Reply
#8
It should work with pilight-send as well. The webserver messages are also translated to the same socket messages pilight-send and pilight-control uses.
 
Reply
#9
(03-04-2019, 06:12 PM)curlymo Wrote: It should work with pilight-send as well. The webserver messages are also translated to the same socket messages pilight-send and pilight-control uses.

During the last days, I tried to solve my issue with the new pilight version. It seams to work with a sleep of round about 5 sec. That can't be the solution. With the old version (7.0), it was possible to switch on 7 lamps in less than 10 sec.

I would like to switch back to the older version of pilight. What is to be considered? Is this the right way?

Code:
sudo apt-get download pilight=7.0.199-g616d7b1 pilight-webgui=7.5
sudo dpkg -i --ignore-depends=pilight-webgui pilight_7.0.199-g616d7b1_*.deb
sudo dpkg -i pilight-webgui_7.5_*.deb

What about the startup. What should i do after the downgrade regarding systemd and init.d?

Thanks for your help!
 
Reply
#10
It's as easy as:
Code:
apt-get install pilight=7.0 pilight-webgui=7.0

I asked earlier why you aren't using the socket API? If you do, does the problem still exist?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Information Switching speed? rajd 4 326 12-17-2018, 09:07 AM
Last Post: rajd
  Daemon problems: no apparant sudo access Surowa 3 484 08-14-2018, 06:21 AM
Last Post: curlymo
Thumbs Up Newbie problems, usbnano connection and rsl366 pukington 1 413 02-14-2018, 07:36 PM
Last Post: pukington
  Elro 800 issues after upgrade to 8.0.9 TomiB 2 504 01-29-2018, 10:12 PM
Last Post: TomiB
  Multiple screens/shutters Ulrich.Arnold 5 755 01-29-2018, 09:17 PM
Last Post: curlymo
  Upgrade to jessie+pilight+kernel failed witty 10 1,642 01-04-2018, 12:27 PM
Last Post: witty
  SSDP Problems stritzi 1 757 11-14-2017, 01:18 PM
Last Post: curlymo
  multiple uuid's, what's the syntax? hansrijn2 3 705 10-31-2017, 12:26 PM
Last Post: curlymo
  multiple 433mhz senders koos147 9 1,818 10-05-2017, 09:12 PM
Last Post: koos147
  Problems with pilight 7.0, Pi 3 IncepTer 1 1,115 08-30-2017, 09:36 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)