Fehlermeldung beim speichern der config.xml!!!

Willkommen Foren LogoControl Fehlermeldung beim speichern der config.xml!!!

6 Beiträge anzeigen - 1 bis 6 (von insgesamt 6)
  • Autor
    Beiträge
  • #3120
    grobie
    Teilnehmer

    Hallo, ich habe gerade versucht meine config.xml anzupassen. Es kommt beim speichern aber zu einer Fehlermeldung!!!

    „Error saving config.xml. expected ‚;‘ but found’=’… mit dem verweis auf eine Zeile in der folgender HTTP-Aufruf mit ‚method‘ gemacht wird:

    http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=32&nvalue=0“

    mit der alten LogoControl-Version funktionierte das bestens!?

    Mit dem Aufruf wird der Status der Logo an Domoticz weitergegeben…

    #3121
    admin
    Administrator

    Hi,

    versuch mal das Kaufmannsund zu escapen, ist sonst wohl nicht XML-Konform:
    http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents

    #3123
    grobie
    Teilnehmer

    Danke das war schon mal gut, die nächste Fehlermeldung kam aber prompt:

    Error saving … Invalid identity constraints were found. Referenced key was not found: line 0, position 0

    ???

    #3124
    grobie
    Teilnehmer

    hier mal meine config.xml:

    
    <configuration>
    	<settings>
    		<plc id="myLogo" type="Logo7" ip="0.0.0.0" />
    		<httpWebservice port="8088" />
    		<valueTextConverter>
    			<!-- Verschiedene Konverter zur Überführung von Value (ganzzahliger Rohwert aus der Logo) in ValueText (Anzeigewert für den Benutzer) -->
    			<textMapping id="an_aus">
    				<!-- Text-Mapping für aus (0) und an (1) -->
    				<valueText value="0" text="aus" />
    				<valueText value="1" text="an" />
    			</textMapping>
    			<textMapping id="rollo">
    				<!-- Text-Mapping für Rolläden -->
    				<valueText value="1" text="hoch" />
    				<valueText value="2" text="stop" />
    				<valueText value="3" text="runter" />
    			</textMapping>
    		</valueTextConverter>
    	</settings>
    	<infrastructure>
    		<group name="Erdgeschoss">
    		<group name="Wohnzimmer">
        		<device id="101" name="Licht" type="light">
    					<attribute id="1" name="state" plc="mylogo" address="942.3" valueTextConverter="an_aus"/>
    					<method id="1" name="ein" plc="myLogo" address="1.1"/>
    					<method id="2" name="aus" plc="myLogo" address="1.2"/>
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=32&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=32&nvalue=1"/>
                        
                        <trigger address="949.6" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
    			</device>
                <device id="102" name="Funksteckdose 1" type="light">
                      		
    					<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=88&switchcmd=Toggle" />
    				
    					<trigger address="948.0" datatype="bit">
    						<onValue value="1" method="1" />
    					</trigger>
    			</device>
                <device id="103" name="Funksteckdose 2" type="light">
                        		
    					<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=93&switchcmd=Toggle" />	
    				
    					<trigger address="948.5" datatype="bit">
    						<onValue value="1" method="1" />
    					</trigger>
    			</device>
                <device id="104" name="Rolladen" type="custom">
    
               			<method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=13&switchcmd=Toggle"/>
    	                <method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=14&switchcmd=Toggle"/>
    	                <method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=15&switchcmd=Toggle"/>
    			</device>
    		</group>
    		<group name="Esszimmer">
    			<device id="201" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="942.5" valueTextConverter="an_aus"/>
    					<method id="1" name="ein" plc="myLogo" address="2.1" />
    					<method id="2" name="aus" plc="myLogo" address="2.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=43&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=43&nvalue=1"/>
                    	
                        <trigger address="949.7" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
           		<device id="202" name="Rolladen" type="custom">
    
               			<method id="1" name="hoch" url="http:/192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=16&switchcmd=Toggle"/>
               			<method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=17&switchcmd=Toggle"/>
               			<method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=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" plc="myLogo" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="3.1" />
    					<method id="2" name="aus" plc="myLogo" address="3.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=42&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=42&nvalue=1"/>
                        
    					<trigger address="950.0" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                 </device>				
    			<device id="302" name="Funksteckdose" type="light">
    
                		<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=90&switchcmd=Toggle" />
    
    					<trigger address="948.1" datatype="bit">
    						<onValue value="1" method="1" />
    					</trigger>
    			</device>
    	        <device id="303" name="Rolladen" type="custom">
    
               			<method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=19&switchcmd=Toggle"/>
    	                <method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=20&switchcmd=Toggle"/>
    	                <method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=21&switchcmd=Toggle"/>
    			</device>
    		</group>
    		<group name="WC EG">
    			<device id="401" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="942.7" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="4.1" />
    					<method id="2" name="aus" plc="myLogo" address="4.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=41&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=41&nvalue=1"/>
                        
                        <trigger address="950.1" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
         		</device>
    		</group>
    		<group name="Windfang">
    			<device id="501" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="942.1" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="5.1" />
    					<method id="2" name="aus" plc="myLogo" address="5.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=40&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=40&nvalue=1"/>
                        
                        <trigger address="949.4" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                 </device>
    		</group>
          	</group>
    		<group name="Obergechoss">
    		<group name="Ankleidezimmer">
    			<device id="701" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="943.0" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="7.1" />
    					<method id="2" name="aus" plc="myLogo" address="7.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=38&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=38&nvalue=1"/>
                        
                        <trigger address="950.2" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
    	        <device id="702" name="Rolladen" type="custom">
    
    					<method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=25&switchcmd=Toggle"/>
    			       	<method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=26&switchcmd=Toggle"/>
    			        <method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=27&switchcmd=Toggle"/>
    			</device>
    		</group>
    		<group name="Kinderzimmer">
    			<device id="801" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="943.1" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="8.1" />
    					<method id="2" name="aus" plc="myLogo" address="8.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=37&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=37&nvalue=1"/>
    
                        <trigger address="950.3" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
           		<device id="802" name="Rolladen" type="custom">
    
               			<method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=28&switchcmd=Toggle"/>
           				<method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=29&switchcmd=Toggle"/>
           				<method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=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" plc="myLogo" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="9.1" />
    					<method id="2" name="aus" plc="myLogo" address="9.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=36&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=36&nvalue=1"/>
                        
                        <trigger address="949.2" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
    			<device id="902" name="Funksteckdose" type="light">
                        
                		<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=114&switchcmd=Toggle" />
                
    					<trigger address="948.2" datatype="bit">
    						<onValue value="1" method="1" />
    						
    					</trigger>
    			</device>
           		<device id="903" name="Rolladen" type="custom">
    
    	   				 <method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=11&switchcmd=Toggle"/>
           				 <method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=12&switchcmd=Toggle"/>
               			 <method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=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" plc="myLogo" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="10.1" />
    					<method id="2" name="aus" plc="myLogo" address="10.2" />
                    	<method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=35&nvalue=0"/>
                    	<method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=35&nvalue=1"/>
                        
                        <trigger address="950.4" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
               	<device id="1002" name="Rolladen" type="custom">
    
       			        <method id="1" name="hoch" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=22&switchcmd=Toggle"/>
    	                <method id="2" name="stop" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=23&switchcmd=Toggle"/>
    		            <method id="3" name="runter" url="http://192.168.178.25:8080/json.htm?type=command&param=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" plc="myLogo" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="11.1" />
    					<method id="2" name="aus" plc="myLogo" address="11.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=34&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=34&nvalue=1"/>
                        
                        <trigger address="950.5" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
                <device id="1102" name="Funksteckdose" type="light">
    
    					<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=89&switchcmd=Toggle" />
    
    			        <trigger address="948.3" datatype="bit">
    						<onValue value="1" method="1" />
    					</trigger>
    			</device>
           	</group>
    		<group name="WC DG">
    			<device id="1202" name="Licht" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="943.5" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="12.1"  />
    					<method id="2" name="aus" plc="myLogo" address="12.2"  />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=33&nvalue=0"/>
                        <method id="3" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=33&nvalue=1"/>
                        
                        <trigger address="950.6" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
       		</group>
    		</group>
    	    <group name="Allgemein">
    		<group name="Flur">
    			<device id="601" name="Flur" type="light">
    					<attribute id="1" name="state" plc="myLogo" address="942.2" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="6.1" />
    					<method id="2" name="aus" plc="myLogo" address="6.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=39&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=39&nvalue=1"/>
    
                        <trigger address="949.5" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
                </device>
                <device id="602" name="Funksteckdose" type="light">
    
                		<method id="1" name="ein/aus" url="http://192.168.178.25:8080/json.htm?type=command&param=switchlight&idx=92&switchcmd=Toggle" />
    
    					<trigger address="948.4" datatype="bit">
    						<onValue value="1" method="1" />
    					</trigger>
    			</device>
    		</group>
    		<group name="Extern">
           		<device id="1401" name="Aussenlicht" type="light">
    				<attribute id="1" name="state" plc="myLogo" address="942.0" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="14.1" />
    					<method id="2" name="aus" plc="myLogo" address="14.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=50&nvalue=0"/>
    					<method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=50&nvalue=1"/>
                        
                        <trigger address="949.3" datatype="bit">
    						<onValue value="0" method="3" />
    						<onValue value="1" method="4" />
    					</trigger>
               	</device>
    			<device id="1301" name="Garagentor" type="custom">
    
    					<method id="1" name="auf/zu" address="13.1" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=51&nvalue=0"/>
    			</device>
    		</group>
    		<group name="Heizung">
           		<device id="1501" name="Sparbetrieb" type="custom">
    				<attribute id="1" name="state" plc="myLogo" address="943.6" valueTextConverter="an_aus"/>
      					<method id="1" name="ein" plc="myLogo" address="15.1" />
    					<method id="2" name="aus" plc="myLogo" address="15.2" />
                        <method id="3" name="status aus" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=108&nvalue=0"/>
                        <method id="4" name="status ein" url="http://192.168.178.25:8080/json.htm?type=command&param=udevice&idx=108&nvalue=1"/>
    
                        <trigger address="950.7" datatype="bit">
    						<onValue value="0" method="4" />
    						<onValue value="1" method="3" />
    					</trigger>
                </device>
    		</group>
       		<group name="Rolladen">
                <device id="1601" name="Alle hoch" type="custom">
    
    					<method id="1" name="ein" url="http://192.168.178.25:8080/json.htm?type=command&param=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://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=32&switchcmd=On"/>
    			</device>
                <device id="1603" name="Sonnenschutz Gartenseite" type="custom">
    
    					<method id="1" name="ein" url="http://192.168.178.25:8080/json.htm?type=command&param=switchscene&idx=31&switchcmd=On"/>
    			</device>
       		</group>
    		</group>
    	</infrastructure>
    </configuration>
    
    #3126
    admin
    Administrator

    OK, die Fehlermeldung, die der Parser da ausspuckt ist ohne Angabe der Zeilennummer natürlich nutzlos. Hab das XML mal mit einem externen Validator validiert:

    Die IDs sowie die Referenzen darauf sind case-sensitiv. Du hast an einer Stelle „mylogo“ statt „myLogo“ geschrieben, daher das „Referenced key was not found“.

    #3127
    grobie
    Teilnehmer

    TOP!!! Werde das sofort ausprobieren…

    Super!!! funktioniert bestens!!!

    Danke!!!

    nun muss ich das neue System nur noch vor Ort in Betrieb nehmen….

    • Diese Antwort wurde vor vor 8 Jahren, 1 Monat von grobie bearbeitet.
6 Beiträge anzeigen - 1 bis 6 (von insgesamt 6)
  • Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.