• 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
[Solved] no gpio-platform configured
#1
Bug 
I just installed pilight on a clean installed raspberry pi 2 (in a seperate network from the others)
I only placed all the relay's in the config.
But now it gave a error
Code:
[Apr 08 20:42:27:196605] pilight-daemon: ERROR: relay: no gpio-platform configured
[Apr 08 20:42:27:197091] pilight-daemon: ERROR: config device #2 "RelayP01B01C01", invalid

I tried to change
"gpio-platform": "raspberrypi1b2",
To
"gpio-platform": "raspberrypi2b",
But still the same error

Config:
Code:
{
    "devices": {
        "casapi01": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "cpu_temp" ],
            "id": [{
                "id": 1
            }],
            "temperature": 46.540,
            "poll-interval": 60
        },
        "RelayP01B01C01": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 1
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C02": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 2
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C03": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 3
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C04": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 4
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C05": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 5
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C06": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 6
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C07": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 7
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C08": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 8
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C09": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 9
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C10": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 10
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C11": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 11
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C12": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 12
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C13": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 13
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C14": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 14
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C15": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 15
            }],
            "state": "on",
            "default-state": "on"
        },
        "RelayP01B01C16": {
            "uuid": "0000-b8-27-eb-1d1a23",
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 16
            }],
            "state": "on",
            "default-state": "on"
        }        
    },
    "gui": {
        "RelayP01B01C01": {
            "name": "01",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C02": {
            "name": "02",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C03": {
            "name": "03",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C04": {
            "name": "04",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C05": {
            "name": "05",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C06": {
            "name": "06",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C07": {
            "name": "07",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C08": {
            "name": "08",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C09": {
            "name": "09",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C10": {
            "name": "10",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C10": {
            "name": "10",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C11": {
            "name": "11",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },        
        "RelayP01B01C12": {
            "name": "12",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C12": {
            "name": "12",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C13": {
            "name": "13",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C14": {
            "name": "14",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C15": {
            "name": "15",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "RelayP01B01C16": {
            "name": "16",
            "group": [ "Lampjes" ],
            "media": [ "all" ],
            "readonly": 0
        }
        "RelayP01B01C02": {
            "name": "Casa-Pi01",
            "group": [ "Devices" ],
            "media": [ "all" ],
            "readonly": 0
        }
        
    
    },
    "rules": {},
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "gpio-platform": "raspberrypi1b2",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/",
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "webserver-cache": 1,
        "whitelist": ""
    },
    "hardware": {
        "none": {}
    },
    "registry": {}
}
 
Reply
#2
Especially if you use the rewrite branch, read the commits on github. This "issue" has also been discussed before here.
 
Reply
#3
Please note.
I am a happy user for 99% of pilight.
i try to use the stable version because i can't fix code.
but most problems have a solution "go to nightly / rewrite"
I fully understand that there is no solution without testing.

I normaly don't use github. so if i do things wrong, sorry about that.
I can't find anything on github about the error.
https://github.com/pilight/pilight/searc...&type=Code
 
Reply
#4
I have the same problem, just recompiled the latest pilight rewrite...

current config:
Code:
{
    "devices": {
        "switch": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 10
            }],
            "state": "off"
        }
    },
    "gui": {
        "switch": {
            "name": "Relay Switch",
            "group": [ "Outside" ],
            "media": [ "all" ]
        }
    },
    "rules": {},
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "gpio-platform": "raspberrypi1b2",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/",
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "port": 5000,
        "webserver-cache": 1,
        "whitelist": ""
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {}
}

have you solved your problem???
 
Reply
#5
No i was running out of time.
I installed the stable version.

This is why i am afraid to upgrade my home system.
 
Reply
#6
thx for the fast response! Luckaly i have a second pi for playing around with new versions...
I hope one of the devs can explain what the problem is!?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [fixed] bug in protocols requiring gpio-platform parameter beaming 2 2,523 05-17-2016, 01:56 AM
Last Post: beaming
  [Solved] openSUSE 13.2 "pilight-daemon -H" segfault pilino1234 2 1,866 04-22-2016, 08:39 AM
Last Post: pilino1234
  [Solved] First transmission causes full cpu usage andiwand 11 4,448 04-19-2016, 06:16 AM
Last Post: curlymo
  [Solved] Compilation error under openSUSE pilino1234 4 2,116 04-16-2016, 08:23 AM
Last Post: pilino1234
  [Solved] pilight-receive fills log with empty DEBUG messages pilino1234 1 1,594 04-12-2016, 07:29 PM
Last Post: curlymo
  [Solved] wiringX initialisation error ksmedts 6 4,342 04-11-2016, 08:06 PM
Last Post: ksmedts
  [Solved] Crash on invalid config.json syntax pilino1234 10 4,815 04-01-2016, 05:40 PM
Last Post: curlymo
  [Solved] Time Stamp Information wo_rasp 5 2,274 03-05-2016, 11:29 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)