adm105
(hjs)
March 6, 2023, 4:09am
1
Hello,
due to a crash during a data backup (power failure) I have the problem of having to rebuild my entire NAS. Openhab 3.4.2 must also be completely reinstalled. It is very difficult because the previous fuse was also destroyed. I’m currently trying to fix a bug that I need help with. If the Expert Mode should be opened when creating items from Things, this error message appears:
openHAB
There was an error generating the items definition: TypeError: u is undefined
Can someone help me to eliminate this error?
rlkoshak
(Rich Koshak)
March 6, 2023, 4:08pm
2
I’ve never seen that “expert mode” option before. Is this something you’ve used before and it works? What’s it do?
I’m on the OH 4 snapshots and it doesn’t work for me. I get only a slightly different error.
There was an error generating the items definition: TypeError: Cannot read properties of of undefined (reading $oh)
Nothing appears in my openhab.log.
I can’t say if it’s a regression or if it’s an incomplete feature. But I recommend following How to file an Issue on the openhab-webui repo.
JustinG
(JustinG)
March 6, 2023, 4:50pm
3
Looks like it’s a regression from this PR .
rlkoshak
(Rich Koshak)
March 6, 2023, 5:14pm
4
Cool, I’ll go ahead and file an issue for this one since I’m on the latest and can reproduce the error.
opened 05:14PM - 06 Mar 23 UTC
bug
main ui
## The problem
<!--
Describe the issue you're having. In most cases it is ap… preciated to share screenshots or
even animated GIFs of your issue.
To make screenshots:
* On Windows: use Win+Shift+S
* On macOS: use Cmd+Shift+4
To make animated GIFs we recommend:
* On Windows: ShareX - https://getsharex.com/
* On macOS: Giphy Capture - https://giphy.com/apps/giphycapture
* On GNU/Linux: Peek - https://github.com/phw/peek
-->
When creating Items from a Thing, clicking on "Expert Mode" causes an error.
<img width="737" alt="image" src="https://user-images.githubusercontent.com/6385096/223180864-27f6488f-3f81-493a-8bea-affaf93eb16e.png">
It looks like it might be a regression from PR #1578 according to JustinG (see https://community.openhab.org/t/oh3-expert-mode-cannot-be-accessed/144988)
## Expected behavior
<!--
Describe what you expected to happen or how it should look/behave.
-->
Clicking on "Expert Mode" enters expert mode
## Steps to reproduce
<!--
Provide accurate steps to reproduce the issue, including pastes of widget/page code if necessary.
-->
1. Navigate to Settings -> Things -> pick any Thing.
2. Click the Channels Tab
3. Choose "Add Equipment to Model" or "Add Points to Model"
4. Click "Expert Mode"
## Your environment
<!--
As an admin, in the main UI, choose *Help & About* on the left sidebar, expand *Technical information* and click on *View details*, then click *Copy* and paste the results here. You may omit information that is not pertinent to this issue if you feel it's divulging information you'd like not to share.
-->
```yaml
runtimeInfo:
version: 4.0.0
buildString: "Build #3352"
locale: en-US
systemInfo:
configFolder: /openhab/conf
userdataFolder: /openhab/userdata
logFolder: /openhab/userdata/logs
javaVersion: 17.0.6
javaVendor: Eclipse Adoptium
javaVendorVersion: Temurin-17.0.6+10
osName: Linux
osVersion: 5.15.0-60-generic
osArchitecture: amd64
availableProcessors: 4
freeMemory: 126140320
totalMemory: 713031680
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: true
windows: false
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: macos
pixelRatio: 2
prefersColorScheme: light
isSecureContext: false
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: N/A
hardwareConcurrency: 12
language: en-US
languages:
- en-US
- en
onLine: true
platform: MacIntel
screen:
width: 1920
height: 1080
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: light
filled: true
pageTransitionAnimation: default
bars: filled
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
timestamp: 2023-03-06T17:11:31.137Z
```
## 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
SSE connection closed: http://10.10.1.112:8080/rest/events?topics=openhab/things/*/added,openhab/things/*/removed,openhab/things/*/updated,openhab/things/*/status,openhab/inbox/*, 0 open
app.501606344f29b6d1136a.js:69 []
app.501606344f29b6d1136a.js:7 Start tracking states
app.501606344f29b6d1136a.js:69 new SSE connection: http://10.10.1.112:8080/rest/events/states, 1 open
app.501606344f29b6d1136a.js:69 [EventSource]
app.501606344f29b6d1136a.js:7 Setting initial tracking list: []
app.501606344f29b6d1136a.js:69 sseConnected true
app.501606344f29b6d1136a.js:69 new SSE connection: http://10.10.1.112:8080/rest/events?topics=openhab/things/*/*,openhab/links/*/*, 2 open
app.501606344f29b6d1136a.js:69 (2) [EventSource, EventSource]
2app.501606344f29b6d1136a.js:69 Setting keepalive interval seconds 10
app.501606344f29b6d1136a.js:7 Stop tracking states
app.501606344f29b6d1136a.js:69 SSE connection closed: http://10.10.1.112:8080/rest/events/states, 1 open
app.501606344f29b6d1136a.js:69 [EventSource]
app.501606344f29b6d1136a.js:69 SSE connection closed: http://10.10.1.112:8080/rest/events?topics=openhab/things/*/*,openhab/links/*/*, 0 open
app.501606344f29b6d1136a.js:69 []
16.app.501606344f29b6d1136a.js:1 TypeError: Cannot read properties of undefined (reading '$oh')
at f (16.app.501606344f29b6d1136a.js:1:4912)
at f (16.app.501606344f29b6d1136a.js:1:5589)
at i.switchToExpertMode (16.app.501606344f29b6d1136a.js:1:7288)
at qe (app.501606344f29b6d1136a.js:7:11319)
at i.n (app.501606344f29b6d1136a.js:7:13064)
at qe (app.501606344f29b6d1136a.js:7:11319)
at e.$emit (app.501606344f29b6d1136a.js:7:34215)
at app.501606344f29b6d1136a.js:7:94108
at Array.forEach (<anonymous>)
```
## Browser network traffic
<!--
Open the developer tools in your browser, go to the Network tab and paste
screenshots of the network traffic and the details of individual requests that failed.
-->
## Additional information
<!--
Provide any information not pertinent to the above sections that you'd still like to share.
-->