03-13-2015, 03:15 PM
i just got an "Klik aan Klik Uit" remote type AYCT-102
however it is not recognized as a switch by the system it works fine
when i press the 1 ON button it shows 2 messages
i used the contact opened message
on 1 off it shows a closed message
with the code below it is working on my system
however it is not recognized as a switch by the system it works fine
when i press the 1 ON button it shows 2 messages
Code:
{
"message": {
"id": 8795658,
"unit": 0,
"state": "opened"
},
"origin": "receiver",
"protocol": "arctech_contact",
"uuid": "0000-00-00-68-a72f01",
"repeats": 1
}
{
"message": {
"id": 8795658,
"unit": 0,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen",
"uuid": "0000-00-00-68-a72f01",
"repeats": 1
}
i used the contact opened message
on 1 off it shows a closed message
with the code below it is working on my system
Code:
"devices": {
"KastLamp": {
"protocol": [ "kaku_switch_old" ],
"id": [{
"id": 25,
"unit": 0
}],
"state": "off"
},
"Remote1": {
"protocol": [ "kaku_contact" ],
"id": [{
"id": 8795658,
"unit": 0
}],
"state": "closed"
}
},
"rules": {
"KastLampOn": {
"rule": "IF Remote1.state IS opened THEN switch DEVICE KastLamp TO on",
"active": 1
},
"KastLampOff": {
"rule": "IF Remote1.state IS closed THEN switch DEVICE KastLamp TO off",
"active": 1
}
},