Использование MegaD в openHAB

Обсуждение статей, технологий домашней автоматизации, программных и аппаратных решений
Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 08 авг 2019, 23:12

Если верить VS Code кодировка - UTF-8. Конец строки в каком файле проверять?

Petros
Сообщения: 431
Зарегистрирован: 21 авг 2012, 22:09

Re: Использование MegaD в openHAB

Сообщение Petros » 08 авг 2019, 23:28

В том, на какой ругается, конечно. Попробуйте убрать временно эти строки

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 08 авг 2019, 23:33

Petros писал(а):
08 авг 2019, 23:28
В том, на какой ругается, конечно. Попробуйте убрать временно эти строки
Вроде починил, от куда то у меня появились в конце строки {channel=""} в .items.
И поставил туда его home builder, если переключатель стоит "Append channel to the non-Group items". Спасибо Вам за наводки.

Petros
Сообщения: 431
Зарегистрирован: 21 авг 2012, 22:09

Re: Использование MegaD в openHAB

Сообщение Petros » 08 авг 2019, 23:36

Не за что! Я вот что-то VS Code как-то не распробовал. Глюков что-то прилично у него в части работы с опенхаб.

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 13 авг 2019, 22:20

Petros писал(а):
08 авг 2019, 23:36
Не за что! Я вот что-то VS Code как-то не распробовал. Глюков что-то прилично у него в части работы с опенхаб.
А есть альтернатива? Я тоже не могу сказать, что он мне сильно зашел. Вы вообще как отлаживаете код? Есть ли какой то интерпретатор или что то подобное? Например банально посмотреть какое значение содержат переменные на данный момент. Я ничего умнее не придумал, как писать значение переменных в лог просто, но так все равно очень не удобно код отлаживать.

Petros
Сообщения: 431
Зарегистрирован: 21 авг 2012, 22:09

Re: Использование MegaD в openHAB

Сообщение Petros » 13 авг 2019, 22:28

Да, с этим на мой взгляд есть проблемы, конечно. Я делаю так же. Но вот стараюсь файлами уже не пользоваться, т.к. чую они скоро полностью от них отойдут и использую PaperUI для создания того, что нужно

PavlikPetr
Сообщения: 3
Зарегистрирован: 20 авг 2019, 22:48

Re: Использование MegaD в openHAB

Сообщение PavlikPetr » 21 авг 2019, 11:59

Привет, форумчане.
Нужна ваша помощь. Уже несколько дней пытаюсь привязать mega-d к openHab. Ветку почитал, но настроить так и не получилось.
Версия прошивки

Код: Выделить всё

MegaD-328 ab-log.ru (fw: 3.57b2)
Things

Код: Выделить всё

Bridge megad:bridge:megadeviceincoming [port=8989]
{
    Thing device button0    [hostname="192.168.1.239", port="0",password="7701",, refresh="0"]
    Thing device button1    [hostname="192.168.1.239", port="1",password="7701",, refresh="0"]
    Thing device button2    [hostname="192.168.1.239", port="2",password="7701",, refresh="0"]
    Thing device button3    [hostname="192.168.1.239", port="3",password="7701",, refresh="0"]
    Thing device button4    [hostname="192.168.1.239", port="4",password="7701",, refresh="0"]
    Thing device button5    [hostname="192.168.1.239", port="5",password="7701",, refresh="0"]
    Thing device button6    [hostname="192.168.1.239", port="6",password="7701",, refresh="0"]
    Thing device button7    [hostname="192.168.1.239", port="7",password="7701",, refresh="0"]
    Thing device button8    [hostname="192.168.1.239", port="8",password="7701",, refresh="0"]
    Thing device button9    [hostname="192.168.1.239", port="9",password="7701",, refresh="0"]
    Thing device button10   [hostname="192.168.1.239", port="10",password="7701",, refresh="0"]
    Thing device button11   [hostname="192.168.1.239", port="11",password="7701",, refresh="0"]
    Thing device button12   [hostname="192.168.1.239", port="12",password="7701",, refresh="0"]
    Thing device button13   [hostname="192.168.1.239", port="13",password="7701",, refresh="0"]
}
Items

Код: Выделить всё

