Something in this z wave does not make sense to me. So maybe someone can explain this to me
Raspberry pi 3
Z stick Gen 5
ZW120-C Door window sensors Gen5
Under THINGS, I have a window sensor registered:
ZW120 Door/Window sensor Gen5
Door/Window sensor Gen5
This Thing has 3 channels:
-Binary Sensor, Alarm (General), Battery Level
Binary Sensor is the one I will use to monitor if the window is open or closed.
Link Channel – creating a new Item
Type : Switch
So fare, all ‘Windows sensor’ configuration have been done inside Paper UI in OpenHab 2 – no use of configuration files.
In a x.sitemap I have this entry:
And nothing in x.items.
Result in browser is:
“Badeværelse “ but without a value.
I would say, that my sitemap entry is connecting to the definitions in PaperUI – since it displays ‘Badeværelse’ as defined in Item. But how come it does not pickup the value ?
Changing the Type to Contact or Number, does not make any changes.
The only way to get a value or reading is to make an entry in the x.items file:
Number Bathroom_BinarySensor “Badeværelse [%s]”
This now gives this in the sitemap:
In PaperUI under Items, I now have two entries for ‘Bathroom_BinarySensor’, the one that was created in paper UI – with a door icon and Switch type, one with a B icon and Number type.
If I change the items entry to Switch, it displays now two in paper UI of type of switch , with
different icons. But looks like it is the same item when going into edit on both.
So, why do I have to create an Item inside the items file, when the item is defined in Paper UI ?
And to the next, how do I get this 0/1 or on/off to show Open/closed instead ?
I have tried with a map – Number Bathroom_BinarySensor “Badeværelse [MAP(dk.map):%s]” But without success…