Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
180 Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Rule chain templates

A rule chain template is a rule chain created on the server, on the Rule chain tab of Edge management > Templates. It does not run on the server. It is copied to every Edge you assign it to, and runs there. On Edge 4.0 and later, you can also create and edit rule chains directly on the Edge.

Use a template when you want to deploy the same rule chain logic to several Edges from one place.

  1. On the server, go to Edge management > Templates and open the Rule chain tab. Click + and select Create new rule chain.
  2. Enter a name and click Add.
  3. Click the new template in the list to open it. Use the Search nodes field on the left to find rule nodes, drag them onto the canvas, connect them, and click Apply changes.

The template is not active on any Edge until you assign it.

  1. On the server, go to Edge management > Edges and click the Edge.
  2. On the Details tab, click Manage rule chains.
  3. Click Assign to edge (+). In the Assign Rule Chain(s) To Edge dialog, select the template and click Assign.

The template appears in the rule chain list of this Edge. The Root column shows which rule chain is the root rule chain of the Edge.

The template is sent to the Edge as a downlink. If the Edge is connected, it receives the rule chain right away. If it is offline, it receives it once the connection is restored.

To assign a template to every new Edge automatically, or to make it the root rule chain of new Edges, use the row actions Assign rule chain to edge(s) on creation and Make rule chain as edge template root in the template list. See Rule chains of new Edges.

Available from Edge 4.0. Rule chains created on Edge are sent to the server automatically when the connection is available. Use this approach for Edge-specific logic that does not need to be shared with other Edges.

  1. On the Edge, go to Data processing > Rule chains, click +, and select Create new rule chain.
  2. Enter a name and click Add.
  3. Click the new rule chain in the list to open it. Add and connect your rule nodes, then click Apply changes.

After you assign a template or create a rule chain on Edge, confirm that it is active and configured correctly.

  1. Log in to the Edge and go to Data processing > Rule chains. The rule chain is in the list.
  2. Open it and check that the nodes and connections match what you defined.