Skip to main content

Red Series How to Change Default Level Local on a Schedule • Hubitat

This article will teach you how to change a parameter inside the Hubitat app as well as provide specific examples.

L
Written by Lance M
Updated today

Introduction

This guide covers the process of using Rule Machine, Hubitat’s automation engine to modify a device’s internal configuration parameters based on a schedule.

This is particularly useful for tasks like dimming the LED indicators on smart switches at night or changing the sensitivity of motion sensors during specific hours.


Prerequisites

  • Device Driver Support: Ensure you have the Inovelli drivers installed (manually or with Hubitat Package Manager) as the Inovelli device drivers support the setParameter command. Most community drivers and advanced built-in drivers include this.

  • Parameter Details: You will need the Parameter Number and the Value you wish to set. These are usually found in the device's manual or the manufacturer's online documentation.


Step-by-Step Configuration

1. Create a New Rule

  1. Navigate to the Apps tab on your Hubitat dashboard.

  2. Open Rule Machine and select Create New Rule.

  3. Give your rule a descriptive name (e.g., "Change the default level local Ceiling Light Nightime").

2. Define the Trigger (The "When")

  1. Click on Trigger Events and select the type of trigger you wish to use.

  2. Select Time of Day from the capability dropdown.

  3. Choose your desired time (e.g., "At a certain time" like 8:00 PM, or "Sunset").

  4. Click Done with Trigger Events.

3. Define the Action (The "What")

Since Change Parameter isn't a standard command like On or Off, we will use the Run Custom Action feature.

  1. Click Actions to Run.

    Then

  2. Select Set Mode, Variables or File, Run Custom Action.

  3. Select Run Custom Action.

  4. Select capability for action: Choose the capability of your device (usually Switch, Dimmer or Actuator).

  5. Select devices to add to action: Pick the specific device you want to modify.

  6. Select custom command: Look for setParameter.

    • Note: If setParameter isn't there, the driver may not support manual overrides via Rule Machine.

  7. Add Parameter(s): You will need to add two parameters the parameter number and the value

    • Parameter 1: Parameter Number (Integer)

      Then enter parameter number (in the example it is 13 and click done with parameter

    • Parameter 2: Value (Integer), add parameter select parameter type and integer value for the dim level 50 (50%), on (1) or off(0), etc.

  8. Click Done with Action, then Done with Actions.

Did this answer your question?