moravec
(Schindler)
June 7, 2024, 8:25am
1
Hello since upgrade to OH4 i can’t see values or states when hovering over in Visual Studio Code. AuthToken is set and it shows no error.
Can somebody give me a hint what to check or activate?
Tks
sihui
(SiHui)
June 7, 2024, 9:11am
3
Still works fine (openHAB 4.2.0.M3):
Make sure you have the openHAB Extension installed:
moravec
(Schindler)
June 7, 2024, 9:22am
4
Extension is installed. What port did you set in settings?
sihui
(SiHui)
June 7, 2024, 9:35am
5
moravec:
Extension is installed.
Double check the docs:
# openHAB VS Code Extension
[![Azure DevOps builds (branch)][ADOBuildBadgeImage]][ADOBuildBadgeImageLink]
[![Visual Studio Marketplace Downloads)][MarketplaceDownloadBadgeImage]][MarketplaceDownloadBadgeImageLink]
[![Open VSX Downloads][openVsxDownloadBadgeImage]][openVsxDownloadBadgeImageLink]
[openHAB](http://www.openhab.org) is a vendor and techology agnostic open source automation software for your home. This [Visual Studio Code](https://code.visualstudio.com) extension allows you to work with openHAB configuration files (like `*.items`, `*.rules`, `*.sitemap` and `*.script`) thanks to the syntax highlighting, code snippets and integrated search.
The extension is designed with openHAB 2.x in mind - most snippets and design patterns will work in openHAB 2.x
## Features
- Syntax highlighting for the [openHAB DSL](https://www.openhab.org/docs/configuration/) (rules, items, scripts and sitemaps).
- Code snippets for openHAB, including [Design Patterns](https://community.openhab.org/tags/designpattern) by Rich Koshak
- Integrated quick search of [openHAB Community](https://community.openhab.org)
- Integrated Basic UI browser window (`Ctrl + Alt + O` or editor title icon)
- Integrated Paper UI preview for the Items and Things
- Integration with openHAB REST API
- List of all Items accessible from the tree view
This file has been truncated. show original
{
"workbench.iconTheme": "openhab",
"openhab.connection.host": "192.168.2.212",
"openhab.connection.authToken": "oh.restapi.abcdefghi...",
"openhab.connection.port": 8080
}
There are several setup files (user and workspace ) which may be interacting, make sure you have the correct one.
moravec
(Schindler)
June 7, 2024, 10:56am
6
Found the problem… There was a folder (.vscode) with a config file in the folder I added, with setting ( “openhab.useRestApi”: false).