-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature Request] Automation - Add simple maths operators to numeric condition fields #3777
Comments
this would mean too complicated UI on phone |
Possibly, yes. I'll have another think about how this might work and let you know if I come up with anything that isn't too complicated. |
Hey @MilosKozak
It would look roughly like this. |
Side Note:
Like I said. This one is I think too complicated. |
The more I think about it, the other options that I was going to suggest are probably not worthwhile, UNLESS I or someone else thinks of any other practical usage situation where they would want to do arithmetic on fields. So I'll mention them only briefly. In fact, it may be better if we close this issue and I just create a new one with a different title for that specific usage? Option 2: Create an option on the bottom of the trigger conditions list called "Expression Builder" or something similar. Option 3: instead of adding another condition for the trigger list, create an options button to bring in another field value within the trigger condition dialogue for numeric conditions. But I think that has too much potential to create confusion, with users thinking "why would I want to do that?". I'm not going to bother doing a mock-up for that one. |
I'd like to suggest the benefit of adding simple maths operators to numeric condition fields in the automation rules, where two different conditions could be combined to give a numeric result.
One usage example would be to add Glucose and BG Difference.
So, Glucose + BG Difference < 5.0 (delta in this situation would usually be negative, hence why I've used the + operator)
This could allow customised notifications alerts, not based solely on blood glucose value OR rate of change, (which is already possible, both in BYODA and AAPS automation), but by considering both and pre-warning of the likelihood of approaching a particular value in the next 5-15 minutes.
I realise, of course, that the rate of change is not necessarily going to be the same, but I'd still like to be given this warning.
The text was updated successfully, but these errors were encountered: