Yes, I ran pilight-receive
to get sensor information. Sensor sends signal for opening the door, closing the door and it also has a temper switch. My pilight-receive output looks like that:
{
"message": {
"systemcode": 27,
"unitcode": 25,
"state": "off"
},
"origin": "receiver",
"protocol": "elro_800_switch",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 30
}
{
"message": {
"id": 1,
"systemcode": 624,
"unit": 6,
"state": "off"
},
"origin": "receiver",
"protocol": "daycom",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 30
}
{
"message": {
"unitcode": 495087,
"state": "opened"
},
"origin": "receiver",
"protocol": "ev1527",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 30
}
{
"message": {
"systemcode": 27,
"unitcode": 25,
"state": "off"
},
"origin": "receiver",
"protocol": "heitech",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 31
}
{
"message": {
"systemcode": 17008,
"unitcode": 6,
"state": "off"
},
"origin": "receiver",
"protocol": "logilink_switch",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 31
}
{
"message": {
"id": 5,
"state": "on"
},
"origin": "receiver",
"protocol": "ehome",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 31
}
{
"message": {
"systemcode": 27,
"unitcode": 25,
"state": "closed"
},
"origin": "receiver",
"protocol": "elro_800_contact",
"uuid": "0000-b8-27-eb-7b7b97",
"repeats": 21
}
I need to extract information from protocol elro_800_contact
and ev1527
. I can successflly get it to work with elro_800_contact
, but ev1527
is stil giving me trouble. If I use unitcode I get from pilight-receive
pilight config json is invalid, because unitcode has to be between 0 and 20 - Ev1527 documentation . I think it has to do smth with converting to binary, then inverting? Similar to this LINK . Not really sure. If anyone knows how to get it working I would really appreciate it.