![]() |
Openhab 3 WIH things & items defintion - Druckversion +- LCN Forum (https://forum.lcn.eu) +-- Forum: Installation und Integration (https://forum.lcn.eu/forumdisplay.php?fid=31) +--- Forum: Kopplungen (https://forum.lcn.eu/forumdisplay.php?fid=14) +--- Thema: Openhab 3 WIH things & items defintion (/showthread.php?tid=1775) |
Openhab 3 WIH things & items defintion - rayb - 11.07.2021 Hallo Zusammen, ich bin dabei mein Openhab Installation auf OH3 umzustellen. Für die Wetterstation WIH hab stolpere ich jedoch auf Probleme mit der Definition für den Stand der Sonne (Azimut u. Elevation). Angehängt sind die Screenshots vom LCN-PRO sowie die Items im Openhab. Frage, wie muss die Definition aussehen, damit ich die Winkel richtig angezeigt bekomme? Gibt es eine Unit die ich angeben kann? In der Hilfe zum Binding ist da leider wenig zu sehen? Vielen Dank Ralf lcn.items Code: // M125 SH+ WIH Technik Unterverteilung lcn.things Code: Bridge lcn:pckGateway:bus [ hostname="192.168.1.28", port=4114, username="lcn", password="xxxxxx", mode="native50" ] { RE: Openhab 3 WIH things & items defintion - rayb - 11.07.2021 Hallo Zusammen, mir hat das Thema über den Tag keine Ruhe gelassen und bin dann auf die Idee gekommen, selbst mal in die Quellen für das Binding zu schauen. Siehe da, in der "config.xml" ist man dann auch sehr schnell fündig geworden. https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.lcn/src/main/resources/OH-INF/config/config.xml Beim Wind kann man sicherlich auch noch optimieren, aber das ist jetzt nur noch ein wenig testen mit "Windspeed". Viele Grüße Ralf lcn.items Number WetterLichtAve "M125 var 1 Licht ave [%.1f lx]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#1"} Number:Temperature TempAussen "M125 var 6 Aussentemp. Dach [%.1f %unit%]" <temperature> (gWetter) {channel="lcn:module:bus:S000M125:variable#6"} Number Wind "M125 val 7 Wind Dach [%.1f %unit%]" <wind> (gWetter) {channel="lcn:module:bus:S000M125:variable#7"} Number WetterLichtO "M125 var 8 Licht O [%d %unit%]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#8"} Number WetterLichtS "M125 var 9 Licht S [%d %unit%]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#9"} Number WetterLichtW "M125 var10 Licht W [%d %unit%]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#10"} Number:Angle WetterAzimut "M125 var11 Azimut [%.1f %unit%]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#11"} Number:Angle WetterElevation "M125 var12 Elevation [%.1f %unit%]" <sun> (gWetter) {channel="lcn:module:bus:S000M125:variable#12"} lcn.things Thing module S000M125 "LCN M125 SH+ WIH Technik Unterverteilung" [ moduleId=125, segmentId=0 ] { Channels: Contact : binarysensor#8 [ invertState=true ] Number : variable#1 [ unit="native" ] // Lux Light Average by calculation rule in variable definition Number : variable#6 [ unit="temperature" ] // Temperatur Number : variable#7 [ unit="windspeed" ] // Wind ms Number : variable#8 [ unit="native" ] // Lux Light Ost Number : variable#9 [ unit="native" ] // Lux Light Sued Number : variable#10 [ unit="native" ] // Lux Light West Number : variable#11 [ unit="angle" ] // Azimut Number : variable#12 [ unit="angle" ] // Elevation } |