Code schaut aktuell so aus:
.items
Code: Alles auswählen
Number thermostat_wz "Thermostat Wohnzimmer [%.1f °C]" { http=">[*:GET:http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8&temperature=%2$s{Authorization=Basic SECRET}] <[thermostatWohnzimmer:600000:JSONPATH($.temperature)]" }
Code: Alles auswählen
thermostatWohnzimmer.url=http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8{Authorization=Basic SECRET}
thermostatWohnzimmer.updateInterval=120000
Error Meldung nach wie vor vorhanden.
Code: Alles auswählen
2019-12-22 13:21:34.138 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'http' of item 'thermostat_wz' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: bindingConfig '>[*:GET:http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8&temperature=%2$s{Authorization=Basic SECRET}] <[thermostatWohnzimmer:600000:JSONPATH($.temperature)]' doesn't contain a valid binding configuration
at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration(BindingConfigReaderDelegate.java:51) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:397) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:366) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:229) ~[?:?]
at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:432) ~[?:?]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:301) ~[?:?]
at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:139) ~[?:?]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:227) ~[?:?]
at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent(FolderObserver.java:291) ~[?:?]
at org.eclipse.smarthome.core.service.WatchQueueReader.lambda$3(WatchQueueReader.java:323) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.openhab.model.item.binding.BindingConfigParseException: bindingConfig '>[*:GET:http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8&temperature=%2$s{Authorization=Basic SECRET}] <[thermostatWohnzimmer:600000:JSONPATH($.temperature)]' doesn't contain a valid binding configuration
at org.openhab.binding.http.internal.HttpGenericBindingProvider.parseBindingConfig(HttpGenericBindingProvider.java:143) ~[?:?]
at org.openhab.binding.http.internal.HttpGenericBindingProvider.processBindingConfiguration(HttpGenericBindingProvider.java:119) ~[?:?]
at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration(BindingConfigReaderDelegate.java:49) ~[?:?]
... 16 more
Irgendwas stimmt da mit dem Binding nicht oder ?
Ich weiß leider nicht, wo ich da ansetzen soll.
Spontan schaut es so aus, dass er mit dem "http" nicht klar kommt oder in der Syntax des HTTP Befehls etwas nicht stimmt...
Nachtrag:
ich habe den Code ein wenig abgeändert, ich weiß nicht ob ich es schlimmer oder besser gemacht habe

Code: Alles auswählen
Number thermostat_wz "Thermostat Wohnzimmer [%.1f °C]" { http="<[*:GET:http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8&temperature=%2$s{Authorization=Basic SECRET}]>;[thermostatWohnzimmer:600000:JSONPATH($.temperature)]" }
Dies hab ich im Forum gelesen, zumindest ist die Fehlermeldung erstmal weg.
Trotzdem setzt der Thermostat das ganze leider immernoch nicht um.
Wann sendet die BASICUI den Befehl für den Thermostat ? alle 2 Minuten richtig ? bzw das JSONPath alle 10m.
Die Frage welche sich mir stellt, stimmt die Syntax des Befehls...
Code: Alles auswählen
http://192.168.178.35/eq/php/eq3.php?mac=00:1A:22:10:71:C8&temperature=%2$s{Authorization=Basic SECRET}]>;[thermostatWohnzimmer:600000:JSONPATH($.temperature)]
Also stellt sich mir wieder die Frage ist dieses %2$s überhaupt richtig ? bzw wird es befüllt ?
Code: Alles auswählen
2019-12-22 14:13:37.159 [ome.event.ItemCommandEvent] - Item 'thermostat_wz' received command 20
2019-12-22 14:13:37.173 [vent.ItemStateChangedEvent] - thermostat_wz changed from 20.5 to 20
Das ganze ist wirklich verwirrend und unklar woran es noch liegen kann :<