I got some Vision Security ZD2102 door/window sensors and added them to openHAB.
After I start openHAB the current status of the contact (open or closed) is unknown. I have to trigger it manually in order to update it’s status in openHAB.
I’m not quite sure if there is a solution to this, but is it possible to get the current status without triggering the contact? I.e. send some kind of update command? Or does the sensor just don’t know its current status because the electric magnet has to generate a signal first?
Just be aware that it will be initializing the contacts to a random state.
To me it seems far more meaningful to either initialize them to their last known state (i.e. use persistence) or to leave them uninitialized so I know not to trust the data in my rules that care about their state. Having random values means I can never trust what state the contacts are in.
Ah, good to know, I thought it’s the actual value!
Thanks
VON: Rich Koshak forum@community.openhab.org
GESENDET: 07.12.2015 17:53
AN: christian@hailer.eu
BETREFF: [openHAB] [Setup, Configuration and Use/Items & Sitemaps] Z-Wave
door/window sensor status after starting openHAB1/2
rlkoshak[1] Rich Koshak[1] Regular
December 7
DocFraggle:
thanks a lot, initializing the contacts is the perfect solution, it
works like a charm Thanks a lot!!
Just be aware that it will be initializing the contacts to a random
state.
To me it seems far more meaningful to either initialize them to their
last known state (i.e. use persistence) or to leave them uninitialized
so I know not to trust the data in my rules that care about their state.
Having random values means I can never trust what state the contacts are
in.
To respond, reply to this email or visit
in your
browser.
Previous Replies
DocFraggle[2] Christian Hailer[2]
December 7
Hi Sihui,
thanks a lot, initializing the contacts is the perfect solution, it
works like a charm Thanks a lot!!
Christian
To respond, reply to this email or visit
in your
browser.
To unsubscribe from these emails, visit your user preferences[3].
To stop receiving notifications about this particular topic, click
here[4].
[quote=“DocFraggle, post:5, topic:4848, full:true”]
Ah, good to know, I thought it’s the actual value![/quote]
Sorry, forgot to mention that. But if you take a look into the code you see Math::random > 0.5 and that should have given the right hint