Sometimes ago I created a sitemap with an icon, which changes dynamically its colour between red and green. This icon behaves as intended in OpenHAB-Andoid. I have in Basic UI 4.2.2 settings ENABLE INLINE SVG.
I have this sitemap:
sitemap ab2 label="ab2" {
Text item=r9_power label="U" iconcolor=[r9==ON="green", r9==OFF="red"]
}
Thing mqtt:topic:r9 "Реле 9" (mqtt:broker:b1) [availabilityTopic="r9/online", payloadNotAvailable="false", payloadAvailable="true"] {
Channels:
Type number : r3_power "Реле 3" [stateTopic="r3/status/switch:0", transformationPattern="JSONPATH:$.apower", unit="VA"]
}
When I load basicui/app?sitemap=ab2 the webserver logs the requests below. That is, it fetches “/icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA”.
Log from OpenHAB-Android, after clearing the cache
```
Device information
Model: motorola edge 30
Manufacturer: motorola
Brand: motorola
Device: dubai
Product: dubai_ge
OS: 14
Display: 1080x2175, 2.5 density
Data usage policy: DataUsagePolicy(canDoLargeTransfers=true, loadIconsWithState=true, autoPlayVideos=false, canDoRefreshes=false), data saver: 3, battery saver: true
--------- beginning of main
11-15 14:02:49.726 19754 19754 D LogActivity: onOptionsItemSelected()
--------- beginning of events
11-15 14:02:49.739 19754 19754 I wm_on_top_resumed_lost_called: [52168942,org.openhab.habdroid.ui.LogActivity,topStateChangedWhenResumed,0]
11-15 14:02:49.741 19754 19754 I wm_on_paused_called: [52168942,org.openhab.habdroid.ui.LogActivity,performPause,0,0]
11-15 14:02:49.748 19754 19754 I wm_on_restart_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,performRestart,0]
11-15 14:02:49.750 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:49.751 19754 19754 I wm_on_start_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,handleStartActivity,3]
11-15 14:02:49.751 19754 19754 I wm_on_resume_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,RESUME_ACTIVITY,0,0]
11-15 14:02:49.751 19754 19754 I wm_on_top_resumed_gained_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,topWhenResuming,0]
11-15 14:02:49.752 19754 21381 D ConnectionFactory: checkAvailableConnection: found types [ConnectionType(type = Wifi, network=616)]
11-15 14:02:49.754 19754 21381 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:49.754 19754 21381 D ConnectionFactory: Server openHAB isn't restricted to Wi-Fis
11-15 14:02:49.754 19754 21381 D AbstractConnection: Checking reachability of https://:888/ (via 616)
11-15 14:02:49.754 19754 21381 D TrafficStats: tagSocket(142) with statsTag=0xffffffff, statsUid=-1
11-15 14:02:49.755 19754 23935 D TrafficStats: tagSocket(127) with statsTag=0xffffffff, statsUid=-1
11-15 14:02:49.762 19754 19781 E OpenGLRenderer: Unable to match the desired swap behavior.
11-15 14:02:49.781 19754 21381 D AbstractConnection: Socket connected (attempt 0)
11-15 14:02:49.781 19754 21381 D ConnectionFactory: Connecting to local URL via ConnectionType(type = Wifi, network=616)
11-15 14:02:50.322 19754 19781 D Surface : Surface::disconnect
11-15 14:02:50.322 19754 19781 D BufferQueueProducer: [VRI[LogActivity]#21(BLAST Consumer)21](id:4d2a00000015,api:1,p:19754,c:19754) disconnect: api 1
11-15 14:02:50.322 19754 19781 D OpenGLRenderer: endAllActiveAnimators on 0xb4000073be2cb7f0 (RippleDrawable) with handle 0xb40000732e1227d0
11-15 14:02:50.325 19754 19754 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback$1@651c2e1
11-15 14:02:50.326 19754 19754 I wm_on_stop_called: [52168942,org.openhab.habdroid.ui.LogActivity,LIFECYCLER_STOP_ACTIVITY,0]
11-15 14:02:50.327 19754 19754 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@b371448
11-15 14:02:50.327 19754 19754 I wm_on_destroy_called: [52168942,org.openhab.habdroid.ui.LogActivity,performDestroy,1]
11-15 14:02:50.327 19754 19754 D AutofillManager: view not autofillable - not passing ime action check
11-15 14:02:51.307 19754 19754 I wm_on_top_resumed_lost_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,topStateChangedWhenResumed,0]
11-15 14:02:51.308 19754 19754 I wm_on_paused_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,performPause,1,0]
11-15 14:02:51.312 19754 19754 I wm_on_restart_called: [2162905,org.openhab.habdroid.ui.MainActivity,performRestart,0]
11-15 14:02:51.312 19754 19754 D MainActivity: onStart()
11-15 14:02:51.312 19754 19754 D PageConnectionHolderFragment: onStart(), started false
11-15 14:02:51.312 19754 19754 D PageConnectionHolderFragment: Loading data for https://:888/rest/sitemaps/ab2/ab2, long polling false
11-15 14:02:51.313 19754 19754 D WidgetListFragment: onStart() https://:888/rest/sitemaps/ab2/ab2
11-15 14:02:51.313 19754 19754 D PageConnectionHolderFragment: Trigger update for URL https://:888/rest/sitemaps/ab2/ab2, force false
11-15 14:02:51.313 19754 19754 D ContentController: Got update for URL https://:888/rest/sitemaps/ab2/ab2, pending []
11-15 14:02:51.313 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
--------- beginning of system
11-15 14:02:51.314 19754 19754 D VRI[MainActivity]: update {(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION wanim=0x10302fe
11-15 14:02:51.314 19754 19754 D VRI[MainActivity]: fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH DRAWS_SYSTEM_BAR_BACKGROUNDS
11-15 14:02:51.314 19754 19754 D VRI[MainActivity]: pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND FIT_INSETS_CONTROLLED
11-15 14:02:51.314 19754 19754 D VRI[MainActivity]: bhv=DEFAULT
11-15 14:02:51.314 19754 19754 D VRI[MainActivity]: fitSides=} by setLayoutParams
11-15 14:02:51.315 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:51.315 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:51.316 19754 19754 D MainActivity: onActiveConnectionChanged()
11-15 14:02:51.318 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:51.318 19754 19754 D MainActivity: Cannot auto select server: No server with configured wifi
11-15 14:02:51.318 19754 19754 I wm_on_start_called: [2162905,org.openhab.habdroid.ui.MainActivity,handleStartActivity,6]
11-15 14:02:51.319 19754 19754 D MainActivity: preferenceActivityCallback: ActivityResult{resultCode=RESULT_OK, data=Intent { }}
11-15 14:02:51.319 19754 19754 I wm_on_activity_result_called: [2162905,org.openhab.habdroid.ui.MainActivity,ACTIVITY_RESULT]
11-15 14:02:51.319 19754 19754 D MainActivity: onNewIntent()
11-15 14:02:51.319 19754 19754 D MainActivity: Got intent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 pkg=org.openhab.habdroid.beta cmp=org.openhab.habdroid.beta/org.openhab.habdroid.ui.MainActivity }
11-15 14:02:51.319 19754 19754 D MainActivity: onResume()
11-15 14:02:51.320 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:51.321 19754 19754 I wm_on_resume_called: [2162905,org.openhab.habdroid.ui.MainActivity,LIFECYCLER_RESUME_ACTIVITY,1,0]
11-15 14:02:51.321 19754 19754 I wm_on_top_resumed_gained_called: [2162905,org.openhab.habdroid.ui.MainActivity,topWhenResuming,0]
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: update {(0,0)(fillxfill) sim={adjust=pan forwardNavigation} ty=BASE_APPLICATION wanim=0x10302fe
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH DRAWS_SYSTEM_BAR_BACKGROUNDS
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND USE_BLAST APPEARANCE_CONTROLLED FIT_INSETS_CONTROLLED
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: vsysui=LAYOUT_STABLE LAYOUT_FULLSCREEN
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: bhv=DEFAULT
11-15 14:02:51.322 19754 19754 D VRI[MainActivity]: fitSides=} by setLayoutParams
11-15 14:02:51.327 19754 19781 E OpenGLRenderer: Unable to match the desired swap behavior.
11-15 14:02:51.381 19754 19754 D PageConnectionHolderFragment: Updated page data for URL https://:888/rest/sitemaps/ab2/ab2 (1 widgets)
11-15 14:02:51.381 19754 19754 D ContentController: Got update for URL https://:888/rest/sitemaps/ab2/ab2, pending []
11-15 14:02:51.382 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:51.855 19754 19781 D Surface : Surface::disconnect
11-15 14:02:51.855 19754 19781 D BufferQueueProducer: [VRI[PreferencesActivity]#22(BLAST Consumer)22](id:4d2a00000016,api:1,p:19754,c:19754) disconnect: api 1
11-15 14:02:51.856 19754 19781 D OpenGLRenderer: endAllActiveAnimators on 0xb4000073be2a5460 (RippleDrawable) with handle 0xb40000732e0a42f0
11-15 14:02:51.859 19754 19754 I wm_on_stop_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,LIFECYCLER_STOP_ACTIVITY,0]
11-15 14:02:51.860 19754 19754 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.app.Activity$$ExternalSyntheticLambda0@8622407
11-15 14:02:51.861 19754 19754 I wm_on_destroy_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,performDestroy,2]
11-15 14:02:52.676 19754 19754 D MainActivity: onOptionsItemSelected()
11-15 14:02:53.154 19754 21381 D ServerProperties: Server returned sitemaps: [Sitemap(name=ab2, label=AB2, icon=null, homepageLink=https://:888/rest/sitemaps/ab2/ab2), Sitemap(name=ab, label=A2, icon=null, homepageLink=https://:888/rest/sitemaps/ab/ab), Sitemap(name=network, label=Уреди, icon=null, homepageLink=https://:888/rest/sitemaps/network/network)]
11-15 14:02:53.968 19754 19754 I wm_on_top_resumed_lost_called: [2162905,org.openhab.habdroid.ui.MainActivity,topStateChangedWhenResumed,0]
11-15 14:02:53.968 19754 19754 D MainActivity: onPause()
11-15 14:02:53.969 19754 19754 D WidgetListFragment: onPause() https://:888/rest/sitemaps/ab2/ab2
11-15 14:02:53.970 19754 19754 I wm_on_paused_called: [2162905,org.openhab.habdroid.ui.MainActivity,performPause,2,0]
11-15 14:02:53.995 19754 19754 I wm_on_create_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,performCreate,9,0]
11-15 14:02:53.998 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:54.020 19754 19754 D Ringtone: Successfully created local player
11-15 14:02:54.026 19754 19754 D MainSettingsFragment: Removing notification prefs for < 25
11-15 14:02:54.029 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://:888/, userName=, password=), remotePath=ServerPath(url=https:///, userName=, password=), sslClientCert=null, defaultSitemap=DefaultSitemap(name=ab, label=A2), wifiSsids=[], restrictToWifiSsids=false, frontailUrl=null, mainUiStartPage=null)
11-15 14:02:54.030 19754 19754 I wm_on_start_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,handleStartActivity,35]
11-15 14:02:54.030 19754 19754 I wm_on_resume_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,RESUME_ACTIVITY,0,0]
11-15 14:02:54.032 19754 19754 D ViewRootImpl: update {(0,0)(fillxfill) sim={forwardNavigation} ty=BASE_APPLICATION wanim=0x10302fe
11-15 14:02:54.032 19754 19754 D ViewRootImpl: fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
11-15 14:02:54.032 19754 19754 D ViewRootImpl: pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND FIT_INSETS_CONTROLLED
11-15 14:02:54.032 19754 19754 D ViewRootImpl: bhv=DEFAULT
11-15 14:02:54.032 19754 19754 D ViewRootImpl: fitSides=} by setView
11-15 14:02:54.035 19754 19754 I wm_on_top_resumed_gained_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,topStateChangedWhenResumed,0]
11-15 14:02:54.043 19754 19781 E OpenGLRenderer: Unable to match the desired swap behavior.
11-15 14:02:54.385 19754 19754 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=com.google.android.material.motion.MaterialBackOrchestrator$Api34BackCallbackDelegate$1@4fe4f93
11-15 14:02:54.584 19754 19781 D Surface : Surface::disconnect
11-15 14:02:54.584 19754 19781 D BufferQueueProducer: [VRI[MainActivity]#23(BLAST Consumer)23](id:4d2a00000017,api:1,p:19754,c:19754) disconnect: api 1
11-15 14:02:54.585 19754 19781 D OpenGLRenderer: endAllActiveAnimators on 0xb4000073be069240 (NavigationMenuItemView) with handle 0xb40000732e0af2a0
11-15 14:02:54.590 19754 19754 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback$1@21c8bb5
11-15 14:02:54.591 19754 19754 D MainActivity: onStop()
11-15 14:02:54.592 19754 19754 D PageConnectionHolderFragment: onStop()
11-15 14:02:54.592 19754 19754 D PageConnectionHolderFragment: Canceling connection for URL https://:888/rest/sitemaps/ab2/ab2
11-15 14:02:54.592 19754 19754 I wm_on_stop_called: [2162905,org.openhab.habdroid.ui.MainActivity,STOP_ACTIVITY_ITEM,1]
11-15 14:02:54.592 19754 19754 D MainActivity: onSaveInstanceState()
11-15 14:02:54.592 19754 19754 D ContentController: onSaveInstanceState()
11-15 14:02:54.835 19754 19754 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
11-15 14:02:54.852 19754 19754 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
11-15 14:02:54.868 19754 19754 W ListPreference: Setting a summary with a String formatting marker is no longer supported. You should use a SummaryProvider instead.
11-15 14:02:56.479 19754 19754 I wm_on_top_resumed_lost_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,topStateChangedWhenResumed,0]
11-15 14:02:56.480 19754 19754 I wm_on_paused_called: [153416279,org.openhab.habdroid.ui.preference.PreferencesActivity,performPause,0,0]
11-15 14:02:56.499 19754 19754 I wm_on_create_called: [29143103,org.openhab.habdroid.ui.LogActivity,performCreate,9,0]
11-15 14:02:56.500 19754 19754 I wm_on_start_called: [29143103,org.openhab.habdroid.ui.LogActivity,handleStartActivity,0]
11-15 14:02:56.501 19754 19754 I wm_on_resume_called: [29143103,org.openhab.habdroid.ui.LogActivity,RESUME_ACTIVITY,1,0]
11-15 14:02:56.502 19754 19754 D ViewRootImpl: update {(0,0)(fillxfill) sim={forwardNavigation} ty=BASE_APPLICATION wanim=0x10302fe
11-15 14:02:56.502 19754 19754 D ViewRootImpl: fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR SPLIT_TOUCH HARDWARE_ACCELERATED DRAWS_SYSTEM_BAR_BACKGROUNDS
11-15 14:02:56.502 19754 19754 D ViewRootImpl: pfl=NO_MOVE_ANIMATION FORCE_DRAW_STATUS_BAR_BACKGROUND FIT_INSETS_CONTROLLED
11-15 14:02:56.502 19754 19754 D ViewRootImpl: bhv=DEFAULT
11-15 14:02:56.502 19754 19754 D ViewRootImpl: fitSides=} by setView
11-15 14:02:56.505 19754 19754 I wm_on_top_resumed_gained_called: [29143103,org.openhab.habdroid.ui.LogActivity,topStateChangedWhenResumed,0]
11-15 14:02:56.511 19754 19781 E OpenGLRenderer: Unable to match the desired swap behavior.
11-15 14:02:56.520 19754 19754 D LogActivity: onCreateOptionsMenu()
11-15 14:02:56.528 19754 19754 D AutofillManager: view not autofillable - not passing ime action check
```
So, my questions where does OpenHAB-Android fetch the icon for the sitemap from? Why BasicUI does not use the same icon as OpenHAB-Android, but instead uses the standard OpenHAB-poweroutlet icon for the same sitemap?
Sometimes ago I created a sitemap with an icon, which changes dynamically its colour between red and green. This icon behaves as intended in OpenHAB-Andoid. I have in Basic UI 4.2.2 settings ENABLE INLINE SVG.
I have this sitemap:
bound to this item:
and these MQTT thing:
When I load basicui/app?sitemap=ab2 the webserver logs the requests below. That is, it fetches “/icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA”.
HTTP Server logs when loading Basic UI
``` 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/app?sitemap=ab2 HTTP/2.0" 200 1213 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/app?sitemap=ab2 HTTP/2.0" 200 1213 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 401 179 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 401 179 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/material-icons.css HTTP/2.0" 200 374 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/material-icons.css HTTP/2.0" 200 374 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/framework7-icons.css HTTP/2.0" 200 333 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/framework7-icons.css HTTP/2.0" 200 333 "https://192.168.0.10:888/basicui /app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/mdl/material.min.css HTTP/2.0" 200 16354 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/mdl/material.min.css HTTP/2.0" 200 16354 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/smarthome.css HTTP/2.0" 200 3389 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/smarthome.css HTTP/2.0" 200 3389 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/smarthome.js HTTP/2.0" 200 13486 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - supa [15/Nov/2024:13:47:51 +0200] "GET /basicui/smarthome.js HTTP/2.0" 200 13486 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/mdl/material.min.js HTTP/2.0" 200 9594 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/mdl/material.min.js HTTP/2.0" 200 9594 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 200 2501 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 200 2501 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - - [15/Nov/2024:13:47:51 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 401 179 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - - [15/Nov/2024:13:47:51 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 401 179 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 304 0 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /icon/poweroutlet?iconset=classic&format=svg&anyFormat=true&state=355.8+VA HTTP/2.0" 304 0 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/iconify/iconify-icon.min.js HTTP/2.0" 200 7753 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/iconify/iconify-icon.min.js HTTP/2.0" 200 7753 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 200 208 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 200 208 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/fonts/material-icons.woff2 HTTP/2.0" 200 128352 "https://192.168.0.10:888/basicui/material-icons.css" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/fonts/material-icons.woff2 HTTP/2.0" 200 128352 "https://192.168.0.10:888/basicui/material-icons.css" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/images/touch-icon-180.png HTTP/2.0" 200 7053 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" 192.168.0.242 - [15/Nov/2024:13:47:51 +0200] "GET /basicui/images/touch-icon-180.png HTTP/2.0" 200 7053 "https://192.168.0.10:888/basicui/app?sitemap=ab2" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" ```In OpenHAB-Android 3.16.4-beta, after I clear the cache and load the same sitemap, the server has these logs.
HTTP Server log, when serving OpenHAB-Android
``` 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 200 233 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "POST /rest/sitemaps/events/subscribe HTTP/2.0" 200 233 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "GET /rest/sitemaps/ab2/ab2?includeHidden=true HTTP/2.0" 200 462 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "GET /rest/sitemaps/ab2/ab2?includeHidden=true HTTP/2.0" 200 462 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "GET /icon/poweroutlet?format=SVG&anyFormat=true&iconset=classic&state=345.7%20VA HTTP/2.0" 200 2501 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:55:59 +0200] "GET /icon/poweroutlet?format=SVG&anyFormat=true&iconset=classic&state=345.7%20VA HTTP/2.0" 200 2501 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:56:00 +0200] "GET /icon/poweroutlet?format=SVG&anyFormat=true&iconset=classic&state=350.7%20VA HTTP/2.0" 200 2501 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" 192.168.0.117 - [15/Nov/2024:13:56:00 +0200] "GET /icon/poweroutlet?format=SVG&anyFormat=true&iconset=classic&state=350.7%20VA HTTP/2.0" 200 2501 "-" "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19" ```Requesting in the browser directly http://server/icon/poweroutlet?format=SVG&anyFormat=true&iconset=classic&state=345.7%20VA shows the poweroutlet icon from https://www.openhab.org/docs/configuration/iconsets/classic/ . But BasicUI and OpenHAB-Andoid show a different icon for the same item in the sitemap. I have configured it in the past to show this dynamic red/green icon, but now I find no configuration which justifies that the icon is different. In particular under icons/classic I have no poweroutlet icon.
Log from OpenHAB-Android, after clearing the cache
``` Device information Model: motorola edge 30 Manufacturer: motorola Brand: motorola Device: dubai Product: dubai_ge OS: 14 Display: 1080x2175, 2.5 density Data usage policy: DataUsagePolicy(canDoLargeTransfers=true, loadIconsWithState=true, autoPlayVideos=false, canDoRefreshes=false), data saver: 3, battery saver: true --------- beginning of main 11-15 14:02:49.726 19754 19754 D LogActivity: onOptionsItemSelected() --------- beginning of events 11-15 14:02:49.739 19754 19754 I wm_on_top_resumed_lost_called: [52168942,org.openhab.habdroid.ui.LogActivity,topStateChangedWhenResumed,0] 11-15 14:02:49.741 19754 19754 I wm_on_paused_called: [52168942,org.openhab.habdroid.ui.LogActivity,performPause,0,0] 11-15 14:02:49.748 19754 19754 I wm_on_restart_called: [198327208,org.openhab.habdroid.ui.preference.PreferencesActivity,performRestart,0] 11-15 14:02:49.750 19754 19754 D ServerConfiguration: load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://So, my questions where does OpenHAB-Android fetch the icon for the sitemap from? Why BasicUI does not use the same icon as OpenHAB-Android, but instead uses the standard OpenHAB-poweroutlet icon for the same sitemap?