• 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


[solved] pilight not work with Config
#1
Hello,

i have installed pilight 7.0, and the Service ist started when i do nothing with the config file.

If i are add a decive in the config file, the Service ist not started.

My Config File her:

Code:
{
       "devices": {

                "Switch1": {
                       "protocol": [ "elro_800_switch" ],
                       "id": [{
                               "systemcode": 11,
                               "unit": 1
                       }],
                       "state": "off"

                       }

               },





       "rules": {},
       "gui": {
                "Switch1": {
                       "name": "lampe",
                       "group": [ "MeineSwitches" ],
                       "media": [ "all" ]


                       }

             },
       "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/",
               "webserver-http-port": 80,
               "webserver-cache": 1
       },
       "hardware": {
               "433gpio": {
                       "sender": 0,
                       "receiver": 1
               }
       },
       "registry": {
               "pilight": {
                       "firmware": {
                               "version": 43527,
                               "lpf": 462480,
                               "hpf": 211440
                       },
                       "version": {
                               "current": "7.0"
                       }
               }
       }
}

What is wrong with my config file?
 
Reply
#2
Try
Code:
pilight-daemon -D
and post the output here please.
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#3
According to the wiki "unit" should be "unitcode".

Please do always check the wiki before you add a protocol to your config.
 
Reply
#4
(06-09-2015, 02:46 PM)terrar Wrote: Try
Code:
pilight-daemon -D
and post the output here please.

this error is comming out:

Code:
[Jun 09 15:15:49:551594] pilight-daemon: ERROR: config device setting #2 "id" of  "Switch1", invalid
but im sure the is the right. Systemcode is 11 and the unitcode is 1.
in binär my systemcode is 11010 > invert 01011 and this is 11.
 
Reply
#5
So as niek wrote you have a wrong parameter in your device config.
Replace "unit" with "unitcode" should work.
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#6
OK, thanks. Its a stupid error i make. Now works fine !
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight & piSchedule works fine but no webgui Sven 4 1,754 01-13-2019, 06:12 PM
Last Post: Sven
  [Android] illumina, a pilight remote phdd 62 50,998 08-02-2016, 05:56 PM
Last Post: curlymo
  Plenary - An alternative webGUI for pilight mitch187 20 18,174 03-29-2016, 06:25 AM
Last Post: curlymo
  [solved] pilight on Browser - no entrys Areon 5 3,330 03-05-2016, 12:39 PM
Last Post: Balauue
  webgui pilight 6.0 iphone / android browser Jeroenk 3 3,410 02-03-2016, 05:08 PM
Last Post: serge
  PiControl - Control Pannel for pilight [Work In Progress] Jurre 10 6,955 01-12-2016, 05:47 PM
Last Post: Jurre
  GUI for pilight ktams 32 15,583 10-28-2015, 12:24 PM
Last Post: ktams
  [Android] pilight android 4.1+ UPDATED 5/5/15 Zatta 103 90,418 05-06-2015, 09:21 PM
Last Post: koos147
  [Android] pilight Wear schdef 3 5,576 04-14-2015, 04:48 PM
Last Post: schdef
  [Android] Tasker pilight Kiwi 6 10,688 04-01-2015, 03:37 PM
Last Post: bkmann

Forum Jump:


Browsing: 1 Guest(s)