Difference between revisions of "Constraint: IP address"

(Created page with "<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">This constraint can be used to allow/prevent functionality based on the current IP...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">This constraint can be used to allow/prevent functionality based on the current IP Address of the device.</pre>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on the device IP address.</pre>
 +
 
 +
''' Options '''
 +
 
 +
* '''Matches''' - Match a specific IP address or pattern
 +
* '''Regex''' - Use regex for advanced matching
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Launch a smart home app only when on the home network''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Day/Time Trigger - 07:00</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Launch Application: Home Assistant</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
IP address - Matches 192.168.1.*</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: IP address Change|IP address Change Trigger]]

Latest revision as of 11:37, 9 January 2026

This constraint allows or prevents a macro/feature from running based on the device IP address.

Options

  • Matches - Match a specific IP address or pattern
  • Regex - Use regex for advanced matching

Example

Example 1: Launch a smart home app only when on the home network

Triggers

Day/Time Trigger - 07:00
Actions

Launch Application: Home Assistant
Constraints

IP address - Matches 192.168.1.*

See Also