Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh item state in basicUI #15

Open
gbleite opened this issue Jun 19, 2023 · 0 comments
Open

Refresh item state in basicUI #15

gbleite opened this issue Jun 19, 2023 · 0 comments

Comments

@gbleite
Copy link

gbleite commented Jun 19, 2023

Hello,

I'm starting with some PoC running openHAB-SimpleBinary and i've noticed that the items are not getting automatically updated in BasicUI. For Switches I could workaround it by setting autorefresh to true, but for Contact, it is not refreshing even when the status is updated over logs. Refreshing BasicUI the item is automatically refreshed. The status is also automatically refreshed in Channel view from Openhab Admin -> Things -> Generic Thing -> Channels

Switch issue:
image

Contact Issue:
image

LED.things
Bridge simplebinary:uart_bridge:ttyUSB0 "ttyUSB0"  [ port="/dev/ttyUSB0", baudRate="9600" ] {
   Thing generic_device arduino "Arduino" {
      Channels:
          Type chSwitch: Item_1_0  [ stateAddress="1:1", commandAddress="1:0" ]
          Type chContact: Item_1_1 [ stateAddress="1:2" ]
   }
}
LED.items
Switch  Item_1_0  "LED switch"     { channel="simplebinary:generic_device:ttyUSB0:arduino:Item_1_0" }
Contact Item_1_1 "LED state [%s]" { channel="simplebinary:generic_device:ttyUSB0:arduino:Item_1_1" }
LED.sitemap
sitemap LED label="Main"
{
   Frame label="Arduino LED"
   {
      Switch item=Item_1_0
      Text item=Item_1_1
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant