kinu-garage / hut_10sqft

Computer setup tools for my own environment, and public discussion place holder.
Apache License 2.0
2 stars 1 forks source link

[openHAB] How to set groups is unlear #146

Closed 130s closed 7 years ago

130s commented 7 years ago

Driven from https://github.com/corb555/iot_bridge/issues/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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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.