Hello!
I used to send my switch commands from one Raspberry Pi to another like this:
pilight-send -p intertechno_switch -i 1234 -u 5 -t -S 192.168.0.123 -P 5001
but since my update to stretch this produces the warning "WARNING: (webserver) could not read (null)" on the 192.168.0.123 pi.
Since I did not figure out how to correct this I moved to first naming the switch to be triggered in the config.json and tried the web UI - this works fine now.
Second I would like to also be able to trigger the web UI switch directly from the CLI - see if this is a work-around for my problem.
Is it possible to use pilight-send with the name of the switch and on/off?
this is my config.json:
I used to send my switch commands from one Raspberry Pi to another like this:
pilight-send -p intertechno_switch -i 1234 -u 5 -t -S 192.168.0.123 -P 5001
but since my update to stretch this produces the warning "WARNING: (webserver) could not read (null)" on the 192.168.0.123 pi.
Since I did not figure out how to correct this I moved to first naming the switch to be triggered in the config.json and tried the web UI - this works fine now.
Second I would like to also be able to trigger the web UI switch directly from the CLI - see if this is a work-around for my problem.
Is it possible to use pilight-send with the name of the switch and on/off?
this is my config.json:
Code:
{
"devices": {
"printer": {
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 1234,
"unit": 5
}],
"state": "off"
}
},
"rules": {},
"gui": {
"printer": {
"name": "Printers",
"group": [ "room1" ],
"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/webgui",
"webserver-http-port": 5001,
"webserver-https-port": 5002,
"webserver-cache": 1,
"gpio-platform": "raspberrypi3"
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": -1
}
},
"registry": {
"webserver": {
"ssl": {
"certificate": {
"location": "/etc/pilight/pilight.pem"
}
}
},
"pilight": {
"version": {
"current": "8.1.5"
}
},
"hardware": {
"RF433": {
"mingaplen": 4420,
"maxgaplen": 72900,
"minrawlen": 26,
"maxrawlen": 400
}
}
}
}