2016-04-13 13:53:25.771 [ERROR] [i.internal.GenericItemProvider] - Binding configuration of type 'satel' of item ‘Satel_Inputs‘ could not be parsed correctly.
A Switch can only have two states, ON or OFF(three if you count Undefined). You need to use a Number or a String Item to represent more than two states. You can still use your sitemap approach on a Number Item.
Hi,
sorry for late answer, I am rarely on this forum last time…
First of all your item configuration is wrong and that’s why you’re getting errors in the log (however the one presented is for different item). The second thing is you cannot map a switch to number like you did. I assume you arm your partitions exclusively, so either part. #1 or part. #2.
You need to define an item for each partition you would like to assing a number:
(you could consider also “really_armed” instead of “armed”)
additionally you need an item for arm status (without any binding), it can be string or number:
String Satel_Arm "Armed [%s]"
and then a rule to compute current arm status:
rule "Satel_Arm computation"
when
Item Satel_Arm1 changed or
Item Satel_Arm2 changed or
System started
then
if (Satel_Arm1.state == ON)
Satel_Arm.postUpdate("Partition1")
else if (Satel_Arm2.state == ON)
Satel_Arm.postUpdate("Partition2")
else
Satel_Arm.postUpdate("None")
end