I’m running Hassbian on Rpi3. I’ve installed pilight-damon and here is my config.json
{
"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": "raspberrypi3",
"port": 5000
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 2
}
},
"registry": {
"webserver": {
"ssl": {
"certificate": {
"secure": 0,
"location": "/etc/pilight/pilight.pem"
}
}
},
"pilight": {
"version": {
"current": "8.0.8"
}
}
}
}
Here is my configuration.yaml
pilight:
host: 192.168.1.60
port: 5000
whitelist: # optional
protocol:
- clarus_switch
Here is my switch config:
switch:
- platform: pilight
switches:
Cat Room:
on_code:
protocol: clarus_switch
unit: 7
id: E3
'on': 1
off_code:
protocol: clarus_switch
unit: 7
id: E3
'off': 1
on_code_receive:
protocol: clarus_switch
unit: 7
id: E3
state: 'on'
off_code_receive:
protocol: clarus_switch
unit: 7
id: E3
state: 'off'
When I set everything up I ran pilight-receive and got my codes for my Cat Room switch, but it only worked once and has not worked since.
"message": {
"id": "E3",
"unit": 7,
"state": "on"
},
"origin": "receiver",
"protocol": "clarus_switch",
"uuid": "0000-b8-27-eb-6cd028",
"repeats": 1
Seems the receiver quit working, but it does still work when I run the rpi-rf utilities.
BUT, when I stop the pilight service and run pilight-debug and push a remote button, I do get raw codes.
I just don’t know where to go from here to debug…