• 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
[Fully Supported] Conrad RSL Switch
#31
I'm using latest Dev and ran ./pilight-daemon -D

Code:
root@pi:~/pilight# ./pilight-daemon -D
[Mar 28 22:11:24:407892] pilight-daemon: DEBUG: ssdp sent search
[Mar 28 22:11:24:503014] pilight-daemon: NOTICE: no pilight daemon found, daemonizing
[Mar 28 22:11:24:505107] pilight-daemon: ERROR: could not compile regex
[Mar 28 22:11:24:506723] pilight-daemon: DEBUG: -- start parsed config file --
{
        "Living": {
                "name": "Living",
                "order": 1,
                "Test3": {
                        "name": "Weather3",
                        "order": 1,
                        "type": 3,
                        "uuid": "0000-00-00-27-ed4a55",
                        "origin": "0000-00-00-27-ed4a55",
                        "protocol": [ "alecto" ],
                        "id": [{
                                "id": 1295
                        }],
                        "temperature": 202,
                        "gui-show-battery": 1,
                        "gui-show-temperature": 1,
                        "gui-show-humidity": 1,
                        "gui-decimals": 1,
                        "device-decimals": 1
                },
                "weather4": {
                        "name": "Weather4",
                        "order": 2,
                        "type": 3,
                        "uuid": "0000-00-00-27-ed4a55",
                        "origin": "0000-00-00-27-ed4a55",
                        "protocol": [ "threechan" ],
                        "id": [{
                                "id": 1474
                        }],
                        "temperature": 189,
                        "humidity": 410,
                        "battery": 1,
                        "gui-show-battery": 1,
                        "gui-show-temperature": 1,
                        "gui-show-humidity": 1,
                        "gui-decimals": 1,
                        "device-decimals": 1
                },
                "lampka": {
                        "name": "Lampka",
                        "order": 3,
                        "type": 1,
                        "uuid": "0000-00-00-27-ed4a55",
                        "origin": "0000-00-00-27-ed4a55",
                        "protocol": [ "conrad_rsl_switch" ],
                        "id": [{
                                "id": 3222
                        }],
                        "state": "on",
                        "gui-readonly": 0
                }
        }
}
[Mar 28 22:11:24:508072] pilight-daemon: DEBUG: -- end parsed config file --
[Mar 28 22:11:24:509018] pilight-daemon: INFO: daemon listening to port: 5000

It's only showing up when using conrad rsl protocol config as above.

@CurlyMo: are there any other methods to troubleshoot things step by step that I can add to my debugging arsenal Wink
 
Reply
#32
So when does the exact error occur? As precise as possible.
 
Reply
#33
First remove pilight folder completely:
rm pilight -r
git clone development ...
then ./setup
etc

Code:
.............
-- Installing: /usr/local/bin/pilight-control
-- Installing: /usr/local/sbin/pilight-learn
-- Installing: /usr/local/bin/pilight-receive
-- Installing: /usr/local/sbin/pilight-debug
-- Installing: /usr/local/bin/pilight-uuid
update-rc.d: using dependency based boot sequencing
root@pi:~/pilight# cat /etc/pilight/config.json
{
        "living": {
                "name": "Living",
                "impulsa": {
                        "name": "Impuls Switch A",
                        "protocol": [ "impuls" ],
                        "id": [{
                                "systemcode": 31,
                                "programcode": 1
                        }],
                        "state": "off"
                },
                "impulsb": {
                        "name": "Impuls Switch B",
                        "protocol": [ "impuls" ],
                        "id": [{
                                "systemcode": 31,
                                "programcode": 2
                        }],
                        "state": "off"
                },

                "impulsc": {
                        "name": "Impuls Switch C",
                        "protocol": [ "impuls" ],
                        "id": [{
                                "systemcode": 31,
                                "programcode": 4
                        }],
                        "state": "on"
                }
        }
}root@pi:~/pilight# service pilight start
[ ok ] pilight is running.
root@pi:~/pilight# service pilight stop
[ ok ] Stopping : pilight.
root@pi:~/pilight# service pilight start
[ ok ] Starting : pilight.
root@pi:~/pilight# service pilight stop
[ ok ] Stopping : pilight.
root@pi:~/pilight# service pilight start
[ ok ] Starting : pilight.
root@pi:~/pilight# service pilight stop
[ ok ] Stopping : pilight.
root@pi:~/pilight# nano /etc/pilight/config.json

no errors so far so let's edit the config.json as below:

Code:
{
        "Living": {
                "name": "Living",
                "lampka": {
                        "name": "Lampka",
                        "protocol": [ "conrad_rsl_switch" ],
                        "id": [{
                                "id": 3222
                        }],
                        "state": "on"
                }
        }
}

Code:
root@pi:~/pilight# service pilight start
[....] Starting : pilight[Mar 29 09:52:02:574987] pilight-daemon: ERROR: could not compile regex
. ok
root@pi:~/pilight#

(video)
 
Reply
#34
And again no issues:
Code:
[Mar 29 10:40:44:263228] pilight-daemon: DEBUG: ssdp sent search
[Mar 29 10:40:44:363349] pilight-daemon: NOTICE: no pilight daemon found, daemonizing
[Mar 29 10:40:44:370256] pilight-daemon: ERROR: could not compile regex
[Mar 29 10:40:44:403910] pilight-daemon: DEBUG: -- start parsed config file --
{
        "Living": {
                "name": "Living",
                "order": 1,
                "lampka": {
                        "name": "Lampka",
                        "order": 1,
                        "type": 1,
                        "uuid": "0000-00-00-07-646b93",
                        "origin": "0000-00-00-07-646b93",
                        "protocol": [ "conrad_rsl_switch" ],
                        "id": [{
                                "id": 3222
                        }],
                        "state": "on",
                        "gui-readonly": 0
                }
        }
}
[Mar 29 10:40:44:404687] pilight-daemon: DEBUG: -- end parsed config file --
[Mar 29 10:40:44:405427] pilight-daemon: INFO: daemon listening to port: 5000
[Mar 29 10:40:44:412476] pilight-daemon: DEBUG: new thread socket, 1 thread running
[Mar 29 10:40:44:412776] pilight-daemon: DEBUG: new thread ssdp, 2 threads running
[Mar 29 10:40:44:412996] pilight-daemon: DEBUG: new thread sender, 3 threads running
[Mar 29 10:40:44:413243] pilight-daemon: DEBUG: new thread broadcaster, 4 threads running
[Mar 29 10:40:44:413546] pilight-daemon: DEBUG: new thread updater, 5 threads running
[Mar 29 10:40:44:413767] pilight-daemon: DEBUG: new thread 433gpio, 6 threads running
[Mar 29 10:40:44:413996] pilight-daemon: DEBUG: new thread webserver daemon, 7 threads running
[Mar 29 10:40:44:414226] pilight-daemon: DEBUG: new thread webserver client, 8 threads running
[Mar 29 10:40:44:414497] pilight-daemon: DEBUG: new thread webserver broadcast, 9 threads running
[Mar 29 10:40:44:414816] pilight-daemon: INFO: new client, ip: 127.0.0.1, port: 45214
[Mar 29 10:40:44:414963] pilight-daemon: DEBUG: client fd: 9
[Mar 29 10:40:44:415075] pilight-daemon: DEBUG: client id: 1
[Mar 29 10:40:44:418528] pilight-daemon: DEBUG: webserver listening to port 80
[Mar 29 10:40:44:419003] pilight-daemon: DEBUG: ssdp sent search
[Mar 29 10:40:44:419553] pilight-daemon: DEBUG: new thread webserver worker #0, 10 threads running
[Mar 29 10:40:44:419850] pilight-daemon: DEBUG: ssdp sent notify
[Mar 29 10:40:44:420133] pilight-daemon: INFO: client connected, ip 127.0.0.1, port 50137
[Mar 29 10:40:44:520811] pilight-daemon: DEBUG: socket write succeeded: {"message":"client gui"}

[Mar 29 10:40:44:521134] pilight-daemon: INFO: new client, ip: 10.0.0.141, port: 56502
[Mar 29 10:40:44:521245] pilight-daemon: DEBUG: client fd: 16
[Mar 29 10:40:44:521391] pilight-daemon: DEBUG: client id: 2
[Mar 29 10:40:44:521587] pilight-daemon: DEBUG: socket recv: {"message":"client gui"}
[Mar 29 10:40:44:521892] pilight-daemon: DEBUG: socket write succeeded: {"message":"accept client"}

