openHAB 3.0 - accès aux informations système

Même si cela n’est finalement pas si compliqué que cela, voici un très court tutoriel montrant en images comment accéder à différentes informations système sous openHAB 3.0 grâce au System Info Binding. Le point d’entrée est bien évidemment la documentaion d’OH3 disponible ici.


Installation du Binding

Il nous faut tout d’abord installer et configurer le System Info Binding via l’interface d’OH3.

  • installation du Binding: SettingsBindingsBlue « + »System Info BindingInstall

Systeminfo Binding - 1
Systeminfo Binding - 1

Systeminfo Binding - 2
Systeminfo Binding - 2

  • création d’un Thing connecté au System Info Binding: SettingsBindingsBlue « + »Systeminfo BindingSysteminfo
    • modifier éventuellement le Label
    • cliquer sur Create Thing

Systeminfo Thing - 1
Systeminfo Thing - 1

Systeminfo Thing - 2
Systeminfo Thing - 2

Systeminfo Thing - 3
Systeminfo Thing - 3


Ajout d'Items

Nous pouvons maintenant parcourir la liste des Channels du System Info pour configurer différérents Items. Prenons par exemple le cas de l’adresse IP de la machine sur laquelle tourne OH3.

  • SettingsThingsSysteminfoChannels
    • nous avons alors la liste de toutes les informations disponibles via ce Binding

Systeminfo Item - 1
Systeminfo Item - 1

Systeminfo Item - 2
Systeminfo Item - 2

Systeminfo Item - 3
Systeminfo Item - 3

  • sélectionnons par exemple le Channel « IP Address »
    • cliquer sur Add Link to Item
    • choisir Create a new Item
    • cliquer sur Link

Systeminfo Item - 4
Systeminfo Item - 4

Systeminfo Item - 5
Systeminfo Item - 5

  • ce nouvel Item « IP Address » apparaît sur l’interface avec ici la valeur 192.168.1.152

Systeminfo Item - 6
Systeminfo Item - 6

Systeminfo Item - 7
Systeminfo Item - 7


Conclusion

Comme nous pouvons le constater, ce System Information Binding nous permet d’accéder facilement à bon nombre d’informations sur le système au travers d'Items. Toutes les étapes ont été réalisées directement via l’interface graphique d’OH3.

Pour toutes remarques ou suggestions, n’hésitez surtout pas à me contacter sur manuel.munier@univ-pau.fr.

Précédent
Suivant