I am on openHAB 2.5.0 Build #1491. If I wanted to go to that 2.5 M1 milestone, what would be correct way to get there? Just switching to “testing” in openhabian-config seems to not work:
Aktualisierung für 59 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
$ apt-get -y install openhab2=2.5.0~M1-1
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden durch eine ÄLTERE VERSION ERSETZT (Downgrade):
openhab2
0 aktualisiert, 0 neu installiert, 1 durch eine ältere Version ersetzt, 0 zu entfernen und 59 nicht aktualisiert.
E: Packages were downgraded and -y was used without --allow-downgrades.
FAILED (apt)
Based on the message, Build #1491 came out after 2.5 M1 so moving to 2.5 M1 is a downgrade. So, as the error from apt says, you need to apply the --allow-downgrades flag or not use -y and let it ask you if you want to downgrade.
I do have a vague memory that apt, for some reason, treats all of the milestone releases as if they were ahead of the snapshots. If that is the case, the solution is still the same.
So if my build came out after 2.5 M1, should my build have the MQTT outgoing transformation functionality included (I wouldn’t have to downgrade then)? I tried and it didn’t seem to work. Might have done something wrong though…
Thank you very much for your answer, outgoing transformation is clear but still i’m getting mad with this rollershutter items!
So, the thing is a Shelly2, which is running very good in my OH 2.3 with following item:
because open close and stop are the payloads of Shelly2 rollershutter.
In my sitemap i can manage a rollershutter item to command up and down, and get the percentage back.
Now i am running openHAB 2.5.0 Build #1549 and i want to replicate the same command.
I have no problem to run it as a dimmer using another mqtt payload, but still i would like to use a rollershutter item.
I inclued transformationPatternOut and here is my thing file:
MAP file is same as previous
rule "Shellie2.5 Achterdeur command"
when
Item Rolluik_achterdeur received command
then
switch (receivedCommand) {
case UP :
Rolluik_achterdeurcmd.sendCommand("open")
case STOP :
Rolluik_achterdeurcmd.sendCommand("stop")
case DOWN :
Rolluik_achterdeurcmd.sendCommand("close")
}
end
Anyone have a working example with a chain of transformations with both JSONPATH and JS.
Need to divide the JSON value by 10. Or is there any other way to not having two items and run through a rule?