WebThingsIO / gateway

WebThings Gateway
http://webthings.io/gateway
Mozilla Public License 2.0
2.61k stars 333 forks source link

Logical operators in rules are not user friendly #1418

Open flatsiedatsie opened 5 years ago

flatsiedatsie commented 5 years ago

While things like <= and > make sense to us geeks, my mom doesn't know what they mean.

As the user-friendliness is one of this projects strong points, perhaps this can also be remade into a 'normal people' version. Maybe a "bigger than", "smaller than", "equal to" and "not equal to" dropdown can already cover 99.9% of use cases?

dhylands commented 5 years ago

I've seen "all of list-of-items" in place of "and" and "any of list-of-items" in place of "or" used in other programs (i.e. gmail).

flatsiedatsie commented 5 years ago

I really like how a human readable sentence is generated.

Just a crazy thought: what if manipulating this sentence would be the main interface for rule creation?

textual_rules

Advantages:

flatsiedatsie commented 5 years ago

As far as I can tell the current rule interface has simplified things to just "bigger than" and "smaller than"?

I really like it!