I’m using OH 2 on a linux server.
For displaying the state of my garage door I have installed two homemeaticip window contacts. So once the door moves down the upper contact state changes to open and when completely shut the downer one changes to closed.
To display this in my habpanel I use a number item Scene_Garage[0=Closed, 1= Open]
As long the door get triggered by OH the display shows the correct state (open, closed)
As soon I trigger the door movement by the switch inside the garage or a radio control key, the diplaying scene is not correct.
I try to solve it by a rule for each contact with no success.
here is my config
rule “Garage Door opend”
when Item GarageOben changed
then
logInfo(“Logger”,"GarageOffen: " + triggeringItem.state)
if(GarageUnten.state == CLOSED)
{
logInfo(“Garagentür”, “=> ist geöffnet”)
Scene_Garage.postUpdate(1)
}
end
rule “Garage Door closed”
when Item GarageUnten changed
then
logInfo(“Logger”,"GarageZu: " + triggeringItem.state)
if(GarageOben.state == CLOSED)
{
logInfo(“Garagentür”, “=> ist geschlossen”)
Scene_Garage.postUpdate(0)
}
end
The events are not triggered and the response body via rest api is null?? Seems that the binding is ot correct
Any ideas what I can do?
thanks
Yes, this is why I said to look into openhab.log - in the same folder. events.log is useful for looking at e.g. Item changes, openhab.log is useful for looking at software reports. If you get nothing, your logging is broken. But you seem to say there is something - “info”, whatever that may be.
May we see a sample of what you are looking at?
rule “Garage Door opend”
when Item GarageOben changed
then
logInfo(“Logger”,"GarageOffen: " + triggeringItem.state)
if(GarageUnten.state == "CLOSED")
{
logInfo(“Garagentür”, “=> ist geöffnet”)
Scene_Garage.postUpdate(1)
}
end
the type of item for contact needs to be a string type, the changed events are triggered now
I have not installed the frontail logger, i use log:tail in the karaff console, how can I do install the logger?
with tail -f /var/log/openhab2/openhab.log the log is displayed in the console.
here is the info of my homematic device after I have changed the type of item to string like fibu-freak adviced. Debug level for homematic binding is still activ, I expected some more details though ??
as a workaround. 'til you found a way to integrate “frontail”. Maybe @rossko57 knows a solution.
How have you installed "openHAB"and what is your hardware ?
The “more Info” about DEBUG you should see in the openhab.log
I’m not very experienced. What I can say is that it was not very hard to install the Bridge and the Things for the Homematic-Binding (ccu3) via Autodiscovery.
I have to say that it doesn’t work (for me) to create the Bridge and the Things with Text-Files in my OH2.5-M2.
After creating Bridge/Thing(Autodiscovery) you are able to create all the items with Channels for your special Homematic-Device via VSCode into a . items file. And I can say that’s a lot more than one can see in PaperUI.