01-16-2017, 10:15 PM
Hi,
I found an old "micro-electronic" switch and wanted to control it with pilight.
At first I tried it with the original remote and it works (turning on and off)
Then I recored the remote with pilight-receive:
Another capture:
After I tried some commands, the following worked (It turnes the switch off):
But turning on with the following command doesnt work:
All other commands I tried didn't work ...
The DIP in the Switch is: 110011 1000
The first 6 Bits are the system code, the last 4 the unit code
Any Idea what is wrong?
If I try using the arctech_switch_old protocol I get:
Thx in advance
I found an old "micro-electronic" switch and wanted to control it with pilight.
At first I tried it with the original remote and it works (turning on and off)
Then I recored the remote with pilight-receive:
Code:
proot@raspberrypi:/home/pi# pilight-receive
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 28,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 28,
"unit": 12,
"state": "on"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 1285,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 20,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 20,
"unit": 12,
"state": "on"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1284,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 28,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 20,
"unit": 12,
"state": "on"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 1285,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 20,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 16,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 1284,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 20,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"id": 20,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"id": 1284,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"id": 28,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
{
"message": {
"id": 28,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
{
"message": {
"id": 1285,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
{
"message": {
"id": 4,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 4,
"unit": 12,
"state": "on"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1284,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
Code:
root@raspberrypi:/home/pi# pilight-receive
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"systemcode": 19,
"unitcode": 3,
"state": "off"
},
"origin": "receiver",
"protocol": "elro_800_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"systemcode": 19,
"unitcode": 3,
"state": "off"
},
"origin": "receiver",
"protocol": "elro_800_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 1
}
{
"message": {
"id": 24,
"unit": 14,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 24,
"unit": 14,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 3329,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 3
}
{
"message": {
"id": 24,
"unit": 12,
"state": "down"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"systemcode": 19,
"unitcode": 3,
"state": "off"
},
"origin": "receiver",
"protocol": "elro_800_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 2
}
{
"message": {
"id": 24,
"unit": 12,
"state": "off"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"id": 1281,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 4
}
{
"message": {
"id": 28,
"unit": 12,
"state": "up"
},
"origin": "receiver",
"protocol": "arctech_screen_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
{
"message": {
"id": 28,
"unit": 12,
"state": "on"
},
"origin": "receiver",
"protocol": "arctech_switch_old",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
{
"message": {
"id": 1285,
"unit": -1
},
"origin": "receiver",
"protocol": "beamish_switch",
"uuid": "0000-b8-27-eb-d8f7fc",
"repeats": 5
}
After I tried some commands, the following worked (It turnes the switch off):
Code:
pilight-send -p kaku_screen_old -i 20 -u 12 -f
But turning on with the following command doesnt work:
Code:
pilight-send -p kaku_screen_old -i 20 -u 12 -t
All other commands I tried didn't work ...
The DIP in the Switch is: 110011 1000
The first 6 Bits are the system code, the last 4 the unit code
Any Idea what is wrong?
If I try using the arctech_switch_old protocol I get:
Code:
pilight-send: ERROR: this protocol is not supported or doesn't support sending
Thx in advance