Rule Builder iOS app

Yes, time delay is also on the list.

Great start on this app @obycode!! Iā€™m so glad someone picked up this project.

1 Like

Would be nice to also have an offset after/before sunrise/sunset.

1 Like

@rsoares28 and anyone else that was experiencing a crash when logging in, please give it a try now. Thanks to some awesome sleuthing by @hscox030, I was able to fix his bug. Luckily, it was on the SmartApp side, so no need to wait for Apple, the fix is live now. Thanks again Sean, I owe you!

This bug would cause a crash if you selected any door controllers. In this case, it was a MyQ.

Iā€™m not sure about that one. Iā€™ll have to look into how that could work.

Bought the full version and quickly built a simple rule. It was easy and worked instantly.
Now to get creative.
Nice work!

1 Like

Here are my logs

4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:31 PM EDT: error java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date @ line 569
4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:30 PM EDT: info Trigger: physicalgraph.app.EventWrapper@9a05eb7
4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:30 PM EDT: error java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date @ line 569
4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:30 PM EDT: info Trigger: physicalgraph.app.EventWrapper@6775d825
4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:29 PM EDT: error java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date @ line 569
4a3d8643-0a26-4979-a365-7c43fe036e45 11:34:29 PM EDT: info Trigger: physicalgraph.app.EventWrapper@297f02f8

I am using SmartRules Lite with a simple rule: IF MOTION IS OPENED SEND PUSH. While SmartThing is detecting motion, I donā€™t get a notification from this rule.

Thoughts?

And here is a screen shot of how the rule is setup in SmartRules.

as a feature request can you add the ability to group and organize rules? Not sure if that was mentioned or is on the road map

Thanks Huy. Looks like something strange with retrieving the sunset time. Can you try again with logging enabled? I added a debug statement that prints out what it gets for sunset at your location.

Hi Paul. Can you send me anything that shows in your logs ( https://graph.api.smartthings.com/ide/logs ). Thanks.

Hi all. Iā€™m glad the app is helping out so many of you. Weā€™ll be working hard to implement all of these new requests and resolve any remaining issues that a few are seeing. In the meantime, if you are enjoying the app, I would really appreciate your reviews on the App Store. Thanks!

SmartRules - https://itunes.apple.com/us/app/smartrules/id957383131?mt=8
SmartRules Lite - https://itunes.apple.com/us/app/smartrules-lite/id965760672?mt=8

Wouldnā€™t it be easier for everyone to just have one app with an inapp purchase to upgrade the number of rules?

Yes, I guess it probably would. Iā€™ll work on that after these vital new features are completed. Thanks.

If I add a new smart device, like a new lightbulb, I have to go into the smartings app and let smart rules have access to control it. If there was anyway for smart rules to notice the new smart device and say" hey we noticed this, would you like smart rules to controll it" that would be great. Obviously not top as important as other features. Thought it was worth a mention.

I look forward to replacing my smart things app with smart rules. Really great job!

@obycode now i get the following logs:

4a3d8643-0a26-4979-a365-7c43fe036e45 7:21:01 PM EDT: error java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date @ line 569
4a3d8643-0a26-4979-a365-7c43fe036e45 7:21:01 PM EDT: info Trigger: physicalgraph.app.EventWrapper@21f8cc22

Looks the same as before I donā€™t see much more. When you say:

Asides from looking at the live logs when the event triggers, what do you mean?

Hey Blake. Thatā€™s a great idea, but Iā€™m not sure if its possible with the interface that SmartThings provides. Iā€™ll look into it though. You can add new devices from SmartRules itself, by logging out, then logging back in. When you log in, you will have the option to select more devices. And donā€™t worry, logging out will look like your rules are deleted, but theyā€™ll come back when you log back in.

I know this process is not obvious and plan on adding a better method soon.

1 Like

Ooops, my change didnā€™t go live before, but it should be now. Yes, thatā€™s all I need is the live logs when the event triggers. You should see a line starting with ā€œtrigger time isā€. Thanks for your help figuring this out.

@obycode

4a3d8643-0a26-4979-a365-7c43fe036e45 10:23:31 PM EDT: debug trigger time is Mon Mar 16 23:10:00 UTC 2015 for location Home
4a3d8643-0a26-4979-a365-7c43fe036e45 10:23:31 PM EDT: info Trigger: physicalgraph.app.EventWrapper@55bfdd31

@huydnguyen - I believe the sunrise/sunset issue should be fixed now. Please let me know if you still have any issues. Thanks for your help identifying this issue.