cdjackson / HABmin

A web admin console for openHAB home automation
http://www.cd-jackson.com/index.php/openhab/habmin
217 stars 51 forks source link

item mappings containing numbers only #177

Open tktreload opened 9 years ago

tktreload commented 9 years ago

i think there may be an issue with writing of mappings to the items file when both the label of the mapping and the mapping value are numbers.

data entered in habmin mapping text box: 0=off, 1=1

data written to the .items file: mappings=[0="off", 1=1] I get a button with the label "off" and one with "%label%"

if however the text in the .items file is changed to: mappings=[0="off", 1="1"] I now get a button with "off" and a button with "1"