Hi Teams
Something in this z wave does not make sense to me. So maybe someone can explain this to me
Using:
Raspberry pi 3
Openhab 2
Z stick Gen 5
ZW120-C Door window sensors Gen5
Under THINGS, I have a window sensor registered:
Bathroom
ZW120 Door/Window sensor Gen5
Door/Window sensor Gen5
zwave:device:c90b4ea8:node4
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.
Binary Sensor
Link Channel â creating a new Item
Bathroom_BinarySensor
zwave:device:c90b4ea8:node4:sensor_binary
Linked items:
Bathroom_BinarySensor
Label: BadevĂŠrelse
Category: Door
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:
Text item=Bathroom_BinarySensor
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:
âBadevĂŠrelse 1â
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âŠ
Thanks.