You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2020. It is now read-only.
I started with the MQTT binding for openHAB 2.4 and tried to detect my Homie 3.0.1 device.
It will be recognized, but it seems that the channel type or something like this will not be recognized. In the PaperUI the channel is described like this:
I saw #6784 and as my thing ID contained a hyphen I thought I had the same or a similar issue.. unfortunately even without a hyphen it is not working.
Thing is added manually as a Homie thing, I also tried the auto discovery after I added the MQTT broker.. same issue.
I even tried to debug it, but as I am not really familiar with the code I was not able to find an issue.
I noticed that the Property will be initialized with a channel that has as an accepted item type dummy and I am not reaching the breakpoint where the channel will be changed to something with a valid accepted item type.
It seems that the attributesReceived that will be set to the future in Property#subscribe(MqttBrokerConnection, ScheduledExecutorService, int) will also not be reached, only initialized will be set to true. Property#attributeChanged(String, Object, MqttBrokerConnection, ScheduledExecutorService, boolean will be reached (e. g. for topic homie/b4e62d2a6063/light/on/$settable), but as the property is not yet initialized the attributesReceived() method will not be called.
Could it be the case that there there is already a subscription to this topic when Property#subscribe(...) will be called, so that this is not getting the retained value and the attributeChanged(...) method will get it mistakenly?
The text was updated successfully, but these errors were encountered:
Additionally I noticed that the datatype is also marked as mandatory, but according to the specs it is not and should default to string.
chris922
changed the title
[MQTT/Homie] not working dummy channel created for settable
[MQTT/Homie] name and datatype fields are mandatory for property
Jan 11, 2019
I started with the MQTT binding for openHAB 2.4 and tried to detect my Homie 3.0.1 device.
It will be recognized, but it seems that the channel type or something like this will not be recognized. In the PaperUI the channel is described like this:
I saw #6784 and as my thing ID contained a hyphen I thought I had the same or a similar issue.. unfortunately even without a hyphen it is not working.
Thing is added manually as a Homie thing, I also tried the auto discovery after I added the MQTT broker.. same issue.
I even tried to debug it, but as I am not really familiar with the code I was not able to find an issue.
I noticed that the Property will be initialized with a channel that has as an accepted item type
dummy
and I am not reaching the breakpoint where the channel will be changed to something with a valid accepted item type.It seems that the
attributesReceived
that will be set to the future inProperty#subscribe(MqttBrokerConnection, ScheduledExecutorService, int)
will also not be reached, onlyinitialized
will be set totrue
.Property#attributeChanged(String, Object, MqttBrokerConnection, ScheduledExecutorService, boolean
will be reached (e. g. for topichomie/b4e62d2a6063/light/on/$settable
), but as the property is not yetinitialized
theattributesReceived()
method will not be called.Could it be the case that there there is already a subscription to this topic when
Property#subscribe(...)
will be called, so that this is not getting the retained value and theattributeChanged(...)
method will get it mistakenly?The text was updated successfully, but these errors were encountered: