Hello guys an girls.
No solution at hand to complete persistence for my neohub, one week quest in all forums and all tutorials and guides. Several rounds without luck. New at this openhab and neohub2 seems not to be the most common topic around.
Problem description:
The binding for neobub2 is defined including a colon within the 1.x binding. 2.x does not exist yet. As for instance neohub=“Bathroom:CurrentTemperature”. This is to be stated as the topic in the mqtt binding. From examples i see that most (non observed) other devices does not have this syntax.
mqtt definition in items file:
Item itemName { mqtt=“direction[broker:topic:type:trigger:transformation]” }
The extraneous colon in the topic that result from neohub device partcular binding makes all go to hell…
gives error messages like…
(2018-06-09 22:47:43.527 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘thermostats.items’ has errors, therefore ignoring it: [7,103]: missing ‘}’ at ‘Bathroom’
[7,111]: extraneous input ‘:’ expecting RULE_ID
[7,157]: extraneous input ‘}’ expecting EOF)
Counter measures tried:
-
Adding 'xxx 'or “xxx” to make a comprehensive string does not help. The colon is still a colon.
-
Transformations for binding responses, states etcetera, is the closest and are well described but does not apply for stating a binding.
-
Tried Rules but in contrast to some tutorials the items file does not see inside the rules as I can deduct.
the rules file tried
rule “VariablesDeclare”
when_
_ System started_
then
_ var String NHBRCST = “Bathroom:CurrentSetTemperature”_
end
gives warnings like this
2018-06-11 17:51:27.894 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘neohubRules.rules’, using it anyway:
The value of the local variable NHBRCST is not used
`(Using VAL i s o VAR does not help either)
my items file content
//… This part works for basic UI and so forth…
Switch FrostModeOnOff_Bathroom “Frost Bathroom” {neohub=“Bathroom:Standby”}
Switch HeatingActive_Bathroom “Heating Bathroom” {neohub=“Bathroom:Heating”}
Switch Que_Bathroom “Que Bathroom” {neohub=“Bathroom:Away”}
Number TempActual_Bathroom “Temperature [%.1f °C]” {neohub=“Bathroom:CurrentTemperature”}
Number TempSet_Bathroom “Temperature [%.1f °C]” {neohub=“Bathroom:CurrentSetTemperature”}
//…
However for the mqtt to work, mosquitto, (Generally working except persistence part) i need this to work with this code, or corrected for typos possibly.
Number TempSet_Bathroom “Temperature [%.1f °C]” { mqtt=">[mosquitto:neohub=“Bathroom:CurrentSetTemperature”:Number:*:Set temp]"}
Also the basic UI stops working also when messing with this so it is not only the mqtt that fail.
Otherwise all runs with mosquitto and so on it is the persistence that does not wok. Opennab publishes on broker, not from the actual measurements but othe static stuff.
I also gave up on the mysql and jdbc persistence after two frustrating weeks. Will maybe make a post on that later on.
Any ideas on the colon problem?
/Stefan