I am trying to achieve something similar.
The code sniffed by pilight-receive:
{
“message”: {
“id”: “A2”,
“unit”: 20,
“state”: “on”
},
“origin”: “receiver”,
“protocol”: “clarus_switch”,
“uuid”: “0000-b8-27-eb-6d7743”,
“repeats”: 1
}
When inputting the ID “A2” into the pilight-switch in home assistant I get error:
homeassistant.bootstrap: Invalid config for [switch.pilight]: expected int for dictionary value @ data[‘switches’][‘pilight’][‘off_code_receive’][0][‘id’]. Got None
expected int for dictionary value @ data[‘switches’][‘pilight’][‘on_code_receive’][0][‘id’]. Got None.
It seems like home assistant expects an integer as the ID but it is actually a string.
If I take out the ID in my configuration all buttons of the rf remote switch turn on and off my pilight-switch.