Topic-icon PHC 940 STM V1 an Openhab1 oder 2 anbinden.

Mehr
01 Mär 2017 15:56 #16 von idcotton
Hallo Zusammen,
wir haben gerade in den Bauunterlagen für das Haus, folgende Ausdrucke gefunden.
Das ist ein Teil der Konfiguration der 940 STM.

Ist jemand so nett und könnte mir ein Paar Beispiele für OpenHab geben, anhand dieser Bezeichnungen.
Die von Haribo sehen etwas anders aus und ich kann noch nicht so richtig den Zusammenhang erkennen.

Vielen Dank!


Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
02 Mär 2017 13:15 - 02 Mär 2017 13:18 #17 von haribo
Hallo Maik,

ich sitze leider nicht vor meinem System - versuche dir aus der Erinnerung dennoch, ein paar Denkanstöße zu geben.

Der Nachteil an deinem Ausdruck ist, dass er wenig Hinweise über die Lage der Lampen bzw. Steckdosen gibt. Ich würde daher mit einer der beiden Aussenbeleuchtungen starten.
Dazu musst du in der URL bei z. B. "AMD.05.03 Außenb. 21.1" den Ausdruck omd.05.out3 verwenden.
Weiterhin empfehle ich dir (so wie Andreas bereits getan), zunächst die Webseite von xWRC und dort die Kommandozeile zu nutzen. Dort kannst du die Befehle direkt absetzen. Erst wenn dies funktioniert, solltest du wieder via openhab testen.

Soweit ich weiß, lässt sich das Steuermodul nicht auslesen. Ich empfehle dir daher, dich mittels Systemsoftware zu verbinden und ein Projekt zu eröffnen. Dort solltest du zunächst alle Module aufnehmen. Diese sind ja auf deinem Foto abgebildet. Die Moduladressen kannst du den Stellungen der DIP-Schalter entnehmen.
Danach kannst du z. B. über die Service-Funktion Ausgänge umschalten und so nach und nach die exakte Belegung der einzelnen Ausgänge aufnehmen.
Das gleiche machst du mit der Service-Funktion für Eingänge.
Danach hast du die exakten Adressen der Eingänge und insbesondere der Ausgänge. Letztere solltes du in openhab referenzieren und schalten (nicht die Taster).
Zum Schluss wäre eine Nachbildung der vorhandenen Funktion und ein Upload in die Steuerung denkbar. Aber Vorsicht - es gibt kein zurück.
Habt ihr schon versucht, über den Vorbesitzer bzw. dessen Elektriker die Projektdatei zu bekommen?

Ich hoffe, meine Denkanstöße helfen dir weiter.

Gruß, Harald
Letzte Änderung: 02 Mär 2017 13:18 von haribo.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
13 Mär 2017 08:53 - 13 Mär 2017 08:59 #18 von idcotton
Guten Morgen Harald,
wir haben am Wochenende große Fortschritte gemacht.
Wir konnten alle Lampen, Rollos und Steckdosen identifizieren.
Es ist auch schon alles in OpenHAB2 eingetragen und Funktioniert.
44 Lampen
3 Steckdosen
16 Rollos
Folgende Probleme haben wir jetzt noch:

1. Eine Lampe ist wohl mit einem Dimmer belegt und verhält sich anders als die anderen Lampen. Die Lampe kann eingeschaltet werden und fängt dann an zu dimmen, von ganz hell bis ganz dunkel. Das macht die Lampe so lange, bis wir erneut ein einschalt Signal senden.
Dann bleibt die Lampe bei der Dimm Position stehen. Die Lampe reagiert aber nicht mehr auf ein Ausschaltsignal und muss manuell am Taster ausgeschaltet werden.
Hast Du hier eine Idee?

2. Der Schaltzustand wird in der OpenHab App angezeigt wenn ich die Aktoren darüber schalte,
Licht ON/OFF usw.
Wenn aber die Aktoren manuell am Taster geschaltet werden, wird der Schaltzustand in der App und in Openhab nicht registriert.
Ich denke deshalb benutzt Du xPHCLogd oder?
Wir haben die USB Sticks für die RS485 Schnittstelle schon in verschiedenen Varianten da und auch in ausreichender Stückzahl zum Tauschen. Ich habe gelesen, das auch bei Dir Probleme aufgetreten sind mit verschiedenen USB Sticks.
Ich habe deshalb drei Hersteller gewählt und jeweils 3 Stk. Bestellt.
Kannst Du mir vielleicht dein Vorgehen erklären, was ich beim MQTT Binding und xPHCLogd beachten muss. Bei Dir läuft es ja einwandfrei und ich wäre für die Hilfe echt dankbar.

3. Wenn Du auch Gruppen für Rollos und/oder Lampen erstellt hast, wäre es auch sehr nett von Dir, wenn wir Auszüge deiner Sitemap bekommen könnten.

Wenn noch jemand andere hilfreiche Informationen zu den oben genannten Themen hat, immer her damit. ;)
Danke und viele Grüße
Maik
Letzte Änderung: 13 Mär 2017 08:59 von idcotton.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
13 Mär 2017 09:27 #19 von idcotton
Hier mal meine Sitemap und Items:

Sitemap:
sitemap haus label="Haus" icon="house"{
    Frame label="Haus"{
        Text label="Rollos" icon="rollershutter" {

            Frame label="Küche" icon="kitchen" {
                           Switch item=Rollo16 label="Fenster Spüle Links [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo6 label="Fenster Spüle Rechts [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo15 label="Fenster Tisch [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo5 label="Tür [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Wohnzimmer" icon="sofa" {
                           Switch item=Rollo4 label="Tür Links [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo3 label="Tür Mitte [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo13 label="Tür Rechts [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo14 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Gäste WC EG" icon="toilet" {
                           Switch item=Rollo7 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Garderobe EG" icon="suitcase" {
                           Switch item=Rollo2 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Treppenhaus" icon="corridor" {
                           Switch item=Rollo8 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Schlafzimmer" icon="bedroom" {
                           Switch item=Rollo10 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Badezimmer" icon="bath" {
                           Switch item=Rollo9 label="Fenster [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Gästezimmer OG" icon="pantry" {
                           Switch item=Rollo11 label="Fenster groß [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                           Switch item=Rollo12 label="Fenster klein [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]
                   }
            Frame label="Gästezimmer KG" icon="pantry" {
                           Switch item=Rollo1 label="Tür [(%d)]" mappings=[UP="Hoch", STOP="X", DOWN="Runter"]         
                   
                   {
}
}

Text label="Licht" icon="light" {
            Frame label="Wohnzimmer" icon="hue" {
Switch item=L17 label="Stehlampe" icon="hue"
Switch item=L18 label="Bar Regal" icon="hue"
Switch item=L14 label="Esstisch" icon="hue"
Switch item=L9 label="Wasserfall" icon="rain"

                     
                            
}
            Frame label="Küche" icon="hue" {
Switch item=L27 label="Tisch" icon="hue"
Switch item=L26 label="Herd Arbeitsplatte" icon="hue"
Switch item=L28 label="Unterschrank" icon="hue"
}

            Frame label="Flur EG" icon="hue" {
Switch item=L12 label="Eingang Decke" icon="hue"
Switch item=L29 label="Stehlampe" icon="hue"
Switch item=L25 label="Treppe Keller" icon="hue"
}

            Frame label="WC EG" icon="hue" {
Switch item=L16 label="Decke" icon="hue"

}

            Frame label="Garderobe EG" icon="hue" {
Switch item=L10 label="Decke" icon="hue"

}
            Frame label="Gästezimmer KG" icon="hue" {
Switch item=L2 label="Decke" icon="hue"
Switch item=L3 label="Bad" icon="hue"
Switch item=L4 label="Terrasse" icon="hue"
}

            Frame label="Terrasse" icon="hue" {
Switch item=L19 label="Wandlampe groß" icon="hue"
Switch item=L22 label="Wandlampe klein" icon="hue"
Switch item=L20 label="Steckdose groß" icon="selfSocket"
Switch item=L23 label="Steckdose klein" icon="selfSocket"
}

           Frame label="Garten" icon="hue" {
Switch item=L19 label="Gartenlampen" icon="hue"
}

           Frame label="Badezimmer" icon="hue" {
Switch item=L33 label="Decke" icon="hue"
}

           Frame label="Schlafzimmer" icon="hue" {
Switch item=L35 label="Decke" icon="hue"
}

           Frame label="Gästezimmer OG" icon="hue" {
Switch item=L37 label="Decke Bett" icon="hue"
Switch item=L38 label="Decke" icon="hue"
}

           Frame label="Flur OG" icon="hue" {
Switch item=L31 label="Decke groß" icon="hue"
Switch item=L32 label="Decke klein" icon="hue"
Switch item=L47 label="Treppe" icon="hue"

}

           Frame label="Abstellraum OG" icon="hue" {
Switch item=L39 label="Decke" icon="hue"
}

           Frame label="Flur DG" icon="hue" {
Switch item=L42 label="Decke" icon="hue"
}

           Frame label="Gästezimmer DG" icon="hue" {
Switch item=L43 label="Decke" icon="hue"
}

           Frame label="WC DG" icon="hue" {
Switch item=L43 label="Decke" icon="hue"
}

           Frame label="Büro DG" icon="hue" {
Switch item=L45 label="Decke" icon="hue"
}


{

Items:
//Rollos
Rollershutter Rollo1 "Rolladen1" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out0.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out0.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out0.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out0.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out0.toggledown.1.1.300]"}
Rollershutter Rollo2 "Rolladen2" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out2.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out2.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out2.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out2.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out2.toggledown.1.1.300]"}
Rollershutter Rollo3 "Rolladen3" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out1.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out1.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out1.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out1.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out1.toggledown.1.1.300]"}
Rollershutter Rollo4 "Rolladen4" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out0.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out0.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out0.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out0.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out0.toggledown.1.1.300]"}
Rollershutter Rollo5 "Rolladen5" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out0.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out0.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out0.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out0.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out0.toggledown.1.1.300]"}
Rollershutter Rollo6 "Rolladen6" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out2.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out2.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out2.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out2.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out2.toggledown.1.1.300]"}
Rollershutter Rollo7 "Rolladen7" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out3.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out3.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out3.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out3.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out3.toggledown.1.1.300]"}
Rollershutter Rollo8 "Rolladen8" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out1.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out1.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out1.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out1.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out1.toggledown.1.1.300]"}
Rollershutter Rollo9 "Rolladen9" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out2.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out2.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out2.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out2.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out2.toggledown.1.1.300]"}
Rollershutter Rollo10 "Rolladen10" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out3.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out3.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out3.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out3.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.00.out3.toggledown.1.1.300]"}
Rollershutter Rollo11 "Rolladen11" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out0.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out0.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out0.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out0.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out0.toggledown.1.1.300]"}
Rollershutter Rollo12 "Rolladen12" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out1.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out1.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out1.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out1.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.01.out1.toggledown.1.1.300]"}
Rollershutter Rollo13 "Rolladen13" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out2.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out2.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out2.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out2.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out2.toggledown.1.1.300]"}
Rollershutter Rollo14 "Rolladen14" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out3.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out3.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out3.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out3.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.02.out3.toggledown.1.1.300]"}
Rollershutter Rollo15 "Rolladen15" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out1.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out1.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out1.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out1.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out1.toggledown.1.1.300]"}
Rollershutter Rollo16 "Rolladen16" (Rollos) {http=">[STOP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out3.stop.1] >[100:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out3.toggleup.1.1.300] >[0:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out3.toggledown.1.1.300] >[UP:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out3.toggleup.1.1.300] >[DOWN:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=jrm.03.out3.toggledown.1.1.300]"}

