So I am setting my first steps in MQTT using pilight version v8.1.5-nightly-45c64b39 on Rpi and testing it with MQTT.fx on Windows. Subscribing in MQTT.fx to pilight topics is working fine. But when I try to change the state of a switch by publishing a command the pilight.log shows:
config.json (shortened version):
So I use MQTT.fx to connect, subscribe and publish.
Subscribe to :
gives a timestamp and a state after I switched it; perfect
Publish:
gives no action and the pilight.log shows:
What am I doing wrong here?
Code:
ERROR: elro_400_switch: insufficient number of arguments
Code:
{
"devices":
"keuken": {
"protocol": [ "elro_400_switch" ],
"id": [{
"systemcode": 9,
"unitcode": 29
}],
}
},
"settings": {
"log-level": 6,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"standalone": 1,
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/webgui",
"webserver-http-port": 5001,
"webserver-https-port": 5002,
"webserver-cache": 1,
"whitelist": "",
"gpio-platform": "raspberrypi1b2",
"mqtt-port": 1883,
"mqtt-enable": 1
},
"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
}
}
}
}
Subscribe to :
Code:
pilight/device/keuken/+
Publish:
Code:
pilight/device/keuken/state on
Code:
[Aug 26 13:45:25:114372] ERROR: elro_400_switch: insufficient number of arguments