• 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
Newbie problems, usbnano connection and rsl366
#1
Thumbs Up 
Hi guys, thanks for a great product, but i'm a little lost with it!

So i've got working a HomeAssistant installation that commands some cheap RF sockets that I have.  I've previously used rp_rf to send via my sender connected to the GPIO and it worked flawlessly, I have the codes for the switches, pulse length, protocol etc.  I wanted to add to the rf stuff by using external heat sensors and door sensors, but found a high usage of cpu by using that route, so came across pilight.  

I also want to make the enviroment more user friendly for my wife, so she can use a remote switch to operate sockets too, rather than having to talk to Alexa or use her homekit and thus i found pilight.

I've got a Nano that i've flashed the fw onto, plugged into my pi, the config points to the correct comport, here's my config:

Code:
{
       "devices": {},
       "rules": {},
       "gui": {},
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "webserver-http-port": 5001,
               "webserver-https-port": 5002,
               "webserver-cache": 1,
               "gpio-platform": "none"
       },
       "hardware": {
               "433nano": {
                       "comport": "/dev/ttyUSB0"
               }
       },
       "registry": {
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "secure": 0,
                                       "location": "/etc/pilight/pilight.pem"
                               }
                       }
               },
               "pilight": {
                       "version": {
                               "current": "8.0.8"
                       }
               }
       }
}

Using pilight-receive I get no ouput whatsoever.  Using pilight-daemon -D I get:

Code:
puk@Pi2:~ $ sudo pilight-daemon -D
[Feb 13 17:53:23:680351] pilight-daemon: INFO: version v8.0.9
[Feb 13 17:53:23:681692] pilight-daemon: DEBUG: ssdp sent search
[Feb 13 17:53:23:786576] pilight-daemon: INFO: no pilight daemon found, daemonizing
[Feb 13 17:53:23:805777] pilight-daemon: INFO: daemon listening to port: 41117
[Feb 13 17:53:23:807828] pilight-daemon: DEBUG: new thread socket, 1 thread running
[Feb 13 17:53:23:808215] pilight-daemon: DEBUG: new thread ssdp, 2 threads running
[Feb 13 17:53:23:808332] pilight-daemon: INFO: new client, ip: 127.0.0.1, port: 56486
[Feb 13 17:53:23:808540] pilight-daemon: DEBUG: client fd: 12
[Feb 13 17:53:23:808565] pilight-daemon: DEBUG: new thread sender, 3 threads running
[Feb 13 17:53:23:808611] pilight-daemon: DEBUG: client id: 1
[Feb 13 17:53:23:809014] pilight-daemon: DEBUG: new thread broadcaster, 4 threads running
[Feb 13 17:53:23:810709] pilight-daemon: INFO: secured webserver started on port: 5002 (fd 14)
[Feb 13 17:53:23:811025] pilight-daemon: INFO: regular webserver started on port: 5001 (fd 15)
[Feb 13 17:53:23:811605] pilight-daemon: DEBUG: new thread 433nano, 5 threads running
[Feb 13 17:53:23:812235] pilight-daemon: DEBUG: new thread receive parser, 6 threads running
[Feb 13 17:53:23:812473] pilight-daemon: DEBUG: new thread events client, 7 threads running
[Feb 13 17:53:23:812680] pilight-daemon: DEBUG: new thread events loop, 8 threads running
[Feb 13 17:53:23:813392] pilight-daemon: DEBUG: ssdp sent search
[Feb 13 17:53:23:813493] pilight-daemon: DEBUG: ssdp sent notify
[Feb 13 17:53:23:916995] pilight-daemon: INFO: new client, ip: 192.168.0.3, port: 56586
[Feb 13 17:53:23:917390] pilight-daemon: DEBUG: client fd: 17
[Feb 13 17:53:23:917468] pilight-daemon: DEBUG: client id: 2
[Feb 13 17:53:23:917720] pilight-daemon: DEBUG: socket write succeeded: {"action":"identify","options":{"config":1,"receiver":1},"media":"all"}

[Feb 13 17:53:23:918026] pilight-daemon: DEBUG: socket recv: {"action":"identify","options":{"config":1,"receiver":1},"media":"all"}
[Feb 13 17:53:23:918454] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[Feb 13 17:53:24:652508] pilight-daemon: DEBUG: cpu: 0.000000%


This is driving me nuts, as I had correct output from pilight-receive:
Code:
puk@Pi2:/etc/pilight $ pilight-receive
{
    "message": {
        "systemcode": 2,
        "programcode": 3,
        "state": "on"
    },
    "origin": "receiver",
    "protocol": "rsl366",
    "uuid": "0000-b8-27-eb-09d9a5",
    "repeats": 1
}
{
    "message": {
        "systemcode": 2,
        "programcode": 3,
        "state": "on"
    },
    "origin": "receiver",
    "protocol": "rsl366",
    "uuid": "0000-b8-27-eb-09d9a5",
    "repeats": 2
}

a couple of hours ago, but i messed my config up, so reloaded default and now it's not working for beans.  I can't see my error, i've restarted my pi server, uninstalled and reinstalled pilight.  My json validates via jsonlint.

Can someone do me a huge favour and point at what ridiculous thing i'm missing before i pull what little hair out i have left!
Cheers!
 
Reply
#2
Thumbs Up 
Okay so scratch the above, as a image restored to the pi, reinstall of pilight and miraculously it works.  I did nothing different, same config.

Now to work out how to use it and get these sockets working.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Already fixed in 8.1.2] Loss of webserver-connection Ulrich.Arnold 34 2,999 08-02-2019, 02:25 PM
Last Post: curlymo
  Problems after upgrade with switching on and off multiple lamps consecutively Mario.Steinberg 30 2,300 05-02-2019, 05:15 PM
Last Post: curlymo
  Daemon problems: no apparant sudo access Surowa 3 638 08-14-2018, 06:21 AM
Last Post: curlymo
  WebSocket connection failed: One or more reserved bits gregnau 8 2,304 02-16-2018, 10:02 PM
Last Post: curlymo
  RSL366 receive fine, can't send? pukington 2 668 02-15-2018, 11:04 AM
Last Post: pukington
  Windows HTTP connection andbehtls 1 1,126 01-14-2018, 02:24 PM
Last Post: bnk72
  SSDP Problems stritzi 1 916 11-14-2017, 01:18 PM
Last Post: curlymo
  Problems with pilight 7.0, Pi 3 IncepTer 1 1,251 08-30-2017, 09:36 PM
Last Post: curlymo
  Illumina, cannot obtain connection hansrijn2 5 1,389 05-31-2017, 04:29 PM
Last Post: hansrijn2
  Sending and receiving without problems. varmluft 5 2,563 11-29-2016, 06:23 PM
Last Post: pilino1234

Forum Jump:


Browsing: 1 Guest(s)