//Licht
Switch L1"L1" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out0.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out0.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out0&terse:10000:REGEX((.*))]"}
Switch L2"L2" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out1&terse:10000:REGEX((.*))]"}
Switch L3"L3" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out2&terse:10000:REGEX((.*))]"}
Switch L4"L4" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out3&terse:10000:REGEX((.*))]"}
Switch L5"L5" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out4&terse:10000:REGEX((.*))]"}
Switch L6"L6" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out5&terse:10000:REGEX((.*))]"}
Switch L7"L7" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out6&terse:10000:REGEX((.*))]"}
Switch L8"L8" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.04.out7&terse:10000:REGEX((.*))]"}
Switch L9"L9" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out0.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out0.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out0&terse:10000:REGEX((.*))]"}
Switch L10"L10" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out1&terse:10000:REGEX((.*))]"}
Switch L11"L11" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out2&terse:10000:REGEX((.*))]"}
Switch L12"L12" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out3&terse:10000:REGEX((.*))]"}
Switch L13"L13" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out4&terse:10000:REGEX((.*))]"}
Switch L14"L14" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out5&terse:10000:REGEX((.*))]"}
Switch L15"L15" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out6&terse:10000:REGEX((.*))]"}
Switch L16"L16" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.05.out7&terse:10000:REGEX((.*))]"}
Switch L17"L17" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out0.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out0.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out0&terse:10000:REGEX((.*))]"}
Switch L18"L18" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out1&terse:10000:REGEX((.*))]"}
Switch L19"L19" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out2&terse:10000:REGEX((.*))]"}
Switch L20"L20" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out3&terse:10000:REGEX((.*))]"}
Switch L21"L21" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out4&terse:10000:REGEX((.*))]"}
Switch L22"L22" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out5&terse:10000:REGEX((.*))]"}
Switch L23"L23" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out6&terse:10000:REGEX((.*))]"}
Switch L24"L24" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.06.out7&terse:10000:REGEX((.*))]"}
Switch L25"L25" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out0.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out0.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out0&terse:10000:REGEX((.*))]"}
Switch L26"L26" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out1&terse:10000:REGEX((.*))]"}
Switch L27"L27" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out2&terse:10000:REGEX((.*))]"}
Switch L28"L28" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out3&terse:10000:REGEX((.*))]"}
Switch L29"L29" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out4&terse:10000:REGEX((.*))]"}
Switch L30"L30" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out5&terse:10000:REGEX((.*))]"}
Switch L31"L31" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out1&terse:10000:REGEX((.*))]"}
Switch L32"L32" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out2&terse:10000:REGEX((.*))]"}
Switch L33"L33" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out3&terse:10000:REGEX((.*))]"}
Switch L34"L34" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out4&terse:10000:REGEX((.*))]"}
Switch L35"L35" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out5&terse:10000:REGEX((.*))]"}
Switch L36"L36" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out6&terse:10000:REGEX((.*))]"}
Switch L37"L37" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.08.out7&terse:10000:REGEX((.*))]"}
Switch L38"L38" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out0.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out0.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out0&terse:10000:REGEX((.*))]"}
Switch L39"L39" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out1.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out1.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out1&terse:10000:REGEX((.*))]"}
Switch L40"L40" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out2.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out2.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out2&terse:10000:REGEX((.*))]"}
Switch L41"L41" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out3.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out3.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out3&terse:10000:REGEX((.*))]"}
Switch L42"L42" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out4.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out4.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out4&terse:10000:REGEX((.*))]"}
Switch L43"L43" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out5.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out5.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out5&terse:10000:REGEX((.*))]"}
Switch L44"L44" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out6&terse:10000:REGEX((.*))]"}
Switch L45"L45" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.09.out7&terse:10000:REGEX((.*))]"}
Switch L46"L46" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out6.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out6.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out6&terse:10000:REGEX((.*))]"}
Switch L47"L47" (Licht) {http=">[ON:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out7.on] >[OFF:GET:http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out7.off] <[http://IP XWRC : PORT/icontrol.dll?ccmd=omd.07.out7&terse:10000:REGEX((.*))]"}











Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
13 Mär 2017 19:45 #20 von haribo
Hallo Maik,

herzlichen Glückwunsch - ihr scheint ja wirklich echte Fortschritte zu machen.

Zu 1.
Das Phänomen kenne ich nicht. Ich habe zurzeit einen Dimmer im Einsatz. Die gedimmte Leuchte kann ich über die Service-Funktion ein - und auschalten. Aber du wolltest sie ja nur identifizieren. Wenns über den Taster funktioniert ist ja alles gut.

Zu 2.
Ja - genau das ist der Grund, warum ich xPHClogd (und MQTT) verwende. Ich möchte den richtigen Status visualisieren - auch wenn jemand "an openhab vorbei" mit einem Taster schaltet.
Vorgehen (erst einmal grob):
- Zuerst muss xPHClogd funktionieren. Nutze am Anfang die --console Option. In der Ausgabe muss dann nach Umschalten eines Ausgangs (einer Leuchte) etwas wie folgt protokolliert werden:
017-02-20,20:37:16,00010010,CPhclogd::_decodeEnhModPublish,topic=myHouse/cmd/omd.0.out2,payload=on

- danach musst du MQTT konfigurieren und kannst die Rückmeldungen in openhab einbinden (bei Bedarf weitere Details wenn du den ersten Schritt geschafft hast. Ich habe im Moment nicht so viel Zeit)

Zu 3.
Gruppen von Rollos habe ich nicht. Ich habe aber Gruppen von Lampen bzw. Steckdosen gebildet und kann diese dann allesamt auf einen Blick darstellen. Ich hänge die Dateien einmal an - ist aber noch in Arbeit..