Switch Button0 "Button0" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button0:in" }  
Switch Button1 "Button1" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button1:in" }  
Switch Button2 "Button2" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button2:in" }  
Switch Button3 "Button3" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button3:in" }  
Switch Button4 "Button4" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button4:in" }  
Switch Button5 "Button5" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button5:in" }  
Switch Button6 "Button6" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button6:in" }  
Switch Button7 "Button7" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button7:in" }  
Switch Button8 "Button8" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button8:in" }  
Switch Button9 "Button9" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button9:in" }  
Switch Button10 "Button10" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button10:in" }  
Switch Button11 "Button11" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button11:in" }  
Switch Button12 "Button12" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button12:in" }  
Switch Button13 "Button13" (GF_Kitchen) { channel = "megad:device:megadeviceincoming:button13:in" }  
Пытаюсь получить нажатие кнопки подключенной к мега девайсу. В логах нет информации о нажатиях. OpenHab 2.5, использую последнюю версию биндинга.
Вложения
mega_d_port_conf.PNG
Конфигурация mega d
mega_d_port_conf.PNG (19.25 КБ) 126 просмотров
mega_d_conf.PNG
Настройки порта
mega_d_conf.PNG (28 КБ) 126 просмотров

Petros
Сообщения: 431
Зарегистрирован: 21 авг 2012, 22:09

Re: Использование MegaD в openHAB

Сообщение Petros » 22 авг 2019, 00:06

Настоятельно советую переходить на использование paperUI. А правила писать уже с помощью vscode. Ну и нужны логи, конечно. С момента старта!

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 22 авг 2019, 18:19

На тестовой системе перезапустил openhab и начал ловить экспешены, хотя уже несколько дней ничего не трогал.

Код: Выделить всё

