Decision Trees
Implement conditional flow branching logic that dynamically determines which flow to chain based on current flow properties.
Rule concepts, configuration, implementation and local development
View all tagsImplement conditional flow branching logic that dynamically determines which flow to chain based on current flow properties.
Use the ewx-public Python package to develop, test, and import custom rules with type hints and IDE autocompletion.
Write and test custom Energyworx rules locally with full IDE support and type hints using the ewx-public package.
Upload and deploy XGBoost or SKLearn machine learning models, then use them in rules to generate predictions on timeseries data.
Migrate custom rules and adapters from Pandas 1.x to 2.x with breaking change details and cross-version compatibility guidance.
Identify CPU bottlenecks in your rules and flow configurations using the Profiler with flame graphs and time-based analysis.
Configure custom rules with parameters and widgets to validate, estimate, calculate, or forecast timeseries data in flows.
Access rule framework functions for storing timeseries, annotations, managing flow properties, and triggering downstream flows.
Write custom Python rules by extending FlowRule base class and implementing prepare_context and apply methods.
Create Python-based rules that process timeseries data, validate measurements, and perform transformations within flows and configurations.
Send automated emails from rules with recipients, subject, and HTML content using the EmailService framework.
Create tasks from rules and assign them to taskboards with custom types, priorities, tags, and aggregation options.
Retrieve timeseries data from datasources using TimeseriesService methods with optional caching and annotation loading.
Store timeseries and annotations on datasource channels using FlowRule methods with dynamic channel determination.
Configure interval-based pricing or rate tiers for different times of day, week, or season to align with energy tariffs.
Write transform rules with the TransformRule base class: available attributes, rule parameters, return values and aborting an ingestion.
Unit test your custom Energyworx rules locally without mocks using the ewx_public.testing module with pytest.
Control flow termination behavior using FlowCancelException to abort with rollback or FlowStopException to preserve results.