Gruß, Harald
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
13 Mär 2017 20:08 - 14 Mär 2017 08:10 #21 von idcotton
Hallo Harald,
vielen Dank!
Ja Du hast mit deiner Hilfe sehr zu unserem Erfolg beigetragen.
Ich werde jetzt weiter Vorgehen wie von Dir beschrieben. Ich melde mich wieder wenn ich weitere Details brauche. Für mich ist es auch immer eine große Herausforderung und tüftele gerne rum. Mein Nachbar wollte mir schon in seinem Haus ein Schlafplatz einrichten weil ich in den letzten Wochen viel Zeit bei Ihm verbracht habe. :-)

Vielleicht können wir Dich im Sommer mal zum Grillen einladen für deine Mühe :-)



Viele Grüße
Maik
Letzte Änderung: 14 Mär 2017 08:10 von idcotton.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Mär 2017 19:01 - 20 Mär 2017 19:13 #22 von idcotton
Hallo Harald,
ich habe die USB RS485 Schnittstelle erfolgreich konfiguriert.
XPHCLod funktioniert und gibt folgende Daten aus:
+ xPhcLogd   (Linux/RbPI) ------ v4.0.0.4, Sep 16 2016, Jo Simons (c) 2007-2016
+ =============================================================================
Press CTRL-C to quit...
2017-03-20,18:32:17,00090000,A,version=4.0.0.4,Sep 16 2016
2017-03-20,18:32:17,00090010,A,legend:
2017-03-20,18:32:17,00090011,A,  o0=out0-7,o1=out8-15
2017-03-20,18:32:17,00090012,A,  i0=in0-7,i1=in8-15
2017-03-20,18:32:17,00090013,A,  l0=out0,l1=out1,l2=out2,l3=out3 (amd/ebd/dim)


Schalten omd.07.out2 ON/OFF im Openhab IOS App:
2017-03-20,18:34:33,00010210,M,omd.7.out2.on
2017-03-20,18:34:33,00010240,M,omd.7.modAck,o0=4
2017-03-20,18:34:38,00010210,M,omd.7.out2.off
2017-03-20,18:34:38,00010240,M,omd.7.modAck,o0=0

Schalten am Taster per Hand:
2017-03-20,18:36:11,00010130,M,imd.1.in1.ingt0
2017-03-20,18:36:11,00010150,M,imd.1.stmAck
2017-03-20,18:36:11,00010210,M,omd.7.out2.toggle
2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=4
2017-03-20,18:36:14,00010130,M,imd.1.in1.ingt0
2017-03-20,18:36:14,00010150,M,imd.1.stmAck
2017-03-20,18:36:14,00010210,M,omd.7.out2.toggle
2017-03-20,18:36:14,00010240,M,omd.7.modAck,o0=0

XPHCLOG.INI sieht so aus:
; 
; PHC logger daemon settings
; 
[phclogd]

; xPhcLogd has 2 logging modes: 0=raw, 1=enhanced, default=1
;   raw      : log each packet as it arrives, some packets may have one or 2 meanings
;   enhanced : multiple packets are analyzed to determine the exact meaning
;mode=1


; xPhcLogd will capture logging data either via a serial port device or a UDP socket
;
; option 1: device to use for capturing, i.e. COM1, /dev/ttyUSB0
;           connect serial port ground to 'A' wire of PHC module bus
;           connect serial port RX     to 'B' wire of PHC module bus
;device=\\.\COM1
;device=\\.\COM11
device=/dev/ttyUSB0

; option 2: listener socket to receive UDP packets from RS232-to-IP convertor
;           connect RS232 port ground to 'A' wire of PHC module bus
;           connect RS232 port RX     to 'B' wire of PHC module bus
;           make sure the convertor sends each byte it receives on RS232 side
;             as a UDP packet to <locaddr>:<locport> without delay or caching
;locaddr=192.168.0.0
;locport=4002


; xPhcLogd will apply default message decoding per module class as follows:
;  class 0: default=imd, contains imd,imw,tab,et0
;  class 1: default=uim, contains uim,utm,bwm,et1,mcc
;  class 2: default=omd, contains omd,jrm
;  class 3: default=amd, contains amd,fui,fu2
;  class 4: default=ebs, contains ebs,ebr,ebd
;  class 5: default=dim, contains dim
;
; This might lead to wrong output, so one can override specific module types, syntax:   
;   modules=<mod>.<addr> *[;<mod>.<addr>]
;
; Where:
; mod  : imd,imw,tab,et0,uim,utm,bwm,et1,mcc,omd,jrm,amd,fui,fu2,ebs,ebr,ebd,dim
; addr : 0-31
;
;modules=imd.0;imw.1;tab.2;et0.3;uim.0;utm.1;bwm.2;et1.3;mcc.4;omd.0;jrm.1;amd.0;fui.1;fu2.2;ebs.0;ebr.1;ebd.2;dim.0
modules=jrm.0;omd.0

