I’m pretty new in openHAB, and I’d like to ask a thing.
I’m using the latest stable version of openHABian on a raspberry pi 3.
I’m trying to insert a button that opens my front door of the house, and I would like to put in the same row of the item of the switch also a number that represents me the times that the door was opened in the day.
And I think I succeeded, but this number is only present if I open openHAB from the android application or from the browser, on the other hand, if I open the openHAB application from the iPhone, the opening number is not shown , as you can see from the figure below.
Below are also the instructions that I wrote for this button and counter.
.items
String OpenDoor "Porta [%s]" <frontdoor-open> {autoupdate="false"}
.sitemap
Switch item=OpenDoor mappings=[x="Apri"]
.rules
var Number counter = 0
rule "Trigger stairs door button"
when
Item OpenDoor received command
then
val results = executeCommandLine("sh /etc/openhab2/scripts/stairs_door.sh", 50000)
logInfo("execTest", results)
counter = counter + 1
OpenDoor.postUpdate(counter)
end
Am I wrong somewhere?
Or do you think it could be a bug in the openHAB application for iOS?
In case there could be another way to do this?