Integration

Wyze

Control Wyze smart home devices with FaustBot triggers.

Overview

The Wyze integration adds dedicated triggers and actions so you can build workflows around events, device state, or external updates.

Event Triggers

React to inbound events and status updates.

Action Effects

Send commands and automate responses.

Automation Hooks

Combine triggers with other plugins and scripts.

Setup

1

Enable the Plugin

Open FaustBot settings and enable the Wyze integration.

2

Connect Your Account or Device

Provide any required credentials or connection details.

3

Verify the Connection

Trigger a test action to confirm the integration is responding.

Connection Tips

Keep the service running and verify network permissions if the connection fails.

Triggers

  • Connection status changes (connected, disconnected, error).
  • Incoming events or webhook notifications.
  • State changes reported by the service or device.

Effects

  • Send commands or updates to Wyze.
  • Change device settings or activate presets.
  • Sync data into variables for other actions.

Scripting API

Control Wyze smart home devices from your scripts using the CPH API:

Device Information

Device information
# Check connection status
connected = CPH.Wyze.IsConnected()

# Get all devices
devices = CPH.Wyze.GetDevices()
for device in devices:
    CPH.SendMessage(f"Device: {device['name']} ({device['type']})")

# Get a specific device by ID
device = CPH.Wyze.GetDevice("device_id")

# Get all rules/automations
rules = CPH.Wyze.GetRules()

Power Control

Power control
# Turn on a device
CPH.Wyze.TurnOn("device_id")

# Turn off a device
CPH.Wyze.TurnOff("device_id")

# Toggle device power
CPH.Wyze.Toggle("device_id")

# Set power with explicit state
CPH.Wyze.SetPower("device_id", True)   # On
CPH.Wyze.SetPower("device_id", False)  # Off

Lighting Control

Lighting control
# Set brightness (0-100)
CPH.Wyze.SetBrightness("bulb_id", 75)

# Set color temperature in Kelvin (2700-6500)
CPH.Wyze.SetColorTemperature("bulb_id", 4000)

# Set color with RGB values (0-255)
CPH.Wyze.SetColor("bulb_id", 255, 128, 0)  # Orange

# Set color with hex code
CPH.Wyze.SetColorHex("bulb_id", "#FF8000")

Locks and Rules

Locks and rules
# Lock a Wyze Lock
CPH.Wyze.Lock("lock_id")

# Unlock a Wyze Lock
CPH.Wyze.Unlock("lock_id")

# Run a Wyze rule/automation
CPH.Wyze.RunRule("rule_id")

# Refresh device list
CPH.Wyze.RefreshDevices()

# Refresh rules list
CPH.Wyze.RefreshRules()

Available Methods

MethodDescription
Wyze.IsConnected()Check if connected to Wyze
Wyze.GetDevices()Get list of all devices
Wyze.GetDevice(id)Get specific device by ID
Wyze.GetRules()Get list of automation rules
Wyze.SetPower(id, on)Set device power state
Wyze.TurnOn(id)Turn device on
Wyze.TurnOff(id)Turn device off
Wyze.Toggle(id)Toggle device power
Wyze.SetBrightness(id, level)Set brightness (0-100)
Wyze.SetColorTemperature(id, kelvin)Set color temperature (2700-6500K)
Wyze.SetColor(id, r, g, b)Set RGB color (0-255)
Wyze.SetColorHex(id, hex)Set color with hex code
Wyze.Lock(id)Lock a Wyze Lock
Wyze.Unlock(id)Unlock a Wyze Lock
Wyze.RunRule(id)Run an automation rule
Wyze.RefreshDevices()Refresh device list
Wyze.RefreshRules()Refresh rules list

See the full API reference for more details.