Hello all,
I am new to Home-Assistant and tried to add plight switches.
Here is the config that I use:
pilight:
host: 127.0.0.1
port: 5000
switch:
- platform: pilight
switches:
Test:
on_code:
protocol: 'heitech'
systemcode: '31'
unit: '8'
'on': 1
off_code:
protocol: 'heitech'
systemcode: '31'
unit: '8'
'off': 1
In the logs I get the following error:
homeassistant.components.pilight: Pilight send failed for {'unit': 8, 'protocol': ['heitech'], 'on': 1, 'systemcode': 31}
I have installed the newest version and I checked also if the config file is patched with the following:
COMMAND_SCHEMA = pilight.RF_CODE_SCHEMA.extend({
vol.Optional('on'): cv.positive_int,
vol.Optional('off'): cv.positive_int,
- vol.Optional(CONF_UNIT): cv.string,
+ vol.Optional(CONF_UNIT): cv.positive_int,
vol.Optional(CONF_ID): cv.positive_int,
vol.Optional(CONF_STATE): cv.string,
- vol.Optional(CONF_SYSTEMCODE): cv.string,
+ vol.Optional(CONF_SYSTEMCODE): cv.positive_int,
})
If needed here is my pilight config:
"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/",
"webserver-http-port": 5001,
"webserver-cache": 1,
"port": 5000
},
"lamp4": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 31,
"unitcode": 8
}],
"state": "on"
}
Here is the error from the pilight logfile:
[Nov 12 20:12:01:125106] pilight-daemon: ERROR: heitech: insufficient number of arguments
So I don’t know whats the problem and why its not working.
Maybe someone of you can help me.
Thanks
Daranto