; MQTT publish nodeid, identifies your PHC system, string upto 32 chars, default="xphclogd"
; used to compose topic in publish msgs:
;   topic=<nodeid>/sta/<mod>.<addr>.<chn><nbr>  ,data=0..255
;   topic=<nodeid>/evt/<mod>.<addr>[.<chn><nbr>],data=<event>
;   topic=<nodeid>/cmd/<mod>.<addr>[.<chn><nbr>],data=<cmd>[.<parms>]
;   topic=<nodeid>/boo/<mod>.<addr>             ,data=<boot-cfg>
nodeid=myHouse

; publish flags, bitwise OR of following values:
;   1: publish module status updates
;   2: publish module events
;   4: publish module commands
;   8: publish module boot info
publish=7


; 
; MQTT client settings for remote broker
;
[mqttcd]

; MQTT broker remote ip address, default=127.0.0.1
;remaddr=212.72.74.21
;remaddr=85.119.83.194
remaddr=192.168.178.23

; MQTT broker remote ip port, default=1883
;remport=1883

; MQTT connect username if needed to connect to broker, optional, no default
;username=username

; MQTT connect password if needed to connect to broker, optional, no default
;password=password

; MQTT connect clientid used during connect to broker, default="CMqttcd/1.0"
clientid=myHouse

Das MQTT Binding habe ich in OpenHab2 installiert.
Die MQTT.cfg sieht so aus:

#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
#

# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
mqtt:mosquitto.url=tcp://localhost:1883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
mosquitto.clientId=myHouse

# Optional. User id to authenticate with the broker.
#<broker>.user=<user>

# Optional. Password to authenticate with the broker.
#<broker>.pwd=<password>

# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
#<broker>.qos=<qos>

# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
#<broker>.retain=<retain>

# Optional. True or false. Defines if messages are published asynchronously or
# synchronously. Defaults to true.
#<broker>.async=<async>

# Optional. Defines the last will and testament that is sent when this client goes offline
# Format: topic:message:qos:retained <br/>
#<broker>.lwt=<last will definition>

Das OpenHab2 ITEM sieht so aus:
Switch L27T"L27T" (EG_Kueche) {http=">[ON:GET:http://192.168.178.28:8080/icontrol.dll?ccmd=omd.7.out2.on] >[OFF:GET:http://192.168.178.28:8080/icontrol.dll?ccmd=omd.7.out2.off]", mqtt="<[mosquitto:myHouse/sta/omd.7.out.2:state:ON:1], <[mosquitto:myHouse/sta/omd.7.out.2:state:OFF:0]" }

Nur leider verändert sich der Status in der Openhab IOS App nicht wenn ich die Schalter manuell per Hand an der Wand schalte.
Was habe ich falsch gemacht?!?

Openhab2 und Mosquitto läuft auf dem RSP2 mit der IP:192.168.178.23
XWRC und XPHCLog läuft auf dem RSP2 mit der IP:192.168.178.28

Danke und Gruß
Maik
Letzte Änderung: 20 Mär 2017 19:13 von idcotton.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Mär 2017 21:05 #23 von haribo
Hallo Maik,

ich habe in der mqtt.cfg noch ein paar optionale Parameter gesetzt - ist aber glaube ich nicht relevant:
mqtt:mosquitto.qos=1
mqtt:mosquitto.retain=true
mqtt:mosquitto.async=false

Die modules-Angabe ist - soweit ich das verstehe - nicht korrekt. Sie müsste bei dir etwa wie folgt aussehen:
modules=jrm.4;jrm.5;jrm.6;jrm.7
Du musst dort deine 4 JRM-Module mit den verwendeten Adressen auflisten.


Wenn xphclogd und mosquitto auf dem gleichen Rechner laufen, dann probier mal in der xphclogd.ini statt remaddr=192.168.178.23
explizit remaddr=127.0.0.1 zu setzen (hatte bei mir auch Anlaufschwierigkeiten damit).

