Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 994 Bytes

BritishGasHive-Using-Ruby.md

File metadata and controls

24 lines (13 loc) · 994 Bytes

You Will Need

This looks simple but I created the Ruby Gem for this so you don't have to do the hard work, you could do it all in one script.

One you have Ruby installed you can get the example script from GitHub

Ruby Script

Create a Number item with a binding to call the Ruby script and use the output to update your Number item, obviously change the "OpenHABAlertMe.rb to whatever you called your script.

Number Temperature_Hive "Temperature [%.1f °C]" <temperature> (Living) {exec="<[ruby C:/Tools/Scripts/OpenHABAlertMe.rb:60000:REGEX((.*?))]"}

OpenHAB Item

Here is the event bus update

OpenHAB Update

And the corresponding UI

UI