Hallo zusammen,
ich bin die Do it Yourself Anleitung durchgegangen um meine Funksteckdosen mit Pilight zu steuern. Die Steckdosen sind vom Aldi.
Soweit so gut… Die WEB-Gui funktioniert und auch der pilight-receive funktioniert denn ich bekomme jedemenge Protokolle angezeigt und jetzt kommt glaube ich auch schon mein Problem.
Hier die Ausgaben aus dem pilight-receive:
{
"code": {
"id": 0,
"temperature": 0
},
"origin": "receiver",
"protocol": "alecto_wsd17",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"systemcode": 15,
"unitcode": 15,
"state": "on"
},
"origin": "receiver",
"protocol": "home_easy_old",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"systemcode": 0,
"unitcode": 0,
"state": "on"
},
"origin": "receiver",
"protocol": "elro_he",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": 0,
"humidity": 0,
"battery": 0
},
"origin": "receiver",
"protocol": "teknihall",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": 0
},
"origin": "receiver",
"protocol": "alecto_wsd17",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "clarus_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": 0,
"temperature": -6777,
"humidity": 0,
"battery": 1,
"channel": 1
},
"origin": "receiver",
"protocol": "tfa",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "rev2_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
{
"code": {
"id": "F0",
"unit": 0,
"state": "off"
},
"origin": "receiver",
"protocol": "clarus_switch",
"uuid": "0000-00-00-55-a88da1",
"repeats": 1
}
so, jetzt habe ich mir einen Code rausgesucht und ihn in die config.json eingetragen:
{
“living”: {
“name”: “Living”,
“switch”: {
“name”: “Switch”,
“protocol”: [ “clarus_switch” ],
“id”: [{
“id”: “A2”,
“unit”: 10
}],
“state”: “off”
}
}
}
dann starte ich den service pilight start und nehme mir mein Tab und verbinde mich. Aber es passiert nichts. Ich kann den On/Off schalter bewegen wie ich will but nothing happens.
ko
Was ich auch nicht verstehen, ist die hardware.json. Ich habe gelesen, das man das Pinmapping konfigurieren soll was ich auch getan habe. Der Standarteintrag scheint ja für sender 0 und receiver 1 zu sein. Ich habe den Sender am Raspi an Pin17 und den Receiver auf Pin 18. Müssen die beiden Werte da eingetragen werden? Denn wenn ich das tue funktioniert pilight-receive nicht mehr.
Was mache ich falsch?
Grüße