Skip to content

Refresh item state in basicUI #15

@gbleite

Description

@gbleite

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
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions