I am using openhabian and the GPIO binging to read inputs from my alarm system.
I have items setup and working for reading each of the GPIO inputs. These read the different modes of the alarm system (armed home and armed away).
I would like my site map to show me a single text item that reads “armed away”, “armed home” or “disarmed” based on the status of these GPIO inputs. What would be the best way to do this?
My thought was to create rules that would print a string value to a separate Alarm_Status item triggered by the status of the inputs. Only one of the 2 inputs would ever be on at a time indicating either armed away or armed home. When both are off this would be disarmed.
I don’t know how to get a rule to print a string value to an item. How would I achieve this?
Thanks for your help.