2019-08-22 17:12:34.845 [ERROR] [access.reflect.ReflectionTypeFactory] - class org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory cannot access interface jdk.internal.vm.annotation.Contended (in module java.base) because module java.base does not export jdk.internal.vm.annotation to unnamed module @18a2da2d
java.lang.IllegalAccessException: class org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory cannot access interface jdk.internal.vm.annotation.Contended (in module java.base) because module java.base does not export jdk.internal.vm.annotation to unnamed module @18a2da2d
	at jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) ~[?:?]
	at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:558) ~[?:?]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createAnnotationReference(ReflectionTypeFactory.java:198) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createAnnotationValues(ReflectionTypeFactory.java:184) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createField(ReflectionTypeFactory.java:644) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createFields(ReflectionTypeFactory.java:418) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createType(ReflectionTypeFactory.java:142) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeFactory.createType(ReflectionTypeFactory.java:82) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.impl.ClassMirror.initialize(ClassMirror.java:54) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.TypeResource.doLoad(TypeResource.java:136) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.xtext.common.types.access.TypeResource.load(TypeResource.java:120) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:265) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:25) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeProvider.findTypeByClass(ReflectionTypeProvider.java:149) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeProvider.doFindTypeByName(ReflectionTypeProvider.java:117) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.access.reflect.ReflectionTypeProvider.findTypeByName(ReflectionTypeProvider.java:109) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.xtext.AbstractTypeScope.getSingleElement(AbstractTypeScope.java:59) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.xtext.AbstractTypeScope.getSingleElement(AbstractTypeScope.java:54) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.common.types.xtext.AbstractTypeScope.getElements(AbstractTypeScope.java:73) [155:org.eclipse.xtext.common.types:2.14.0.v20180522-1833]
	at org.eclipse.xtext.scoping.impl.AbstractScope.getElements(AbstractScope.java:137) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.ScopeBasedSelectable.getExportedObjects(ScopeBasedSelectable.java:40) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.ImportScope.getLocalElementsByName(ImportScope.java:154) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.ImportScope.getSingleLocalElementByName(ImportScope.java:142) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.AbstractScope.getSingleElement(AbstractScope.java:105) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.AbstractScope.getSingleElement(AbstractScope.java:108) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.AbstractScope.getSingleElement(AbstractScope.java:108) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.scoping.impl.AbstractScope.getSingleElement(AbstractScope.java:108) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.xbase.scoping.batch.TypeLiteralScope.getLocalElementsByName(TypeLiteralScope.java:48) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:174) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:176) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:176) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:176) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:176) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope.getElements(AbstractSessionBasedScope.java:176) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.LocalVariableScope.getElements(LocalVariableScope.java:84) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.ScopeProviderAccess.getCandidateDescriptions(ScopeProviderAccess.java:143) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.getLinkingCandidates(AbstractTypeComputationState.java:409) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:1099) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:100) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState$1.getActualType(AbstractTypeComputationState.java:403) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.FeatureScopes.createFeatureCallScopeForReceiver(FeatureScopes.java:215) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.FeatureScopes.createFeatureCallScope(FeatureScopes.java:92) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession.createFeatureCallScope(AbstractFeatureScopeSession.java:177) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession.getScope(AbstractFeatureScopeSession.java:48) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.ScopeProviderAccess.getCandidateDescriptions(ScopeProviderAccess.java:142) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.getLinkingCandidates(AbstractTypeComputationState.java:409) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:1099) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:100) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:471) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:106) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.ExpressionTypeComputationState.doComputeTypes(ExpressionTypeComputationState.java:59) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:247) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:120) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:471) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:106) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.ExpressionTypeComputationState.doComputeTypes(ExpressionTypeComputationState.java:59) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:247) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:120) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer._computeTypes(XbaseTypeComputer.java:479) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.computeTypes(XbaseTypeComputer.java:106) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.smarthome.model.script.jvmmodel.ScriptTypeComputer.computeTypes(ScriptTypeComputer.java:39) [139:org.eclipse.smarthome.model.script:0.10.0.oh240]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.doComputeTypes(AbstractTypeComputationState.java:121) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeComputationState.computeTypes(AbstractTypeComputationState.java:109) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractRootTypeComputationState.computeTypes(AbstractRootTypeComputationState.java:32) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver._computeTypes(LogicalContainerAwareReentrantTypeResolver.java:827) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver.computeTypes(LogicalContainerAwareReentrantTypeResolver.java:711) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver.computeMemberTypes(LogicalContainerAwareReentrantTypeResolver.java:897) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver._computeTypes(LogicalContainerAwareReentrantTypeResolver.java:886) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver.computeTypes(LogicalContainerAwareReentrantTypeResolver.java:705) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver.computeTypes(LogicalContainerAwareReentrantTypeResolver.java:697) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver.resolve(DefaultReentrantTypeResolver.java:164) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver.reentrantResolve(DefaultReentrantTypeResolver.java:139) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$LazyResolvedTypes.resolveTypes(CachingBatchTypeResolver.java:80) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$2.process(CachingBatchTypeResolver.java:57) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$2.process(CachingBatchTypeResolver.java:53) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:37) [157:org.eclipse.xtext.util:2.14.0.v20180522-1821]
	at org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(OnChangeEvictingCache.java:128) [157:org.eclipse.xtext.util:2.14.0.v20180522-1821]
	at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:53) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:60) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:41) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getEObject(BatchLinkableResource.java:117) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.xtext.xbase.impl.XAbstractFeatureCallImplCustom.getFeature(XAbstractFeatureCallImplCustom.java:48) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at org.eclipse.xtext.xbase.validation.XbaseValidator.checkDeprecated(XbaseValidator.java:1939) [158:org.eclipse.xtext.xbase:2.14.0.v20180522-1833]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.eclipse.xtext.validation.AbstractDeclarativeValidator$MethodWrapper.invoke(AbstractDeclarativeValidator.java:118) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.validation.AbstractDeclarativeValidator.internalValidate(AbstractDeclarativeValidator.java:312) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.validation.AbstractInjectableValidator.validate(AbstractInjectableValidator.java:71) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:151) [154:org.eclipse.xtext:2.14.0.v20180522-1821]
	at org.eclipse.emf.ecore.util.Diagnostician.doValidate(Diagnostician.java:171) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:158) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:185) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:181) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:161) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:108) [66:org.eclipse.emf.ecore:2.12.0.v20160420-0247]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.validateModel(ModelRepositoryImpl.java:280) [128:org.eclipse.smarthome.model.core:0.10.0.oh240]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:93) [128:org.eclipse.smarthome.model.core:0.10.0.oh240]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:227) [128:org.eclipse.smarthome.model.core:0.10.0.oh240]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processIgnoredFiles(FolderObserver.java:137) [128:org.eclipse.smarthome.model.core:0.10.0.oh240]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.addModelParser(FolderObserver.java:85) [128:org.eclipse.smarthome.model.core:0.10.0.oh240]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.inject.methods.BindMethod.invoke(BindMethod.java:42) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1809) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1784) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:409) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:333) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:302) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125) [39:org.apache.felix.scr:2.1.2]
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:920) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469) [?:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:891) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:877) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:128) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:944) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:727) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1053) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1007) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125) [39:org.apache.felix.scr:2.1.2]
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:920) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127) [?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469) [?:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:891) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:877) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:128) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:944) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:727) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:661) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:427) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:665) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:381) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:263) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [39:org.apache.felix.scr:2.1.2]
	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [39:org.apache.felix.scr:2.1.2]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [?:?]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [?:?]
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [?:?]
	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [?:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [?:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [?:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [?:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [?:?]
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [?:?]
	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [?:?]
	at org.eclipse.osgi.container.Module.start(Module.java:467) [?:?]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) [?:?]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) [?:?]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) [?:?]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) [?:?]
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

	

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 22 авг 2019, 18:21

Бэкапы средствами openhab-cli были, но не помогают. Полез систему обновлять и увидел что отвалился репозиторий. Кто сталкивался с таким? Вроде сделал как написано на официальном форуме, но пока не помогло.

d.v.ermakov
Сообщения: 869
Зарегистрирован: 29 май 2015, 21:23
Откуда: Екатеринбург, Нижний Тагил

Re: Использование MegaD в openHAB

Сообщение d.v.ermakov » 22 авг 2019, 21:35

Norb писал(а):
22 авг 2019, 18:21
Кто сталкивался с таким?
Если Малина и карточка - то карточка погибает. Если ББ - то файловая система, скорее всего, виновата.

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 22 авг 2019, 22:03

d.v.ermakov писал(а):
22 авг 2019, 21:35
Если Малина и карточка - то карточка погибает. Если ББ - то файловая система, скорее всего, виновата.
Что за ББ? Тестовая система на стареньком ноутбуке, но жесткий диск там новый. Кстати забыл сказать, что проблема "всплывает" только при перезапуске openhab.

d.v.ermakov
Сообщения: 869
Зарегистрирован: 29 май 2015, 21:23
Откуда: Екатеринбург, Нижний Тагил

Re: Использование MegaD в openHAB

Сообщение d.v.ermakov » 22 авг 2019, 22:18

Norb писал(а):
22 авг 2019, 22:03
Что за ББ?
ББ - большой брат, в смысле, полноценный компьютер.
Попробуйте добавить в дефектные файлы, скажем, по пробелу, и сохранить.
Пардон, глянул ваши логи. Речь у вас не про конфигурацию, видимо. А пробовали отложить запуск Опенхаба после перезагрузки? Такое ощущение, что какие-то сервисы не успели стартануть.

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » 22 авг 2019, 23:39

Под перезапуском я имел ввиду systemctl restart openhab 2.

Petros
Сообщения: 431
Зарегистрирован: 21 авг 2012, 22:09

Re: Использование MegaD в openHAB

Сообщение Petros » Вчера, 00:17

Версию джавы понизили до 8?

Norb
Сообщения: 35
Зарегистрирован: 31 май 2019, 14:26

Re: Использование MegaD в openHAB

Сообщение Norb » Вчера, 10:16

Petros писал(а):
Вчера, 00:17
Версию джавы понизили до 8?
Понизил, помогло. Спасибо. Не увидел что java должна быть 8.
Может понадобиться кому, опишу здесь как сделать даунгрейд:
устанавливаем сначала
sudo apt-get install openjdk-8-jre

затем делаем
sudo update-alternatives --config java

и циферкой выбираем каталог с java 8.

PavlikPetr
Сообщения: 3
Зарегистрирован: 20 авг 2019, 22:48

Re: Использование MegaD в openHAB

Сообщение PavlikPetr » Вчера, 22:07

Norb писал(а):
22 авг 2019, 18:21
Бэкапы средствами openhab-cli были, но не помогают. Полез систему обновлять и увидел что отвалился репозиторий. Кто сталкивался с таким? Вроде сделал как написано на официальном форуме, но пока не помогло.
Включил дебажный режим, сейчас в логах при нажатии кнопки на меге вижу

Код: Выделить всё

2019-08-23 20:52:07.064 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - incoming from Megad: 192.168.1.239 GET /OpenHab?pt=8&m=1&cnt=20 HTTP/1.1
2019-08-23 20:52:07.066 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 0 value OpenHab
2019-08-23 20:52:07.068 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 1 value pt
2019-08-23 20:52:07.070 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 2 value 8
2019-08-23 20:52:07.072 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 3 value m
2019-08-23 20:52:07.073 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 4 value 1
2019-08-23 20:52:07.075 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 5 value cnt
2019-08-23 20:52:07.077 [DEBUG] [ing.megad.handler.MegaDBridgeHandler] - 6 value 20
Не совсем понял как правильно кофигурировать openhab через PaperUI
Создал MegaD Bridge
bridge_config.PNG
Конфигурация MegaD Bridge
bridge_config.PNG (80.06 КБ) 17 просмотров
Добавил MegaD Binding
megad_binding.PNG
Конфигурация MegaD Binding
megad_binding.PNG (111.24 КБ) 17 просмотров
Правильно ли я понимаю, что биндинг надо добавлять под каждый канал?
На скриншоте видно, что настроен порт 8 в конфигурации биндинга.

martiniman
Сообщения: 249
Зарегистрирован: 09 авг 2016, 15:09
Откуда: Сочи

Re: Использование MegaD в openHAB

Сообщение martiniman » Вчера, 23:35

Да, под каждый

PavlikPetr
Сообщения: 3
Зарегистрирован: 20 авг 2019, 22:48

Re: Использование MegaD в openHAB

Сообщение PavlikPetr » Сегодня, 00:19

martiniman писал(а):
Вчера, 23:35
Да, под каждый
Спасибо. Вижу долгожданный лог)

Код: Выделить всё

Button8 changed from OFF to ON

Ответить