Ob mosquitto Daten von xphclogd empfaengt, kannst du wie folgt testen:
root@raspberrypi:~# mosquitto_sub -d -t 'myHouse/#'
Client mosqsub/29368-raspberry received PUBLISH (d0, q0, r0, m0, 'myHouse/cmd/omd.7.out2', ... (6 bytes))
toggle
Client mosqsub/29368-raspberry received PUBLISH (d0, q0, r0, m0, 'myHouse/evt/omd.7', ... (2 bytes))
on
Client mosqsub/29368-raspberry received PUBLISH (d0, q0, r0, m0, 'myHouse/sta/omd.7.out.2', ... (1 bytes))
1
Client mosqsub/29368-raspberry received PUBLISH (d0, q0, r0, m0, 'myHouse/cmd/dim.1', ... (6 bytes))
status

Bevor dir der MQTT-Client mosquitto_sub keine Daten anzeigt, brauchst du unter openhab nicht weiter suchen.

Viel Erfolg!

Harald

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 08:08 - 21 Mär 2017 08:38 #24 von idcotton
Hallo Harald,
ich bekomme Daten zu Mosquitto gesendet.

Das habe ich noch nicht verstanden:

Die modules-Angabe ist - soweit ich das verstehe - nicht korrekt. Sie müsste bei dir etwa wie folgt aussehen:

modules=jrm.4;jrm.5;jrm.6;jrm.7

Du musst dort deine 4 JRM-Module mit den verwendeten Adressen auflisten.


Ich benutze doch nur jrm.0 und omd.0 (siehe Items oben).

Ich habe gesehen, dass du eine andere Schreibweise benutzt.
Ich schreibe omd.07.out1 und du omd.7.out1.
Werde das bei mir mal ändern und dann die modules= richtig eintragen!

Bekommst Du denn die Schaltzustände im Openhab angezeigt, wenn Du die Schalter an der Wand manuell betätigst?

Dann habe ich in deiner Items Datei gesehen, dass du den Status der Rollos nicht per Mosqoitto bekommst.
Hat das einen Grund, oder hast du das nur noch nicht umgesetzt.

Gruß
Maik
Letzte Änderung: 21 Mär 2017 08:38 von idcotton.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 10:46 #25 von idcotton
Hallo Harald,
ich habe die Änderung in der XPHCLOG.INI jetzt durchgeführt in Bezug auf die Module.
Modules=modules=jrm.0;jrm.1;jrm.2;jrm.3;omd.4;omd.5;omd.6;omd.7;omd.8;omd.9

Mir ist noch etwas aufgefallen.
Wenn ich per Openhab App schalte, dann kommt der ON/OFF Status zurück.
2017-03-20,18:34:33,00010210,M,omd.7.out2.on
2017-03-20,18:34:33,00010240,M,omd.7.modAck,o0=4
2017-03-20,18:34:38,00010210,M,omd.7.out2.off
2017-03-20,18:34:38,00010240,M,omd.7.modAck,o0=0

Wenn ich manuell per Taster Schalte, dann kommt nur Toggle zurück.
2017-03-20,18:36:11,00010130,M,imd.1.in1.ingt0
2017-03-20,18:36:11,00010150,M,imd.1.stmAck
2017-03-20,18:36:11,00010210,M,omd.7.out2.toggle
2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=4
2017-03-20,18:36:14,00010130,M,imd.1.in1.ingt0
2017-03-20,18:36:14,00010150,M,imd.1.stmAck
2017-03-20,18:36:14,00010210,M,omd.7.out2.toggle
2017-03-20,18:36:14,00010240,M,omd.7.modAck,o0=0

Kann dass das Problem sein, warum der Status bei manueller Schaltung nicht an OpenHab zurück gegeben wird?

Danke und Gruß
Maik

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 11:01 #26 von Andreas
Hallo Maik,


auf dem internen RS485-Bus sieht man die Befehle, die von der STM zu den Modulen und umgekehrt gehen.
Über OpenHAB schaltest Du den Ausgang direkt auf ein bzw. aus. Das siehst Du als ON bzw. OFF.
Über den Taster an einem Eingangsmodul benutzt Du den Befehl "Ausgang umschalten", was Du als "Toggle" siehst.
D.h. erst das Ausgangsmodul legt dann fest, ob ein- oder ausgeschaltet wird, je nach Zustand des Ausgangs.
OpenHAB kann jetzt mit "Toggle" nichts anfangen, daher siehst Du auch keine Visualisierung.

Ändern könntest Du das in der PHC-Programmierung wie folgt:
Bisher hast Du eine einfache Verbindung
Eingang>0, dann Ausgang umschalten
Jetzt müsstest Du eine Verknüpfung programmieren:
Eingang>0 UND-Bedingung Ausgang=AUS, dann Ausgang einschalten, sonst Ausgang ausschalten


