Giter VIP home page Giter VIP logo

Comments (3)

kubawolanin avatar kubawolanin commented on August 15, 2024

Hi @fab33,

I'm not sure I understand. Do you think it's related to #79 ?

from openhab-vscode.

fab33 avatar fab33 commented on August 15, 2024

No it's not related to #79.
if you have this :
sans titre
When you right-click to creat items on "Endstop Bureau" you have items :

Switch     EndstopBureau_Status       "Status"          {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:status"}
Number     EndstopBureau_Var1         "Variable 1"      {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var1"}
Number     EndstopBureau_Var2         "Variable 2"      {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var2"}
Number     EndstopBureau_Var3         "Variable 3"      {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var3"}
Number     EndstopBureau_Var4         "Variable 4"      {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var4"}
Number     EndstopBureau_Var5         "Variable 5"      {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var5"}
Number     EndstopBureau_Battery      "Battery Level"   {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:battery"}
DateTime   EndstopBureau_Lastupdate   "Last Update"     {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:lastupdate"}

but for example if you right-click on Var1 to create item you have :

Number Var1 "Variable 1" {channel="mysensors:light:ESPgw:Bureau_Volet_EndStop:var1"}

one time it's EndstopBureau_Var1 (right name for me) and one time it's only Var1

from openhab-vscode.

Confectrician avatar Confectrician commented on August 15, 2024

Hey @kubawolanin i find the suggested change useful and ahd a look into this.
The magic happens in https://github.com/openhab/openhab-vscode/blob/master/src/ThingsExplorer/ItemsProvider.ts
but it seems that we have no information about the thing in the channel model.

Are we able to get the "Parent" from somewhere, when we know the channel?

Otherwise we could improve the channel model and add a parent property.
We could addd these info while building the tree view from rest api then.

from openhab-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.