Giter VIP home page Giter VIP logo

Comments (6)

lolodomo avatar lolodomo commented on September 25, 2024

What is your version of OH?
When you say "not loading", do you mean there is no message "Loading xxx.tags" in your logs?
Please check the REST API returning all tags to confirm they are not loaded. You can use Main UI for that.

from openhab-core.

proggprod avatar proggprod commented on September 25, 2024

I’m using OH 4.2.0M2

there is no log message, the tags are not loaded. In the main UI, lots of items are out of their groups because the equipment tags are missing, and when I inspect individual items, they do not show the tags.

Thanks

from openhab-core.

rkoshak avatar rkoshak commented on September 25, 2024

I may have seen this too. I was doing something else and noticed one of my locations didn't show up in the Model view. I edited the yaml file and it immediately loaded but never managed to circle back.

I've rebooted since then and can confirm that there is no log message during startup showing the file is being loaded.

I can confirm that my custom tags are not shown in the response from /rest/tags and Items using custom tags do not appear to be in the model in neither the Model page nor in the Overview page tabs. The tags are on the Items but not shown as semantic tags.

"Den" is one of my custom tags defined in "myTaghs.yaml".

tags:
  - uid: Location_Indoor_Room_LivingRoom_Den
    label: Den
    description: A living room with a TV.
    synonyms:
      - Game room
      - TV room

But the Item tagged appears as follows:

image

When I add a whitespace to the file and save it:

  • I see it loaded in the logs

    2024-04-24 08:01:21.024 [INFO ] [aml.internal.YamlModelRepositoryImpl] - Updating YAML model tags/myTags

  • It's now included in the REST API results:

  {
    "uid": "Location_Indoor_Room_LivingRoom_Den",
    "name": "Den",
    "label": "Den",
    "description": "A living room with a TV.",
    "synonyms": [
      "Game room",
      "TV room"
    ],
    "editable": false
  },

And the Item appears as expected in the model.

image

I'm also on 4.2 M2

from openhab-core.

lolodomo avatar lolodomo commented on September 25, 2024

There was PR #4024 that changed things in 4.2 after my initial contribution in 4.1. Maybe this PR broke something?

from openhab-core.

lolodomo avatar lolodomo commented on September 25, 2024

@J-N-K : did you change something related to file loading in #4024 ?

from openhab-core.

J-N-K avatar J-N-K commented on September 25, 2024

I can't remember. But I think I found a bug during initail loading

from openhab-core.

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.