Closed AngelosF closed 5 years ago
Closing due to updates in README.md for the new version of the binding with $cid
NULL should be added to the map nevertheless :)
NULL should be added to the map nevertheless :)
Oops! I forgot this one!
Is it NULL=..
or -=..
? I remember seeing some maps that used -
as the catch all.
I am using the following at the end of all of my MAP files
-=OK
.=UNKNOWN
NULL=UNKNOWN
I am not sure how they work... I found them somewhere on the interweb and I copied them 💃
Looks like one of us needs to dig through the code and and figure out which one it is!
I nominate you! 🙊
There is no catch-all. You just need to define the source to be converted to the target
If the result of the target is null
, then it throws a TransformationException
, complaining that there is no source found.
So: If you want (optional) you can add:
UNDEF=Undefined
NULL=Unknown
Just in case the Item is updated to these 2 states due to an error.
Ref: https://community.openhab.org/t/lifecycle-of-an-item/17473/8
2 super minor updates: add in the "Full Example" the
site="default"
conf option add in thetransform/unifi.map
the NULL mapping also