Sitemap switch display not updating with item update

  • Platform information:
    • Hardware: Intel 64bit
    • OS: Windows 7 x64
    • Java Runtime Environment: Java 1.8.0
    • openHAB version: 2.1.0 release
  • Issue of the topic: A switch displayed in the basic sitemap is updated by a rule triggered by a button on the same sitemap with

and it works for about 10 minutes, but afterwards the item is still updated by the button press, but the switch icon stops updating to the “ON” position after about 10 minutes. To fix this, OH2 must be restarted, and it will work again.

  • Items configuration related to the issue:
    Switch BedLightState “Bedroom lights”{mqtt=">[mosquitto:light:command:ON:1],>[mosquitto:light:command:OFF:0]"}

  • Sitemap configuration related to the issue:
    Switch item=NormalScene icon=“light” mappings=[OFF=“Normal Scene”]
    Switch item=BedLightState

  • Rules code related to the issue: