-
Notifications
You must be signed in to change notification settings - Fork 970
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
Attribute button only displays gets
as a trigger
#100
Comments
+1 to this issue. I have to modify each button DH I want to use with webcore to get all the functions I need |
I don't have any devices to test this out but if you want to modify the code at account.smartthings.com and test locally I'll gladly review a pull request. The code that controls the trigger is in webcore.groovy. The conditions and triggers in the selected code specify applicable attribute groups in this format Once changes have been made to the code in the SmartThings IDE it can be saved and published. You may see the change in the webCoRE dashboard or it may require refreshing its local database. To trigger a refresh just go to webCoRE in the ST mobile app and tap through Settings > Available devices > Available devices then press Back. The dashboard will reload its database on the next refresh. |
@idpaterson thanks. I tried that and must be missing something. I've added
Refreshed webcore on the ST app, logged out the dashboard and logged in again but I'm still not seeing anything expect I see the capabilities in webcore defines |
Sorry I guess this is one that would only be updated in the local db when the webCoRE version number changes. You can log out and back in to the dashboard to refresh that data and see your changes. |
I was able to change the conditions unfortunately it doesn't seem to work as expected. I think it's because it's treating a button device and its attribute differently from other attributes. Here's the piston being used and the issues are:
Here are the logs
|
BTW, it works correctly with "Gets" but not with "Is" so I'm guessing that Webcore handles buttons differently that other devices. |
Yes, unfortunately the data model based on single letters makes it nearly impossible to grep around and follow the logic. I haven't done any work with device features in the webCoRE codebase and don't know where to point you for this one. You may consider posting this problem and code tweak to community.webcore.co to see if anyone else wants to chip in on getting the conditions to work. |
Possibly a bug, for the
button
attribute it only showsgets
as a trigger. For other attributes it shows a whole host of triggers.This limits the way the button devices can be used since buttons are often
held
which means they will continue to showheld
as the status until they are released and the piston should be able to use the current status of a button in a if condition when triggered by another device.e.g. keep holding the button which triggers a volume increase which triggers the piston which checks if the button is still held and then increases the volume and this continues in a loop into until the button is released.
Ideally it should show the same triggers as any other attribute (e.g. switch or alarm).
The text was updated successfully, but these errors were encountered: