- Platform information:
- Hardware: Odroid C1
- OS: Ubuntu 14
- Java Runtime Environment: Zulu
- openHAB version: 2
- Issue of the topic: Confused about new syntax and documentation not working
Hello everyone.
I was an user of openhab2 a year ago or so. I don’t remember which version, but it worked very well until my SD-card got corrupted (about 4 months ago).
Now I just re-installed my system and Openhab2 with the latest version on the package repositories, and I’m very confused about many things.
Let me make some sections about it:
Z-Wave and items:
I was surprised how fast Z-Wave devices were detected. For my surprise, I was able to open a Thing and see all the available channels, that should be new! If I click on any channel it gets linked. I think this means that a new item is created automatically. I was used to create the items manually, and this new feature raises questions on my head:
- Can I use those items directly ?
- Should I create my own items ?
- Can I backup the automatically created items ?
- Does this apply for all the item types (mqtt, network, etc) or just for those linked to physical things (switches, light bulbs)
To be honest, I think I prefer to create my own items to give them better names, is it a good practice ?
Items syntax:
Seems that items syntax has changed. I had my items created like this:
Number Smart6_Volts "Smart6 voltage [%.2f V]" (ALL,power) { zwave="2:command=METER,meter_scale=E_V" }
But this does not work anymore. Looks like I have to use the channel keyword and assign an UUID channel name to it:
Number Smart6_Amps "Consumo Corriente [%.2f A]" (ALL,power) { channel="zwave:device:15f8bb842d1:node2:meter_current" }
Is this official new way? I see lots of references with my old way.
Persistence:
I’m using the rr4j persistence. According to the documentation I can persist an entire group. However, in practice this is not working and on the console I’m getting a weird syntax error.
This is what I try:
Items {
power* :strategy = everyChange, everyMinute, restoreOnStartup
}
Where power is a group. As I said, this does not work and I have to use a comma separated list of items. However the group syntax seems to work for Charts. There is maybe a bug on the documentation ?
Groups:
According to documentation I can define an icon for a group. In practice, this does not work at all:
Group power <energy>
Using the same icon for an item does work. Is this supposed to work ? What are the restrictions ? What if I define an icon both on a thing and a group ?
Sorry for asking so many questions on a single post, but It feel that opening one topic for each problem may be too much and it may lack the required context.