Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jacauc opened this issue Nov 13, 2016 · 1 comment

Comments

@jacauc
Copy link

jacauc commented Nov 13, 2016

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
Copy link
Author

jacauc commented Nov 13, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant