Might be on the wrong Topic.
I want to create a string to report my alarm status. and not sure where to start.
my setup is as follows.
I have a raspberry pi ( OpenHAB-DB) that monitors my alarm via the alarm panel Output relays.
this is done with 4 GPIO of the PI.
pin 1 = Arm away
pin 2 = Arm Stay
pin 3 = Burglary ( Pulsed out 1s/1s)
pin 4 = Panic ( Pulsed out 1s/1s)
how I have it currently is as items and sitemap. and statuses is sent directly from node red. as links.
Switch Armed_1 "ARMED Away" (Alarm) Switch Stay "ARMED Stay" (Alarm) Switch Break_in "Buglery" (Alarm) Switch Fire "Fire" (Alarm) Switch Panic "Panic / Duress"
Default item=Armed_1 label="ARMED Away" Default item=Stay label="ARMED Stay" Default item= Break_in label="Buglery" icon="lightbulb" Default item=Fire label="Fire" icon="lightbulb" Default item=Panic label="Panic / Duress" icon="arduino"
And this gives me the following .
what I want to have on my site map is one item
String item=Alarm Status label= "Alarm Status"
now I need to get the statuses to that item.(Armed Away / Armed Stay / Disarmed / Panic / Burglary )
what would you guys sagest I do.
- use node red direct ?
- use MQtt
- Write Rules to do it.