Gruß
Andreas

PHC STM V2, EMD,AMD,JRM und DIM-Module, Wind, Regen und Sonnen-Sensor, Visualisierung mit OpenHAB

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 11:10 - 21 Mär 2017 11:26 #27 von idcotton
Hallo Andreas,
da sind wieder meine Probleme.
Ich kann an der PHC Programmierung nichts ändern.

Kann ich evt. diese Meldungen für die Visualisierung verwenden?

Hier kommt nämlich bei beiden Schaltvorgängen der gleiche Wert.

2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=4 ( für ON)

2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=0 (für OFF)

Vielleicht kann man das in Kombination abfragen, da ja das out.xx in dieser Zeile fehlt.

Hast Du dazu eine Idee?
So sieht das ITEM im Openhab bis jetzt aus:
Switch L1"L1" (EG_Kueche) 
{ http=">[ON:GET:http://192.168.178.28:8080/icontrol.dll?ccmd=omd.4.out0.on] >[OFF:GET:http://192.168.178.28:8080/icontrol.dll?ccmd=omd.4.out0.off]", 
  mqtt="<[mosquitto:myHouse/sta/omd.4.out.0:state:ON:1], <[mosquitto:myHouse/sta/omd.4.out.0:state:OFF:0]" }

Danke und Gruß
Maik
Letzte Änderung: 21 Mär 2017 11:26 von idcotton.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 11:48 #28 von Andreas
Hallo Maik,

ich weiß nicht, ob man den xPHClogd so konfigurieren kann, dass Du auch die "modACK" bekommst...
In dem modACK des Ausgangsmoduls ist der Status ALLER Ausgänge binär codiert.
Deine 4 bedeutet also, dass Ausgang 2 an ist und alle anderen Ausgänge aus.
Du könntest also dafür in OpenHAB eine Regel machen, die diese Antwort auswertet und somit den Status aller Ausgänge dieses Ausgangsmoduls setzt. Das sollte klappen.

Gruß
Andreas

PHC STM V2, EMD,AMD,JRM und DIM-Module, Wind, Regen und Sonnen-Sensor, Visualisierung mit OpenHAB

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 12:11 #29 von haribo
Hallo Maik,

ich kenne das Problem und es verhält sich so, wie Andreas beschrieben hat.

Allerdings hätte ich noch eine andere Lösungsvariante. Ich habe eine Dummy-Funktion genutzt, in der alle Rückmeldungen aller Ausgangsmodule einen Merker setzen bzw. rücksetzen. Erst, wenn PHC den Status eines Ausgangs verarbeiten musst, wird offensichtlich beim Togglen auch der Status übermittelt.

Hast du zufällig einen Ausgang (z. B. Bad/WC), dessen Schaltzustand über LED angezeigt wird? Wenn ja, könntest du damit mal testen. Dann sollte ein Status-Update auch beim Togglen übermittelt werden.
Anderenfalls musst du wohl die Steuerung nachprogrammieren :-(.

Gruß, Harald

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Mär 2017 12:26 #30 von haribo

Kann ich evt. diese Meldungen für die Visualisierung verwenden?

Hier kommt nämlich bei beiden Schaltvorgängen der gleiche Wert.

2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=4 ( für ON)

2017-03-20,18:36:11,00010240,M,omd.7.modAck,o0=0 (für OFF)

Vielleicht kann man das in Kombination abfragen, da ja das out.xx in dieser Zeile fehlt.


Es schein ein Idikator für den Schaltzustand zu sein. Ich fürchte, dass diese Informationen nicht beim MQTT-Broker ankommen, weil xphclogd sie nicht auswertet bzw. weiterreicht. Du kannst ja mal schauen, was in den beiden Schaltszenarien beim MQTT-Broker ankommt.

Generell würde ich dir empfehlen, ein zweites gebrauchtes Steuermodul zu beschaffen, um dort die Anlage nachzuprogrammieren. Nachdem du ja alles identifiziert hast, ist das kein so großes Problem mehr. Und wenn du auf einem zweiten Modul arbeitest, kannst du zum Feierabend solange das Projekt noch nicht abgeschlossen ist das alte STM ja wieder in Betrieb nehmen.
Schau mal: www.ebay.de/itm/940-STM-PHC-Steuerung-He...e:g:1ZEAAOSwhlZYsvWh

Gruß Harald

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum