Send Accessory Values in Notifications

Send Accessory Values in Notifications

Sometimes in a smart home you don’t just want to be alerted to changes—you also want to know the current value immediately. For instance, you might want to check the CO₂ level in your workspace as soon as you enter, ensuring the air quality is optimal. In this step-by-step guide, we’ll show you how to include a device value in your workflow.

Start Event

First, add the start event for your workflow. In our example, motion detection in the office triggers the workflow.

Steps

Add the Step “Get Accessory State”

Begin by adding the “Get Accessory State” step to retrieve the CO₂ level. By default, the value is stored in the incrementing variable P1, which you can rename if needed. We rename it to “CARBONDIOXIDE.”

Add the Step "Notification"

Next, add the “Notification” step to send the alert. Enter “Carbon Dioxide Report” as the title. In the message field, type: “The current Carbon Dioxide Level is $CARBONDIOXIDE.”

The dollar sign indicates that the variable “CARBONDIOXIDE” should be inserted here—the placeholder will be replaced with the retrieved value in the notification.

Final Overview

As soon as you enter the office, you’ll receive a notification displaying the current CO₂ level. Please note that automatic workflow execution requires a device with Hub Mode enabled.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.