[Mar 29 10:40:44:522014] pilight-daemon: INFO: client recognized as gui

Code:
pilight-daemon version 3.0, commit v3.0-77-gf2d0a59



Can you run gdb to find the error line.
 
Reply
#35
LOL, i see the error in your post! Third line .

Tried gdb but after the third line it just runs like expected so no backtrace.
 
Reply
#36
Smile Great. Totally missed that. I will look into it.
 
Reply
#37
regex bug fixed
 
Reply
#38
Oke nice!

@Hellcube, any progress after reading that thread ?
Try to find out if the signals you get are consistent when pressing a specific button.
 
Reply
#39
I have used development branch and:

sudo service pilight start
[....] Starting : pilight[Mar 30 19:10:37:445316] pilight-daemon: ERROR: setting "webserver-authentication" is invalid
failed!

had to remove lines:
"webserver-authentication": 0,
"webserver-username": "",
"webserver-password": "",


sudo service pilight start
[....] Starting : pilight[Mar 30 19:15:18:475870] pilight-daemon: ERROR: php support disabled due to missing php-cgi executable
. ok

added
protocol_plslen_add(conrad_rsl_switch, 190);
to libs/protocols/conrad_rsl_switch.c
and recompiled

In result when i click on/off with mouse cursor in web gui nothing happens.
When i use remote 1/5 times web gui switches state.

This is Debug info.
http://pastebin.com/Bt0LmaEG
I have changed my config and added another id.

Code:
"salon": {
                "name": "Salon",
                "lampka": {
                        "name": "Lampka",
                        "protocol": [ "conrad_rsl_switch" ],
                        "id": [{
                                "id": 33248319
                        },
                        {
                                "id": 66802751
                        }],
                        "state": "off"
                }
        }
}

I am using 433MHz Superheterodyne 3400 RF Transmitter and Receiver link kit for Arduino
http://www.ebay.com/itm/433MHz-Superhete...OC:PL:3160

I dont use any low-pass filter. Direct connected like in here
[Image: pinout.png]

What am i doing wrong?
 
Reply
#40
Quote:In result when i click on/off with mouse cursor in web gui nothing happens.
Using pilight-send instead of webgui does work for you? (with for example other devices?)

Quote:When i use remote 1/5 times web gui switches state.
*EDIT: Now reading this again makes me think that pilight understands exactly what you mean but the signal is not always coming through....

I think this is normal behavior because your receiver probably receives alot of other noise. So pressing 1/5 times to get the signal through is apparently needed.

Quote:sudo service pilight start
[....] Starting : pilight[Mar 30 19:15:18:475870] pilight-daemon: ERROR: php support disabled due to missing php-cgi executable
. ok
Normal, see wiki
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Home Assistant switch gpio segalion 5 765 09-10-2018, 12:39 PM
Last Post: segalion
  pilight 8.1 and switch with date and time not working Pikeman 7 923 06-30-2018, 11:28 PM
Last Post: curlymo
  [Supported] Alecto WS4500 / WS3500 | Ventus W177 Tommybear1979 229 55,324 06-01-2018, 10:06 AM
Last Post: DieterD62
  pilight-send for like rc-switch "send" mindau 1 1,428 01-18-2018, 07:46 AM
Last Post: madmoses
  Conrad RSL Support Druide85 1 1,159 11-03-2017, 10:34 AM
Last Post: MorfelPi
  rev switch: maybe mismatch in sending on and off codes picrafter 2 1,552 04-15-2017, 02:49 PM
Last Post: redraid
  How to use pilight with raspberry Pi and Conrad 433mhz apbonn 0 1,293 03-30-2017, 10:56 AM
Last Post: apbonn
  Problem with a Switch rule viper2035 2 1,265 01-12-2017, 04:33 PM
Last Post: viper2035
  Light Switch with integrated ON/OFF Button ilir@ademi.org 4 1,878 01-04-2017, 09:22 PM
Last Post: ilir@ademi.org
  Supported shutter belt winders. muecke 0 702 12-18-2016, 12:02 PM
Last Post: muecke

Forum Jump:


Browsing: 1 Guest(s)