Willkommen › Foren › LogoControl › Domoticz… Hat das schon jemand im Einsatz!?
Verschlagwortet: config.xml, Domoticz, LogoControl
- Dieses Thema hat 9 Antworten sowie 2 Stimmen und wurde zuletzt vor vor 8 Jahren, 12 Monaten von
grobie aktualisiert.
-
AutorBeiträge
-
3. März 2016 um 15:13 #2671
grobie
TeilnehmerHallo,
ich habe gestern auf meinem Raspberry LogoContol in Betrieb genommen… Echt klasse!!! Allerdings benutze ich nicht FHEM sondern Domoticz für die restliche Steuerung. Ich kann auch schon aus Domoticz Schaltbefehle an die Logo senden. Was aber noch nicht funktioniert, ist das Schalten von der Logo in Domoticz… Man kann in Domoticz zwar auch per HTML-Befehl etwas auslösen, aber wenn ich diese URL in der config.xml von LogoControl eintrage, startet der Server nicht mehr!?
Hat vielleicht noch jemand erfahrung mit Domoticz und LogoControl???
Gruß, Olli
3. März 2016 um 16:54 #2672admin
AdministratorAlso mit Domoticz habe ich keine Erfahrungen. Aber kannst du mal die URL aus deiner config.xml hier posten welche LogoControl zum Absturz bringt und somit den Start verhindert? Das sollte nämlich nicht passieren und würde ich gerne fixen. Als Workaround kannst du mit LogoControl auch ein Shell-Script aufrufen und in diesem dann z.B. einfach ein wget oder curl machen.
3. März 2016 um 19:04 #2673grobie
TeilnehmerHallo, wollte mich jetzt mal an ein SHELL-Script machen… Das hier wäre der aufruf:
http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=32&switchcmd=Toggle
Damit startet LogoControl erst gar nicht…
3. März 2016 um 19:29 #2674grobie
TeilnehmerSo, kurze Rückmeldung:
ich bin begeistert!!! Mit Script funktioniert alles bestens… Ich kann aus Domotics die Logo schalten und aus der Logo die Geräte die über Funk von Domoticz gesteuert werden… Habe auch langsam verstanden wie ich mein Logo-Programm und die Config.xml anpassen muss… Was mir jetzt noch fehlt, ist der Gerätestatus gesyncht ist, aber das kommt später. Vielleicht hat ja hier jemand einen Hinweis 🙂
Erst mal muss ich jetzt meine Logo 0ba6 gegen die 0ba7 tauschen !!!
Viele Dank auch für den schnellen Support… Freue mich wenn Du das mit dem HTML-Aufruf auch noch fixen kannst!
Gruß, Olli
4. März 2016 um 9:58 #2675admin
AdministratorHi,
hab die Ursache gefunden. Wenn du
http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=32&switchcmd=Toggle
als url Attribute im XML einträgst wird das XML invalide. Du musst stattdessen folgendes eintragen:
http://raspberry.fritz.box:8080/json.htm?type=command&param=switchlight&idx=32&switchcmd=Toggle
Hintergrund: in XML müssen bestimmte Sonderzeichen escaped werden, unter anderem das & durch ein & aber auch noch weitere:
" "
' '
< <
> >
& &Generell startet LogoControl nur, wenn die config.xml valide ist. Du solltest daher die Änderungen an der config.xml lieber über die WebUI machen, denn dort wird die XML *vor* dem Speichern validiert und nur eine fehlerfreie Datei gespeichert.
4. März 2016 um 11:24 #2683grobie
TeilnehmerAhha… Das werde ich ausprobieren… Super, Deine Unterstützung hier!!!
5. März 2016 um 0:14 #2684grobie
TeilnehmerHallo, HTML-Aufruf funktioniert jetzt… Nur wenn ich die config.xml abermals über den Browser bearbeite sind die Sonderzeichen nicht mehr escaped…!?
Trotzdem, ich bin begeistert… Alles was ich bis jetzt gemacht habe funktioniert…
7. März 2016 um 16:53 #2685admin
AdministratorOkay, da hast du nun wirklich einen Bug gefunden. Das XML wurde bei der Anzeige im Browser nicht richtig escaped, so dass deine manuell escapte Sonderzeichen bei der Anzeige wieder nicht escaped waren. Ist gefixt und wird in der nächsten Version enthalten sein. Danke für die Rückmeldung!
15. März 2016 um 13:17 #2709grobie
TeilnehmerHallo nochmal… Ich wollte mich nur noch mal für diese super Software bedanken!!! Mittlerweile habe ich alles am laufen… Danke!!!
Falls mal jemand nach Domoticz sucht hier der Inhalt meiner config.xml:
<configuration> <settings> <logo ip="192.168.178.2" /> <httpWebservice port="8089" /> </settings> <infrastructure> <group name="Erdgeschoss"> <group name="Wohnzimmer"> <device id="101" name="Licht" type="light"> <attribute id="1" name="state" address="942.3" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="1.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="1.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="102" name="Funksteckdose 1" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=88&switchcmd=Toggle" /> <trigger address="948.0" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> <device id="103" name="Funksteckdose 2" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=93&switchcmd=Toggle" /> <trigger address="948.5" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> <device id="104" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=13&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=14&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=15&switchcmd=Toggle"/> </device> </group> <group name="Esszimmer"> <device id="201" name="Licht" type="light"> <attribute id="1" name="state" address="942.5" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="2.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="2.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="202" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=16&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=17&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=18&switchcmd=Toggle"/> </device> </group> <group name="Küche"> <device id="301" name="Licht" type="light"> <attribute id="1" name="state" address="942.6" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="3.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="3.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="302" name="Funksteckdose" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=90&switchcmd=Toggle" /> <trigger address="948.1" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> <device id="303" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=19&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=20&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=21&switchcmd=Toggle"/> </device> </group> <group name="WC EG"> <device id="401" name="Licht" type="light"> <attribute id="1" name="state" address="942.7" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="4.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="4.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> </group> <group name="Windfang"> <device id="501" name="Licht" type="light"> <attribute id="1" name="state" address="942.1" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="5.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="5.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> </group> </group> <group name="Obergechoss"> <group name="Ankleidezimmer"> <device id="701" name="Licht" type="light"> <attribute id="1" name="state" address="943.0" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="7.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="7.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="702" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=25&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=26&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=27&switchcmd=Toggle"/> </device> </group> <group name="Kinderzimmer"> <device id="801" name="Licht" type="light"> <attribute id="1" name="state" address="943.1" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="8.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="8.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="802" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=28&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=29&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=30&switchcmd=Toggle"/> </device> </group> <group name="Büro"> <device id="901" name="Licht" type="light"> <attribute id="1" name="state" address="943.2" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="9.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="9.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="902" name="Funksteckdose" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=91&switchcmd=Toggle"/> <trigger address="948.2" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> <device id="903" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=11&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=12&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=10&switchcmd=Toggle"/> </device> </group> <group name="Badezimmer"> <device id="1001" name="Licht" type="light"> <attribute id="1" name="state" address="943.3" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="10.1" /> <method id="2" name="aus" address="10.2" /> </device> <device id="1002" name="Rolladen" type="custom"> <method id="1" name="hoch" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=22&switchcmd=Toggle"/> <method id="2" name="stop" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=23&switchcmd=Toggle"/> <method id="3" name="runter" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=24&switchcmd=Toggle"/> </device> </group> </group> <group name="Dachgeschoss"> <group name="Schlafzimmer"> <device id="1101" name="Licht" type="light"> <attribute id="1" name="state" address="943.4" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="11.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="11.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> <device id="1102" name="Funksteckdose" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=89&switchcmd=Toggle" /> <trigger address="948.3" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> </group> <group name="WC DG"> <device id="1202" name="Licht" type="light"> <attribute id="1" name="state" address="943.5" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="12.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1" /> <method id="2" name="aus" address="12.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0" /> </device> </group> </group> <group name="Allgemein"> <group name="Flur"> <device id="601" name="Flur" type="light"> <attribute id="1" name="state" address="942.2" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="6.1" /> <method id="2" name="aus" address="6.2" /> </device> <device id="602" name="Funksteckdose" type="light"> <method id="1" name="ein/aus" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchlight&idx=92&switchcmd=Toggle" /> <trigger address="948.4" datatype="bit"> <onValue value="0" method="1" /> <onValue value="1" method="1" /> </trigger> </device> </group> <group name="Extern"> <device id="1401" name="Aussenlicht" type="light"> <attribute id="1" name="state" address="942.0" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="14.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=1"/> <method id="2" name="aus" address="14.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0"/> </device> <device id="1301" name="Garagentor" type="custom"> <method id="1" name="auf/zu" address="13.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=XX&nvalue=0"/> </device> </group> <group name="Heizung"> <device id="1501" name="Sparbetrieb" type="custom"> <attribute id="1" name="state" address="943.6" datatype="bit"> <valuetext value="1" text="aus" /> <valuetext value="0" text="ein" /> </attribute> <method id="0" name="ein" address="15.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=108&nvalue=0"/> <method id="1" name="aus" address="15.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=108&nvalue=1"/> </device> </group> <group name="Rolladen"> <device id="1601" name="Alle hoch" type="custom"> <method id="1" name="ein" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=9&switchcmd=on" /> <trigger address="949.1" datatype="bit"> <onValue value="1" method="1" /> </trigger> </device> <device id="1602" name="Sonnenschutz Straßenseite" type="custom"> <method id="1" name="ein" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=32&switchcmd=On"/> </device> <device id="1603" name="Sonnenschutz Gartenseite" type="custom"> <method id="1" name="ein" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=switchscene&idx=31&switchcmd=On"/> </device> </group> </group> </infrastructure> </configuration>
Damit funktioniert auch die Statusaktualisierung der Domoticz-Schalter bei bedienung über LogoControl…
Gruß, Olli
-
Diese Antwort wurde vor vor 8 Jahren, 12 Monaten von
grobie bearbeitet.
15. März 2016 um 17:18 #2711grobie
TeilnehmerHabe gerade meine config.xml getestet… ich musste noch Trigger (in config.xml) und Merker (Logo) einfügen damit es funktioniert…
<group name="Extern"> <device id="1401" name="Aussenlicht" type="light"> <attribute id="1" name="state" address="942.0" datatype="bit"> <valuetext value="0" text="aus" /> <valuetext value="1" text="an" /> </attribute> <method id="1" name="ein" address="14.1" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=50&nvalue=1"/> <method id="2" name="aus" address="14.2" url="http://raspberry.fritz.box:8080/json.htm?type=command¶m=udevice&idx=50&nvalue=0"/> <trigger address="949.3" datatype="bit"> <onValue value="0" method="2" /> <onValue value="1" method="1" /> </trigger> </device>
Somit hat jetzt jeder meiner Ausgänge noch einen Merker bekommen und LogoControl Trigger´t diesen und Aktualisiert damit in Domoticz die Schalter…
-
Diese Antwort wurde vor vor 8 Jahren, 12 Monaten von
grobie bearbeitet.
-
Diese Antwort wurde vor vor 8 Jahren, 12 Monaten von
-
AutorBeiträge
- Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.