Integrate Dyson Pure Cool Link

tutorial
mqtt-binding
dyson
Tags: #<Tag:0x00007f0152b23950> #<Tag:0x00007f0152b231d0> #<Tag:0x00007f0152b225f0>

(Michael) #21

Hi,
you get the messages, the sitemap seems to be okay.
So what about the items and rules files? And is there something in the error log?
At the moment I have no specific idea what is going wrong.


(olek) #22

Hi,
I took the files (just copied them over) from the script. One more information: I have openhab 2.4 running. and i set python3.5 as default (running on debian).

Is it right when the rule-file got not modified (with the dyson-serial/name)?
here is the items file.

// Dyson Pure Cool Link Items

// REQUESTS
// 475//command
String Dyson475_Request “[%s]” {mqtt=">[dyson475:475/NN2-EU-HEA0325A/command:command:*:default]"}
// TOPIC
// 475//status/current
String Dyson475_Topic_Status_Current “[%s]” {mqtt="<[dyson475:475/NN2-EU-HEA0325A/status/current:state:default]"}

//VIRTUAL ITEMS
Number Dyson475_Tact “Temperature [%.1f °C]”
Number Dyson475_Hact “Humidity [%.0f %%]”
Number Dyson475_Pact “P-Value [%d]”
Number Dyson475_Vact “V-Value [%d]”
Number Dyson475_Fmod “Mode”
Switch Dyson475_Rhtm “Contin. Measurement”
Number Dyson475_Fnsp “Fan Speed [%d]”
Number Dyson475_Qtar “Quality Target”
Switch Dyson475_Oson “Turning”
Switch Dyson475_Nmod “Night Mode”
Number Dyson475_Filf “Remaining Filter Hours”
Number Dyson475_Fnst “Fan Activity [%d]”

I just have the mqtt 1 binding installed, do i need something else? thanks again


(olek) #23

one update: i looked into the logs, i see:

[INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘dyson475.rules’, using it anyway:
The import ‘java.text.SimpleDateFormat’ is never used.

is this relevant?


(olek) #24

hi,
and one more update: i tried a different java - the zulu-version.
when starting i got gollowing error, the beheaviour stays the same.

2019-01-10 17:21:33.625 [ERROR] [xtext.validation.CompositeEValidator] - Error executing EValidator
java.util.ConcurrentModificationException: null
at org.eclipse.emf.common.util.AbstractEList$EIterator.checkModCount(AbstractEList.java:758) ~[?:?]
at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:712) ~[?:?]
at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:692) ~[?:?]
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:651) ~[22:com.google.guava:18.0.0]
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[22:com.google.guava:18.0.0]
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[22:com.google.guava:18.0.0]
at java.lang.Iterable.forEach(Iterable.java:74) ~[?:?]
at org.eclipse.xtext.xbase.validation.UniqueClassNameValidator.checkUniqueName(UniqueClassNameValidator.java:76) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
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.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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

i’m using openhab2.4, i did not find a possibility to install a lower version…


(Michael) #25

I just updated to 2.4 and experienced also some problems. On my configuration I got no values and can not command the dyson.
I try to get it working on my side first and then we will see if it was the same issue on your side.

Edit: I think it will take some days until I got time to have a look onto it.


(olek) #26

hi,
i’m glad i am not the only one… no pressure :slight_smile:


(Michael) #27

I got it to work if I enable the mqtt1 binding again manualy after enabling the legacy bindings.
For the future I try to adapt my scripts to the “new” mqtt binding. At the moment I don’t know how long it will take until I got some spare time to work on it.