ady624 / CoRE

CoRE - Community's own Rule Engine
GNU General Public License v3.0
222 stars 663 forks source link

Attributes are incorrectly populated if their name matches "standard" attributes #58

Open jacauc opened 7 years ago

jacauc commented 7 years ago

I am using the J64Alarm github code for integration with my alarm system. The partition of this alarm is defined with

        attribute "alarm", "string"
        attribute "mode", "string"

These attributes can have any value such as:

"Exit Delay"
"Entry Delay"     
"Ready To Arm"    
"Zone Not Ready"  
"Stay Mode" 
"Away Mode" 
"Tamper"    
"Fault"     

however, when selecting this Sensor device Capability in CoRE, I can only choose from 3 predefined capabilities for the mode attribute namely "home", "away" or "night". I need to be able to Either type the text such as "Ready To Arm" in the CoRE piston, or it needs to accurately populate the actual possibilities of attribute values.

When I changed the definition of the attribute in the J64Alarm source code to "modeTest" it worked correctly in CoRE, but I think this is a workaround.

jacauc commented 7 years ago

When I changed the definition of the attribute in the J64Alarm source code to "modeTest" it worked correctly in CoRE, but I think this is a workaround

Not quite actually... I'm allowed to enter a string, but the Condition overview always shows:

Alarm System modeTest is null
current evaluation: false