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

SoundVolume property category shown as "undefined" in main UI #1976

Closed
bkpsu opened this issue Jul 21, 2023 · 6 comments · Fixed by #1986
Closed

SoundVolume property category shown as "undefined" in main UI #1976

bkpsu opened this issue Jul 21, 2023 · 6 comments · Fixed by #1986
Assignees
Labels
bug Something isn't working main ui Main UI

Comments

@bkpsu
Copy link

bkpsu commented Jul 21, 2023

When viewing the Properties page in Main UI, the SoundVolume property group is labeled "undefined". This is a new issue noticed post OH3.4 -> OH4 upgrade.

image

Property page should be labeled "Sound Volume" per model

Click on Properties page and look at SoundVolume property page.

Your environment

runtimeInfo:
  version: 4.0.0
  buildString: "Build #3545"
locale: en-US
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 17.0.7
  javaVendor: Private Build
  osName: Linux
  osVersion: 6.1.11-meson64
  osArchitecture: aarch64
  availableProcessors: 4
  freeMemory: 60074320
  totalMemory: 458227712
  startLevel: 100
bindings: null
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1
    prefersColorScheme: light
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 16
    language: en-US
    languages:
      - en-US
      - en
    onLine: true
    platform: Win32
  screen:
    width: 2560
    height: 1080
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: dark
    filled: true
    pageTransitionAnimation: default
    bars: light
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/114.0.0.0 Safari/537.36
timestamp: 2023-07-21T18:01:32.050Z


## Browser console

<!--
Open the developer tools in your browser, go to the Console tab and paste errors and other messages that might be relevant to this issue.
You may also paste a screenshot if you prefer.
-->

```txt

Browser network traffic

Additional information

@bkpsu bkpsu added bug Something isn't working main ui Main UI labels Jul 21, 2023
@lolodomo
Copy link
Contributor

lolodomo commented Jul 23, 2023

It works well for me but I am in French.
image

When I call the REST API with these parameters
imageI can find in the result:
image

This is one of the both properties containing more than one word (the other is "Color Temperature". I don't know if this is the source of the problem.

@florian-h05
Copy link
Contributor

Works for me both with de_DE and en_US locales.

Can you please "Reload application" from "Help & About"?

@florian-h05 florian-h05 self-assigned this Jul 24, 2023
@bkpsu
Copy link
Author

bkpsu commented Jul 24, 2023

image

This is how I have the item defined - is it possible that it's also a Point Control item that's causing the problem?

@bkpsu
Copy link
Author

bkpsu commented Jul 24, 2023

Or is it that the item is defined as a Dimmer (but I think that's still OK for the Property?)

Dimmer MonoPrice_Z12_Volume "Office Volume [%02d %%]" (FF_Office_Audio, gZoneVolume) ["Property", "SoundVolume"] {widgetOrder="2", ga="Speaker" , listWidget="oh-slider-item"[scale=true,visible="=items.MonoPrice_Z12_Power.state==='ON'"] , channel="monopriceaudio:amplifier:4b4c6b36:zone2#volume" }

@florian-h05
Copy link
Contributor

The issue you described above is unrelated to your exact Item configuration, that shouldn't matter.

The reason for the SoundVolume property card being shown as undefined to be a failure in loading the translations for the semantic tags.

I already found the root cause, I will try to reproduce your bug and check whether my fix works. Meanwhile, you cannot do much to fix that yourself, apart from checking whether a full reload and clean cache helps.

@ghys
Copy link
Member

ghys commented Jul 26, 2023

Not sure why this is happening, it seems okay on the demo server.
If all else fails you can edit the home page and choose a custom title (and subtitle) for any card as you like.

ghys pushed a commit that referenced this issue Jul 26, 2023
florian-h05 added a commit that referenced this issue Jul 26, 2023
Fixes #1976.
Follow-up for #1882.

Signed-off-by: Florian Hotze <[email protected]>
(cherry picked from commit 2230f52)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants