Hallo netfritz
es geht um das das openhab binding
es geht um das das openhab binding
@ staehler Wie schon [URL="https://knx-user-forum.de/forum/supportforen/openhab/831928-harmonyhub-binding-im-build-921-und-1-7-0-rc-1-unvollst%C3%A4ndig"]hier (Link)[/URL] beantwortet und im Wiki beschrieben, geht die Kommunikation von Hamrony zu openhab nur für die Activities, nicht für "press" Aktionen.
String rollo_1_auf "rollo1auf" { harmonyhub=">[press:Rollos:1Up/On]" //item zum rauf fahren String rollo_1_ab "rollo1ab" { harmonyhub=">[press:Rollos:1Down/Off]" //item zum runter fahren Switch rollo_1 "Rollo 1" //Hilfsitem für die Sitemap
Switch item=rollo_1 mappings=[ON="rauf",OFF="runter"] autoupdate=false //verhindert, dass die Knöpfe 'einrasten'
rule "rollo 1" when Item rollo_1 changed //Rule reagiert auf Änderung des Items, falls das unzuverlässig ist, geht auch received command then if (rollo_1.state==OFF) rollo_1_ab.sendCommand(ON) else rollo_1_auf.sendCommand(ON) end
[SIZE=14px][FONT=inherit]String rollo_1_auf "rollo1auf" { harmonyhub=">[press:Rollos:1Up/On], autoupdate=false" //item zum rauf fahren String rollo_1_ab "rollo1ab" { harmonyhub=">[press:Rollos:1Down/Off], autoupdate=false" //item zum runter fahren[/FONT] [FONT=inherit]Switch rollo_1 "Rollo 1" //Hilfsitem für die Sitemap[/FONT][/SIZE]
Switch item=rollo_1 mappings=[ON="rauf",OFF="runter"]
[COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]Switch[/COLOR][COLOR=#931a68]item=[/COLOR][COLOR=#000000]rollo_1 [/COLOR][COLOR=#931a68]icon=[/COLOR]"blind"[COLOR=#931a68]mappings=[[/COLOR][COLOR=#000000]ON=[/COLOR]"⇑ [U]rauf[/U] "[COLOR=#000000],STOP=[/COLOR]"Stop"[COLOR=#000000], OFF=[/COLOR]"⇓ [U]runter[/U]"[COLOR=#000000]][/COLOR][/SIZE][/FONT][/COLOR]
[COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]rule[/COLOR]"[U]rollo[/U] 1"[/SIZE][/FONT][/COLOR] [COLOR=#931A68][FONT=Monaco][SIZE=11px]when[/SIZE][/FONT][/COLOR] [COLOR=#4E9072][FONT=Monaco][SIZE=11px][COLOR=#931a68]Item[/COLOR][COLOR=#000000] rollo_1 [/COLOR][COLOR=#931a68]received command[/COLOR][/SIZE][/FONT][/COLOR] [COLOR=#931A68][FONT=Monaco][SIZE=11px]then[/SIZE][/FONT][/COLOR] [FONT=Monaco][SIZE=11px] [COLOR=#931a68]if[/COLOR](receivedCommand != [COLOR=#931a68]null[/COLOR]){[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] [COLOR=#931a68]switch[/COLOR](receivedCommand.toString.[COLOR=#bb4300]upperCase[/COLOR]) {[/SIZE][/FONT] [FONT=Monaco][SIZE=11px][COLOR=#931a68]case[/COLOR] [COLOR=#3933ff]"UP"[/COLOR] :{[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] rollo_stoppen.[COLOR=#bb4300]sendCommand[/COLOR](ON)[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] rollo_1_auf.[COLOR=#bb4300]sendCommand[/COLOR](ON)[/SIZE][/FONT] [FONT=Monaco][SIZE=11px]}[/SIZE][/FONT] [COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]case[/COLOR]"DOWN"[COLOR=#000000] :{[/COLOR][/SIZE][/FONT][/COLOR] [FONT=Monaco][SIZE=11px] rollo_stoppen.[COLOR=#bb4300]sendCommand[/COLOR](ON)[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] rollo_1_ab.[COLOR=#bb4300]sendCommand[/COLOR](ON)[/SIZE][/FONT] [FONT=Monaco][SIZE=11px]}[/SIZE][/FONT] [COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]case[/COLOR]"STOP"[COLOR=#000000] :{[/COLOR][/SIZE][/FONT][/COLOR] [FONT=Monaco][SIZE=11px] rollo_stoppen.[COLOR=#bb4300]sendCommand[/COLOR](ON)[/SIZE][/FONT] [FONT=Monaco][SIZE=11px]}[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] }[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] }[/SIZE][/FONT] [FONT=Monaco][SIZE=11px] [COLOR=#931a68]end[/COLOR][/SIZE][/FONT]
[FONT=Monaco][SIZE=11px][COLOR=#931a68]String[/COLOR] rollo_1_auf [COLOR=#3933ff]"rollo1auf"[/COLOR] { harmonyhub=[COLOR=#3933ff]">[press:Rollos:1Up/On]"[/COLOR], autoupdate=[COLOR=#3933ff]"false"[/COLOR] } [/SIZE][/FONT] [COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]String[/COLOR][COLOR=#000000] rollo_1_ab [/COLOR]"rollo1ab"[COLOR=#000000] { harmonyhub=[/COLOR]">[press:Rollos:1Down/Off]"[COLOR=#000000], autoupdate=[/COLOR]"false"[COLOR=#000000] }[/COLOR][/SIZE][/FONT][/COLOR] [COLOR=#3933FF][FONT=Monaco][SIZE=11px][COLOR=#931a68]String[/COLOR][COLOR=#000000] rollo_stoppen [/COLOR]"rollostop"[COLOR=#000000] { harmonyhub=[/COLOR]">[press:Rollos:Rollostop]"[COLOR=#000000], autoupdate=[/COLOR]"false"[COLOR=#000000] }[/COLOR][/SIZE][/FONT][/COLOR] [FONT=Monaco][SIZE=11px][COLOR=#931a68]Rollershutter[/COLOR] rollo_1 [COLOR=#3933ff]"Rollo 1"[/COLOR]{ autoupdate=[COLOR=#3933ff]"false"[/COLOR] }[/SIZE][/FONT]
[COLOR=#931A68][FONT=Monaco][SIZE=11px]Switch item=[COLOR=#000000]rollo_1 [/COLOR]icon=[COLOR=#3933ff]"blind"[/COLOR][/SIZE][/FONT][/COLOR]
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar