openhab / openhab-qnap-qpkg

openHAB Packages for QNAP NAS systems
Eclipse Public License 2.0
77 stars 21 forks source link

Basic UI not updating with changes #49

Closed vador98 closed 6 years ago

vador98 commented 6 years ago

I have Openhab 2 v2.2.0-1 release build installed on my Qnap. I have a working sitemap. I have found that the classic UI responds to changes as expected and updates automatically. Basic UI is not behaving the same way, however. In order for it to show the changes, I need to refresh the page.

Item definition:

Switch  itm_camera_Back_Porch   "Back Porch"    <switch>    [ "Switchable" ] 
Switch  itm_camera_Front_Porch  "Front Porch"   <switch>    [ "Switchable" ] 
Switch  itm_camera_Kitchen  "Kitchen"   <switch>    [ "Switchable" ] 
Switch  itm_camera_Hallway  "Hallway"   <switch>    [ "Switchable" ] 
Switch  itm_camera_Driveway "Driveway"  <switch>    [ "Switchable" ] 
Switch  itm_sonoff_Bedroom_Lamps    "Bedroom Lamps" <light> (LR,gLight) [ "Lighting" ]  { mqtt=">[mymosquitto:qiot/things/admin/BedroomLamps/POWER/cmnd/POWER:command:*:default],<[mymosquitto:qiot/things/admin/BedroomLamps/POWER:state:default]" }

String  itm_Laundry_Room_Water_Sensor   "Laundry Room [SCALE(WaterSensor.scale):%s]"    <water> (WaterSensors) { mqtt="<[mymosquitto:qiot/things/admin/ArduinoRFGateway/10/1:state:default]" }

Sitemap definition:

sitemap home label="Main Menu" 
{
        Frame label="Bedroom Lights" {
        Switch item=itm_sonoff_Bedroom_Lamps
    }

    Frame label="Water Sensors" {
        Text item=itm_Laundry_Room_Water_Sensor icon="water"
    }

    Frame label="Cameras" {
            Switch item=itm_camera_Back_Porch 
            Switch item=itm_camera_Front_Porch
            Switch item=itm_camera_Kitchen
            Switch item=itm_camera_Hallway
            Switch item=itm_camera_Driveway
        }   

}

Scale Transformation:

[..200[=Dry
[200..]=Water Detected!

Since Classic UI is working as expected, I don't believe that it's anything I've configured. Please let me know if there's a setting I can try changing!

vador98 commented 6 years ago

Note: I think I've determined that this is only an issue if you happen to have errors in one of your setup files (.items or .rules). Once those are resolved, it appears that everything seems to update as expected. Closing issue!