Shubhamjain007 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Rest-api: more widget info #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Feature Description
Rest-api should provide more info about the widgets. In particular:
-Mappings should be provided
-Library type info should be provided (for example, it it's a Rollershutter).
2. Example Use Case
Rest-api based interfaces could render buttons, selections, rollershutters with 
these.
If you check the first two widget in the frame in 
http://localhost:8080/rest/sitemaps/demo/0301 you'll see they provide same 
information (but the label) while one should be toogle switch and other a 
button. It can also be checked that the following selection item does not 
provide info about the mapping.

Original issue reported on code.google.com by *ghernan...@gpm.es on 14 Sep 2011 at 10:39

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 14 Sep 2011 at 10:51

GoogleCodeExporter commented 8 years ago
I will add the missing additional (widget specific) attributes, like mappings, 
url, etc.

Not sure if I understand your point about "Library type". The REST API already 
provides the widget type (e.g. Slider) as well as the item type (e.g. 
DimmerItem) What information is missing for you?

Original comment by kai.openhab on 17 Sep 2011 at 11:45

GoogleCodeExporter commented 8 years ago
Additional widget info like mappings etc. is now added.
Please let me know in case you are missing anything else.

Original comment by kai.openhab on 18 Sep 2011 at 11:57

GoogleCodeExporter commented 8 years ago
You are right about the item type, it seems I somehow missed it, my apologies.
Thanks for your fast work.

Original comment by *ghernan...@gpm.es on 19 Sep 2011 at 7:18