Dear friends of the openHAB community, I am new to the world of home automation and I need your help, because after a couple of months trying to solve the following problem, but I have not yet found the solution.
I’ve researched this site and other forums as well, and found similar problems without the expected results.
The problem I have is that both in the Sitemaps (http://10.0.0.91:8080/basicui/app) and in the application for the cell phone: the icons of the lamps I have in the house always show “power on”, when I change the state they show the actual state of the lamps but a few seconds later they turn back and show the “on” state even though the switch is already in the “off” state.
I put the code I use to see what they recommend and if there are any errors or settings that I have not used.
Thank you very much
Hey @Rhoos55,
you could have reduced the example and put it into code fences for better presentation (I’ve done that for you).
Regarding the actual issue: Nothing is wrong with your config and the error doesn’t make much sense to me. Could you please post a few screenshots and tell us which version of openHAB you are on? Are there any rules working with the items? Please post the content of events.log for one of those items.
My first guess is that the Items are not going back to “on” but to “NULL” which is something like the unknown state. That would explain the icon but not the cause
First of all Thom, thanks for your fast response. The openhab version is “openHAB 2.1.0-1 (Build )”, I don’t use any rule for the items yet. The event log is a bit extense, so tell me if I can forward it through your e-mail. I’d also appreciate if you can specify which screen captures would be best for you in order to understand the issue.
Hey!
Seems like you are using openHABian. The wrongful “(Build )” could be related but i don’t think so.
I’d recommend to practice log browsing. Please do the follow:
Now switch your lamps on and off and observe the state changes of the Item.
Btw. think about more meaningful names for your items. You might know what they mean now but you’ll confuse yourself in the long run. See the style recommendations here: http://docs.openhab.org/configuration/items.html#name
Hello Thom, thanks for your response. Attached you’ll find the result of the command. After running it, I used the cel app open hab on Android and as you can see after issuing the command you suggested, my android cell app shows “on” even though in reality they should be off. If I switch the icon for the specified item,the light goes off, but after a few seconds the icon shows as on. All items behave the same way, if I switch them on they show the on state, but when I switch them off, the icons will show an on state even though they’re really off.
Thanks for your comment about the item names, I’ll consider it.
If I reset the Raspberry Pi which is my openhab server, when the system restarts all the icons are on, but the switch icon is off, and they won’t respond to my switching them on or off. After I reset a second time everything turns back to the previous way of working.
What type of file is your icon?
If it is a png file and you have selected vector icon for classic UI which I know you have to make your gates work then you won’t be able to use the icon.
You need to use all svg or all png