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

Issue with Hue things -- Missing name, showing Description instead #79

Closed
EdgarM73 opened this issue Jan 5, 2018 · 4 comments
Closed
Labels

Comments

@EdgarM73
Copy link

EdgarM73 commented Jan 5, 2018

Hue Things are not handled proper, item creation and thing usage is not possible.

I have several Hue items, and have tham named proper in my Hue.things file.

0220 BadFenster [ lightId = "4" ]
0220 BadMitte [ lightId = "5" ]
0220 BadTuer [ lightId = "16" ]

but in VS it is shown like
vs

and item creation is not really possible via automation:

Dimmer DimmbareLampeWei_Brightness "Helligkeit" {channel="hue:0100:0017882b8525:Schuhstrahler:brightness"}
String DimmbareLampeWei_Alert "Alarm" {channel="hue:0100:0017882b8525:Schuhstrahler:alert"}

Dimmer DimmbareLampeWei_Brightness "Helligkeit" {channel="hue:0100:0017882b8525:Schlafzimmer3:brightness"}
String DimmbareLampeWei_Alert "Alarm" {channel="hue:0100:0017882b8525:Schlafzimmer3:alert"}

any chance, this might be fixed?

regards

@kubawolanin
Copy link
Collaborator

Hi,

Could you post a formatted fragment of your http://openhab/rest/things JSON?
Don't forget to format your code with code fences (```)

@fab33
Copy link

fab33 commented Jan 5, 2018

@EdgarM73 : your thing file is not correct. In your things files BadFenster for exemple is the OpenHab ID you define for the thing (lightId is not an Id for openhab but a parameter for the binding). And items are created from the name and you don't define a name.
Correct syntax of you things file to create items :

0220 BadFenster "BadFenster" @ "Room1"	[ lightId = "4" ]
0220 BadMitte	"BadMitte" @ "Room2" [ lightId = "5" ]
0220 BadTuer	"BadTuer" @ "Room3" [ lightId = "16" ]

After when right click on "BadFenster", it should create

Dimmer BadFenster_Brightness "Helligkeit" {channel="hue:0100:0017882b8525:Schuhstrahler:brightness"}
String BadFenster_Alert "Alarm" {channel="hue:0100:0017882b8525:Schuhstrahler:alert"}

But take care about this issue (#78) if you want to create items directly from channels.

@EdgarM73
Copy link
Author

EdgarM73 commented Jan 6, 2018

Hi fab33,

thanks for your answer, you are totally right with your answer.

Only one thins, has nothing to do with my issue: The @ Room is not possible if i can believe VS Code here.

anyway, thanks for your help.

Issue can be closed

@EdgarM73 EdgarM73 closed this as completed Jan 6, 2018
@EdgarM73
Copy link
Author

EdgarM73 commented Jan 6, 2018

Issue was due to my wrong things file.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants