• 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
pilight 6.0
#11
You also have to add them to the GUI section, see the website for instructions Smile
 
Reply
#12
Yeah, I already tried,

my code is so good?

{
"devices": {
"Lamp": {
"protocol": [ "elro_400" ],
"id": [{
"systemcode": 1,
"unitcode": 1
}],
"state": "off"
}
}
"gui": {
"Lamp": {
"name": "TV Backlit",
"group": [ "Lamps" ],
"media": [ "all" ]
}
},
"rules": {},
"settings": {
"log-level": 4,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"send-repeats": 10,
"receive-repeats": 1,
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/",
"webserver-port": 5001,
"webserver-cache": 1,
"firmware-update": 0
},
"hardware": {
"433gpio": {
"sender": 17,
"receiver": 1
}
},
"registry": {}
}


Are namely two days busy but still failed
 
Reply
#13
JSON file definition should be validated with an editor like this:
JSON Editor Online

Copy your definition to it and you should see syntax problems directly.
Not sure if the general definition is ok for pilight.
 
Reply
#14
@sanderbuitenhuis, please post according to the rules you got in the PM.
 
Reply
#15
I have a weird situation, using the most current manual I installed pilight and it seems to have no protocols dir in /usr/local/lib/pilight/ ...
However pilight starts up and there is a very basic webpage visible with one switch.
This is an example I found somewhere here and copied in the .json file.
When I try to add a protocol it always stops complaining that it can't be found, no matter what protocol I choose.
After some searching I saw how to add a nightly and that doesn't change anything.
Also strange is that when I let it read signals several switches and temperature sensors are detected and named as in the protocol pages.
Even making the protocols dir myself doesn't add-up.
 
Reply
#16
Installed pilight 6 with apt-get (stable) after using V4 for a long time.
This version really is a great improvement. The new layout of the config.json with the differentiation of the devices and the gui are brilliant!

The Eventing system also is great, although it can be improved.

One weird thing I found is that using pilight-receive and pressing the button of my KaKu remote it reports a protocol (have to check which one, not @home at the moment), but in the control.json file this protocol is invalid and I have to use an other protocol ("kaku_switch" with the same "id" and "unit" though).

I also have (a) question(s) about rules.
You can, in one rule, switch more than one devices. But I have a dim-able device and a "normal switch" device that I want to change in one rule. Is there a way (that I've missed) on how to do that (I want the dim-able device "DIM TO 6" and the other device "SWITCH TO on")?

Would it be possible to split long rules over more than one line (it probably is not json-standard)? Would make those long rules far more readable..

Thumbs up!!!
 
Reply
#17
Hi,

i tried the last 2 days everything what i can do, to start pilight with my testscriptet config.json.

But pilight will not start, checked with jsonlint, it is correct.
Only got answer from pilight is:
[FAIL] Starting : pilight failed!


Maybe you could help me with it.


{
"devices": {
"Raum1": {
"name":"Raum1",
"switch1": {
"name": "Schalter 1",
"protocol": [ "mumbi" ],
"id": [{
"systemcode": 27,
"unitcode": 2
}],
"state": "off"
}
}
},
"rules": {},
"gui": {},
"settings": {
"log-level": 4,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"send-repeats": 10,
"receive-repeats": 1,
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/",
"webserver-port": 5001,
"webserver-cache": 1,
"firmware-update": 0
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 1
}
},
"registry": {
"pilight": {
"version": {
"current": "6.0"
}
}
}
}


Thank you and Best Regards
kilson
 
Reply
#18
TheWheel Wrote:Would it be possible to split long rules over more than one line (it probably is not json-standard)? Would make those long rules far more readable.
.
see comment #13 .. using JSON Editor Online
That let you evaluate if your JSON "format" (eg. with line break) is valid!
 
Reply
#19
Can I download default protocol files somewhere?
My idea is that not being able to save a new protocol could be part of my problem.
It's a Wheezy setup on a 512MB pi.
As I mentioned the nightly should be installed too, how can I start it instead of the stable?
 
Reply
#20
@dutchandre
You can only install the nightly or the normal version.
For installation see http://www.pilight.org/get-started/installation/
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 50 10-18-2019, 10:25 PM
Last Post: DominikB1993
  Real 433Mhz Remote is disturbed by pilight service henne111 2 158 10-06-2019, 06:18 PM
Last Post: wo_rasp
Tongue (solved) pilight 8.1.5-1-gc0a175e0 Chrashes fleisch 5 584 10-03-2019, 01:15 PM
Last Post: fleisch
  Starting pilight on boot: "cannot bind to the SSDP multicast network" pilino1234 4 347 09-29-2019, 02:08 PM
Last Post: tomk
  pilight for Raspbian Buster (raspberry pi 4) ? starob 29 2,458 07-15-2019, 08:45 PM
Last Post: curlymo
  pilight-receive Filteroption not working Alex 2 569 07-14-2019, 08:35 AM
Last Post: Alex
  pilight usb nano format conversion ettman8 2 452 07-14-2019, 08:32 AM
Last Post: curlymo
  pilight 8.1.4 crashes after some hours Ulrich.Arnold 47 2,697 06-29-2019, 08:58 PM
Last Post: curlymo
  Raspberry PI, gpio-ir-tx and pilight not starting lordslash 5 866 06-11-2019, 05:19 PM
Last Post: curlymo
  pilight fails starting on boot Alex 5 757 06-09-2019, 06:02 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)