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

rules based on address not working #15

Open
sebastienvg opened this Issue Mar 2, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@sebastienvg
Contributor

sebastienvg commented Mar 2, 2015

I am trying to get rules such as

IF $nexus5.address is "XXXX Seb Street, Oakville, ON L6M, Canada"

THEN blablabla

knowing that "XXXX Seb Street, Oakville, ON L6M, Canada" is what pimatic reports on the UI.

Is this supposed to work? am I doing this wrong?

@Oitzu

This comment has been minimized.

Show comment
Hide comment
@Oitzu

Oitzu Mar 6, 2015

Owner

I really don't know if string matching should work.
Never seen matching strings in rules in pimatic.
I will try it and search for similar pimatic issues at the weekend.

Owner

Oitzu commented Mar 6, 2015

I really don't know if string matching should work.
Never seen matching strings in rules in pimatic.
I will try it and search for similar pimatic issues at the weekend.

@sweetpi

This comment has been minimized.

Show comment
Hide comment
@sweetpi

sweetpi Mar 6, 2015

Contributor

I think it should work (its implemented), but the stings must be exactly the same. Maybe these's some additional space in one of them or similar. I think the Best would be to have a predicate handler for that, that handles it in a more clever way.

Contributor

sweetpi commented Mar 6, 2015

I think it should work (its implemented), but the stings must be exactly the same. Maybe these's some additional space in one of them or similar. I think the Best would be to have a predicate handler for that, that handles it in a more clever way.

@Oitzu

This comment has been minimized.

Show comment
Hide comment
@Oitzu

Oitzu Mar 6, 2015

Owner

Hm... something like

If nexus5 is within 10 meter(s) of "<address or coords. here>"

would be nice. Need to look into this.

Owner

Oitzu commented Mar 6, 2015

Hm... something like

If nexus5 is within 10 meter(s) of "<address or coords. here>"

would be nice. Need to look into this.

@Oitzu Oitzu added the enhancement label Mar 6, 2015

@Oitzu Oitzu added this to the Version 1.2.0 milestone Mar 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment