Hi everyone, I’m excited to share my latest project, Flows Builder, a visual tool designed to simplify rule creation in OpenHAB. After experimenting with the new rules engine, I noticed room for improvement in the user interface and workflow. So, I decided to create a more intuitive solution using AngularJS and ngFlowchart libraries, borrowing some assets from HABPanel to streamline development.
What Does It Do?
Flows Builder allows you to design rules visually using flowcharts. It compiles these diagrams into executable rules for the OpenHAB engine. For instance, you can create a flow that triggers actions based on conditions like time of day or device states. The tool supports chaining rules, enabling complex control flows that weren’t easily achievable before.
How It Works
- Design: Draw your workflow using drag-and-drop components for triggers, conditions, and actions.
- Compile: The tool converts your flowchart into one or more rules optimized for execution.
- Deploy: Publish the compiled rules to your OpenHAB instance directly from the app.
Example Use Case
Imagine you want to automate your lights based on whether you’re home. Here’s how you could set it up:
- Trigger: When you arrive home.
- Condition: If it’s dark outside.
- Action: Turn on the lights.
- Else: If it’s light, do nothing.
This flow can be easily designed and tested within Flows Builder, making rule creation more accessible, especially for those less familiar with scripting.
Features
- Visual Design: Intuitive drag-and-drop interface.
- Rule Chaining: Connect multiple rules to create complex workflows.
- Export/Import: Save and share your flows with others.
- Real-Time Preview: See how your rules will behave before deploying.
Getting Started
Flows Builder is available as a downloadable package on GitHub. Simply follow the installation instructions in the README, and you’ll be up and running in minutes. It’s perfect for anyone looking to streamline their OpenHAB rule creation process.
Feedback Welcome!
While the tool is functional, it’s still in its early stages. I’m eager to hear your thoughts, suggestions, and any issues you encounter. Your feedback will help shape its future development!
Thank you for checking out Flows Builder. I hope it brings a new level of efficiency and creativity to your OpenHAB projects!
Best regards,
[Your Name]