Here are a few thoughts and things I would love to have known when I started with Z-Wave back in 2016.
Forget those id
s
First of all, don’t focus on the node ids. Sure it is nice to have nice numbers but those will end up changing, just accept it and don’t get used to the id
If you reset a device, the id will change.
If you exclude/include, the id will change.
If you replace a damaged device, unless you go thru the “replace failed” procedure, the id will change.
Keep “inventory”
I would strongly suggest naming/marking your devices without any meaning of room, location, prupose. Something neutral that will never change.
I personally now mark each z-wave device with ZWXXX
where XXX is a unique number. I also mark ZBYYY
for ZigBee. I do that instead of marking then with something like “Window Bathroom” because you will end up recylcing devices and sensors. Not to mention that some devices will die and will replaced and if you move out, your will rework it all.
In my .items files, I add a comment with the UID (ie ZW001), and the brand / model number, it helps finding items again.
The rest is not required since the item itself describes: the purpose and the node id.
So you may start with ZW001 being the main door sensor … until a new cool sensor comes up, so you will then use your new ZW047 as main door sensor and recycle your ZW001 as a mailbox sensor… You get the idea.
Item names
What about Item names ?
I found a few posts related to naming and I think, as a beginner, it is worth your time thinking about it and not jumping heads down…
- Naming convention - #3 by HomeAutomation
- Naming convention question - #2 by hmerk
- Naming convention for items and labels
While the OH VScode extension provides useful unique item names, I think you should NOT be using those and edit them rigth away, before your save the file and persistence kicks in…
The names look like BoschDishwasherXXXXXXXXXXXXXXXXXXPowerState
or ZWaveNode040FGMS001MotionSensorFibEyeOfficeAlarmMotion
for a z-wave sensor for instance.
Not only those names are very long but also rather unreadable and not very useful for your “next steps”.
You may think that naming does not matter and OH makes it easy to rename items. A little search/replace to make sure your rename is done eveywhere, including the rules and everything is fine right ? Well no…
If you use persistence, if you want to use charts, etc… having better names and most importantly a convention, will help you a lot.
I went thru the pain of renaming and you probably want to avoid that.
I would argue that no convention is ideal and it is a matter of choice. So you don’t need to follow “mine” and I would love to hear how YOU do but the most important is that you have a “standard” and follow it.
Here is how my items are named:
- Office_Window_Right__SensorDoor
- Bathroom_Door_Blue__SensorDoor
More important than to see what this name is made of, I would recommend seeing what it is NOT made of:
- no node id
- no brand / model name (most of the time)
You may notice that there is no node id in there, there are some reasons for that. Mainly because ids will change and you do not want to have to rename all the time.
I also do not include the brand, model name since those may also change over time.
My “rule”:
<room>_<what>_<where>__<type>
I find this kind of naming also very useful when it comes to writing rules and using intellisense.
You can then think down:
- room
- what
- where
- type
The item name is really something to try to get right the first time.
The rest of an item can always be rather easily changed.
I hope that helps and I would love to hear alternative solutions.