Set sensor name & type (received) in openhab items



  • Hi guys,
    I was wondering if there was a way to ask a node for its name and type (eg. Temp/hum) and put it into openhab items? Right now i have this information hardcoded in openhab, wich means when i swap node id's or upgrade sensors i have to manualy recode these values. If anyone has some example code i would love to see it. Using serial gateway btw, not the binding.


Log in to reply
 

Suggested Topics

  • 4
  • 2
  • 23
  • 2
  • 5
  • 2
  • 15
  • 3

137
Online

9.5k
Users

10.1k
Topics

105.2k
Posts