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

[openHAB] How to set groups is unlear #146

Closed
130s opened this issue Jul 1, 2017 · 3 comments
Closed

[openHAB] How to set groups is unlear #146

130s opened this issue Jul 1, 2017 · 3 comments
Assignees
Labels

Comments

@130s
Copy link
Collaborator

130s commented Jul 1, 2017

Driven from corb555/iot_bridge#5, I like to test setting a group.

Someone recommended to take a look at OpenHAB demo installation, so found the instruction to install demo where the zip file location is not valid.
Downloaded from openhab/target/.

The demo package consists of example configuration files and samples of add-ons and UIs. In order to install the demo, you must edit the file ‘conf/services/addons.cfg’. Uncomment the line package= and set it to demo as shown below

$ locate addons.cfg
/etc/openhab2/services/addons.cfg
/home/pi/Downloads/conf/services/addons.cfg
/var/lib/openhab2/etc/org.openhab.addons.cfg

So instead of launching a new instance of OpenHAB on my tiny RPI, I just modify /etc/openhab2/services/addons.cfg after making a backup. Then,

pi@pi-desktop:/etc/openhab2/services$ sudo /etc/init.d/openhab2 restart

This seems to mix up my setting AND the demos. Right now I don't care but maybe in the near future I'll have to clean up.

I now see in the result of http://130s-rpi2:8080/rest/items/ members: and type: Group as following:

36	
  members	
  link	"http://130s-rpi2:8080/rest/items/Weather"
  state	"UNDEF"
  type	"Group"
  name	"Weather"
  label	"Weather"
  category	"sun"

But then I don't find my own setting in the same output, nor in the same /etc dir.
Instead found here /var/lib/openhab2/jsondb/org.eclipse.smarthome.core.thing.Thing.json.

Anyways, what I'm curious is how to include my own setting in the rest output.

Ooh, beginner.tutorials says the following. Ok, need to write a file for defining items.:

Note that you still need to define your items, sitemaps, persistence configurations and rules in the according configuration files (as done in openHAB 1). Such functionality will be added bit by bit to the Paper UI only.

After some point some Things started being "Uninitialized" incl. those with Chromecast and Network bindings. Maybe after having installed demo? For now I'll ignore them.

@130s 130s self-assigned this Jul 1, 2017
@130s
Copy link
Collaborator Author

130s commented Jul 1, 2017

People are talking that groups can be set from PaperUI (e.g. this, this) but I don't see that Parent Group option at all on my PaperUI.

@130s
Copy link
Collaborator Author

130s commented Jul 1, 2017

Figured out how items can be configured on PaperUI.

I'll keep this open until I find a documentation in the upstream to improve for this.

@130s 130s changed the title [openHAB] How to sett groups is unlear [openHAB] How to set groups is unlear Jul 5, 2017
@130s
Copy link
Collaborator Author

130s commented Jul 5, 2017

I'll keep this open until I find a documentation in the upstream to improve for this.

Well this can be known by Googling, and I'm not sure where is the right place to add this info.

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

1 participant