Skip to main content

Philips Hue Light Command From iPaaS.com Mapping Documentation

How iPaaS.com records trigger Philips Hue light commands: the two example collections, the light command fields, and how to set up and test a collection.

Summary

Philips Hue light commands can be sent from iPaaS.com records through automatic outbound events or Manual Sync. Philips Hue is a command integration: rather than copying data into Philips Hue, each iPaaS.com record that passes a collection's filter makes a light, room or zone react. The filter decides which records light up, and the mappings decide what the lights do.

Two example collections ship with the integration: Hue BOPIS Blink signals a light red when a pickup order arrives, and New VIP Customer signals a light blue when a VIP customer is added. You can build the same kind of collection for any of the other data types the integration supports (see Other Data Types under Mappings).

ID Format

Manual Sync ID Format

On the iPaaS.com Manual Sync page, enter the iPaaS.com record ID of the record that should trigger the command: a transaction's record ID for Hue BOPIS Blink, or a customer's record ID for New VIP Customer. Manual Sync is always available, even before any outbound event is subscribed.

External ID Format

After the command is sent, iPaaS.com saves an external ID on the record for this subscription. Philips Hue returns no record ID for a light command, so the external ID records where and when the command went:

{names}@yyyy-MM-ddTHH:mm:ss.fffZ/{iPaaS.com record ID}

  • Names: the lights, rooms or zones the command reached, as named in the Hue app (for a Scene command, the scene name). When the command reaches more than three names, the first three are listed and the rest are counted as +N. A name list longer than 80 characters is shortened.

  • Date and time: when the command was sent, in UTC, to the millisecond, ending in Z.

  • Record ID: a slash and the iPaaS.com record ID of the record that triggered the command.

The external ID also decides whether a later transfer is an add or an update: a record that already carries this subscription's external ID is an update. With the Add sync type both example collections ship with, a record signals the first time it passes the filter and its later updates send nothing. To signal on every matching update, change the collection's sync type to Add/Update.

Deleted Record Support

Not supported. Deleting a record in iPaaS.com sends no command to Philips Hue, and the collections include no delete mappings. Subscribe only the created and updated events.

Custom Field Support

The example collections do not need custom fields: they map Target, Command, Color and DurationSeconds directly. Custom fields are supported as a shortcut and for collections built for version 1.1. To add one, open the collection's mappings, use + Add Custom Field, and name it exactly as the light, room or zone is named in your Hue app.

  • Color value: a custom field named after a light, room or zone whose value is a color (for example green or #00FF00) signals that light, room or zone. Several such custom fields all signal, in the first custom field's color. This comes from the integration's design; validate it in a staging subscription before relying on it in production.

  • Other values: a custom field whose value is not a color is ignored; it is treated as your own data, not a light command.

  • Version 1.1 functions: a custom field named after a light whose value is a version 1.1 function such as FlashRed() still works and becomes a Signal on that light in the function's color. If several such custom fields are mapped, only the last one's light is signalled. A function custom field also limits the search to lights, so a Target that names a room or zone then fails with PHUE-NFND-1001. The functions are described in Philips Hue Mapping Functions.

  • Priority: a mapped Color takes priority over a custom field's color, so in the example collections a color custom field signals in red or blue. A mapped Target takes priority over a version 1.1 function custom field. Keep the light names in either Target or custom fields, not both, and validate the combination in a staging subscription before relying on it in production.

Mapping Collection Status

  • Status: Disabled. Both example collections ship with a filter that returns false for every record, so they send nothing until you replace it. Their Target mapping also holds a placeholder value that must be replaced (see Mappings).

  • Trigger Events: Hue BOPIS Blink runs on transaction/created, and also transaction/updated if your pickup orders pass your filter only after a change (for example, when they become ready for pickup). New VIP Customer runs on customer/created, and also customer/updated if customers meet your VIP rule only after a change (for example, when they are moved into your VIP category later). Subscribe these events in your subscription's Outbound Data Flows. Nothing is sent automatically until subscribers or their MiSP subscribe them.

To enable a collection:

  1. Replace the filter with the records that should light up: pickup orders for Hue BOPIS Blink, or customers in your VIP customer category for New VIP Customer.

  2. Replace Target with the name of your light, room or zone.

  3. Send one record from Manual Sync to check the light, then subscribe the events under Outbound Data Flows.

New VIP Customer ships with the sync type Add, so it signals for new VIP customers: a customer signals the first time it passes the filter, whether that happens when it is created or on a later update you subscribed. To signal each time a VIP customer's record changes as well, change its sync type to Add/Update.

Duplicate or Conflicting Mappings

Hue BOPIS Blink and New VIP Customer are the two example collections; one signals on transactions and the other on customers, so they do not act on the same records.

Each collection that runs sends its own command; the integration does not combine or skip them. If you add more collections for the same data type, each one whose filter a record passes can send its command, and the record's external ID records the last one that ran. With the Add sync type, a collection may skip a record another collection has already signalled; validate the combination in a staging subscription before relying on it in production. Review each collection's filter and sync type before you subscribe more events, and decide which collection should own each light.

Collision Handling

Not applicable. The integration creates or links no Philips Hue record, so there is no record to match and no Collision Handling Method.

Unmapped Field Overwrite Risk

Not applicable. A command stores nothing in Philips Hue and writes nothing back to the iPaaS.com record except the external ID.

Supported Child Collections

None. Every Philips Hue collection is a standalone command collection with no child collections.

System Caveats

Philips Hue Caveats

  • Bridge: the Hue Bridge must be online and linked to the Hue account the subscription authenticated with. When Philips Hue cannot complete the command, for example because the Bridge is offline, the transfer fails with PHUE-EXTN-1003.

  • Names: every name in Target must match a light, room or zone name in your Hue app (case and surrounding spaces are ignored). The PHUE-NFND-1001 message lists the names your Bridge has.

  • White-only lights: a light that cannot show color blinks instead of flashing a color.

  • Command only: the integration sends a command; it does not read the light's state back or confirm the visible result.

  • Rate limits: when Philips Hue limits requests, the transfer is held and retried automatically once the limit clears. No action is required.

  • Partly sent commands: a command goes to one light at a time (several names in Target, or the lights of a room, zone or All). When it fails on a later light, the earlier lights have already reacted, and they react again when the record is sent again or the transfer is retried. The rate-limit hold and this repeat come from the integration's design; validate them in a staging subscription before relying on them in production.

iPaaS.com Caveats

  • Authentication: the subscription must be authenticated to Philips Hue before any command can be sent, as described in the Philips Hue Installation Instructions.

  • Events: automatic commands need the collection's events subscribed under Outbound Data Flows.

  • Filter: every record that passes a collection's filter sends a command, so keep the filter narrow.

  • Errors: failed commands appear under Dashboard / Integration Monitoring / Error Logs.

Setup Requirements

Philips Hue Configuration

  • Bridge: confirm in the Philips Hue app that your Bridge is online and linked to your Hue account.

  • Names: note the exact names of the lights, rooms or zones you want to signal, as shown in the Hue app.

iPaaS.com Configuration

  1. Authenticate the subscription to Philips Hue: click Authenticate (the lock icon) on the subscription and allow access in your Hue account. See Philips Hue Installation Instructions and Philips Hue Connections and Settings.

  2. On the collection, replace Target and the filter as described in Mapping Collection Status.

  3. Subscribe the collection's events under Outbound Data Flows.

This integration does not use webhooks or polling, so there is nothing to configure on the Philips Hue side to receive events.

Integration Flow

  1. A record is created or updated in iPaaS.com (a transaction for Hue BOPIS Blink, a customer for New VIP Customer) and an outbound event you subscribed fires, or you send the record from Manual Sync.

  2. iPaaS.com applies the collection's filter. A record that does not pass sends nothing. With the Add sync type, a record that already carries this subscription's external ID also sends nothing.

  3. The integration reads the lights, rooms and zones on your Hue Bridge, fresh for each transfer, so a light renamed in the Hue app is found at once. It finds each name in Target, ignoring case and surrounding spaces: a light first, then rooms, then zones, unless TargetType says which. Every name must be found before anything is sent: if one is not found, the transfer fails with PHUE-NFND-1001 and no light reacts.

  4. It sends the command. A Signal goes to each light it found; a room or zone receives the Signal on each of its lights. In the example collections this is a Signal in red (Hue BOPIS Blink) or blue (New VIP Customer) for 10 seconds.

  5. iPaaS.com saves the external ID on the record (see ID Format).

Mappings

Every Philips Hue collection maps to the same Light Control fields, whatever the iPaaS.com data type. The two example collections map four of them; the full field set is listed under Other Data Types.

Hue BOPIS Blink

iPaaS.com data type: Transaction

Mapping Filter

// REPLACE this line with the orders that should light up, for example pickup orders.
// Until you do, nothing is sent.
return false;

Filter Description: the filter is two comment lines followed by return false;. The comments say to replace the filter with the orders that should light up, for example pickup orders, and that nothing is sent until you do. Because it returns false, no transaction passes and the collection is disabled. Replace it with a filter that returns true only for the transactions that should signal the light, for example only orders whose shipping method is your store-pickup method.

Description: signals a light, room or zone near the pickup counter red for 10 seconds when a pickup order arrives, so staff see a "buy online, pick up in store" (BOPIS) order.

Mapping Type

Source Field (iPaaS.com)

Destination Field (Philips Hue)

Description

Static

"REPLACE-WITH-YOUR-LIGHT-NAME"

Target

Required, unless a custom field names the light or Command is Scene. The light, room or zone that signals, as named in your Hue app; several names may be separated by commas, and All (or All Lights) signals every light on the Bridge. See the placeholder note below the table.

Static

"Signal"

Command

Optional. Flashes the Target for DurationSeconds so staff see a pickup order arrive. Allowed values: Signal, Breathe, On, Off, Effect and Scene, in any case; blank is Signal. Any other value fails with PHUE-VALD-1005.

Static

"red"

Color

Optional. The color the Signal flashes. Allowed values: a color name, a hex value such as #FF0000 or FF0000, or R,G,B with each number from 0 to 255. Any other value fails with PHUE-VALD-1003.

Static

"10"

DurationSeconds

Optional. How long the Signal lasts, in whole seconds. Values below 1 are sent as 1 and values above 65534 as 65534; blank is 10.

Placeholder value — replace during implementation: REPLACE-WITH-YOUR-LIGHT-NAME is not a light name. Before the first transfer, either replace it with the name of a light, room or zone that exists in your Hue app, or rename a light, room or zone in the Hue app to the name you enter here. Until then, every transfer fails with PHUE-NFND-1001 and the message "No light, room or zone named 'REPLACE-WITH-YOUR-LIGHT-NAME' on the Philips Hue bridge. Available: (up to 30 names from your Bridge). Correct the name in the mapping, or rename it in the Hue app.", followed by a link to the error's help article. The message lists the names your Bridge has, so you can copy the right one.

New VIP Customer

iPaaS.com data type: Customer

Mapping Filter

// REPLACE this line with the customers that should light up, for example your VIP category.
// Until you do, nothing is sent.
return false;

Filter Description: the filter is two comment lines followed by return false;. The comments say to replace the filter with the customers that should light up, for example your VIP category, and that nothing is sent until you do. Because it returns false, no customer passes and the collection is disabled. Replace it with a filter that returns true only for the customers that should signal the light, for example only customers in your VIP customer category.

Description: signals a light, room or zone blue for 10 seconds when a high-value ("VIP") customer is added, so staff see a new VIP customer.

Mapping Type

Source Field (iPaaS.com)

Destination Field (Philips Hue)

Description

Static

"REPLACE-WITH-YOUR-LIGHT-NAME"

Target

Required, unless a custom field names the light or Command is Scene. The light, room or zone that signals, as named in your Hue app; several names may be separated by commas, and All (or All Lights) signals every light on the Bridge. Replace the placeholder as described under Hue BOPIS Blink; until then every transfer fails with PHUE-NFND-1001.

Static

"Signal"

Command

Optional. Flashes the Target for DurationSeconds so staff see a new VIP customer. Allowed values: Signal, Breathe, On, Off, Effect and Scene, in any case; blank is Signal. Any other value fails with PHUE-VALD-1005.

Static

"blue"

Color

Optional. The color the Signal flashes. Allowed values: a color name, a hex value such as #0000FF or 0000FF, or R,G,B with each number from 0 to 255. Any other value fails with PHUE-VALD-1003.

Static

"10"

DurationSeconds

Optional. How long the Signal lasts, in whole seconds. Values below 1 are sent as 1 and values above 65534 as 65534; blank is 10.

Other Data Types

You can create a Philips Hue collection FROM iPaaS.com for any of the data types below. Each one uses the same Light Control fields, so you build it the same way as the examples: a filter for the records that should light up, then Target, Command and the fields the command needs. Subscribe the events listed for its data type under Outbound Data Flows, or send records from Manual Sync. Deleting a record sends no command, so no delete event is listed.

iPaaS.com data type

Outbound events

Product

product/created, product/updated

Product Variant

product/variant/created, product/variant/updated

Product Inventory

product/inventory/created, product/inventory/updated

Product Variant Inventory

product/variant/inventory/created, product/variant/inventory/updated

Product Category

category/product/created, category/product/updated

Product Category Assignment

product/category/created, product/category/updated

Related Product

No created or updated outbound event exists for this data type; send records from Manual Sync.

Kit

No created or updated outbound event exists for this data type; send records from Manual Sync.

Location

location/created, location/updated

Location Group

No created or updated outbound event exists for this data type; send records from Manual Sync.

Customer

customer/created, customer/updated

Customer Address

customer/address/created, customer/address/updated

Customer Category

category/customer/created, category/customer/updated

Customer Company

customer/company/created, customer/company/updated

Transaction

transaction/created, transaction/updated

Shipping Method

shippingmethod/created, shippingmethod/updated

Payment Method

paymentmethod/created, paymentmethod/updated

Gift Card

giftcard/created, giftcard/updated

Employee

employee/created, employee/updated

Timesheet

timesheet/created, timesheet/updated

Message

message/created, message/updated

Light Control Fields

Field

What it does

Example

Target

The light, room or zone to command, by its name in the Hue app, matched ignoring case and surrounding spaces. Several names may be separated by commas. All (or All Lights) means every light on the Bridge. Blank fails with PHUE-VALD-1004, and a name that matches nothing fails with PHUE-NFND-1001.

Front Counter, Back Office

TargetType

Light, Room, Zone, Group (a room or zone) or Any. Blank or Any searches lights, then rooms, then zones; use it when a light and a room share a name. Any other value fails with PHUE-VALD-1005.

Room

Command

Signal (blank), Breathe, On, Off, Effect or Scene, in any case. Any other value fails with PHUE-VALD-1005.

Signal

Color

For Signal or On: a name (red, green, blue, yellow, orange, purple, pink, magenta, cyan, teal, white, warm white, gold, lime), a hex value, or R,G,B with each number from 0 to 255. Any other value fails with PHUE-VALD-1003.

green

SecondColor

With Color, makes a Signal alternate between the two colors.

gold

Brightness

For On and Scene: 1 to 100 (percent). A Signal, Breathe or Effect does not use it.

80

ColorTemperature

For On or Effect: a white tone in mirek, from 153 (cool, about 6500 K) to 500 (warm, about 2000 K). On a single light it is sent only when the light supports white tones, within that light's own range; a room, zone or All receives it as a whole. Map either Color or ColorTemperature, not both. A value outside 153 to 500, or both mapped, fails with PHUE-VALD-1008.

370

TransitionMs

For On, Off and Scene: how long the change takes, in milliseconds (0 or more). Blank uses Philips Hue's default. A negative value fails with PHUE-VALD-1008.

2000

DurationSeconds

How long a Signal lasts, in whole seconds, from 1 to 65534; blank is 10. For the sunrise and sunset effects: how long the effect takes, from 1 to 21600 seconds, and required.

5

Effect

For Command Effect: candle, fire, sparkle, prism, opal, glisten, underwater, cosmos, sunbeam, enchant, sunrise or sunset (timed effects, with DurationSeconds), or no_effect to stop. Without it, Command Effect fails with PHUE-VALD-1006; any other value fails with PHUE-VALD-1008.

candle

EffectSpeed

For Command Effect: the effect's speed, from 0 (slowest) to 1 (fastest). With Color or ColorTemperature, it also sets the effect's color. Sent to lights that support effect settings; other lights play the plain effect. A value outside 0 to 1 fails with PHUE-VALD-1008.

0.3

Scene

For Command Scene: the scene's name in the Hue app. Target then names the room or zone whose scene plays. Without it, Command Scene fails with PHUE-VALD-1006.

Relax

SceneMode

For Command Scene: active (blank: play the scene), dynamic_palette (play it with its colors slowly changing) or static. Brightness and TransitionMs also apply to the scene. Any other value fails with PHUE-VALD-1008.

dynamic_palette

The fields kept from version 1.1 are still honored: SearchName (used when Target is blank), EventType (Light or Group, where a group is a room or zone; used when TargetType is blank), and LightState and GroupAction (the result of the version 1.1 mapping functions, sent as a Signal). Prefer Target, TargetType, Command and Color in new collections. AlertDate is set by the integration; do not map it.

What Each Command Does

  • Signal: on a color light, one Color flashes that color; with Color and SecondColor it alternates the two colors; with no color, or on a white-only light, the light blinks. The Signal lasts DurationSeconds and is sent to each light of the Target.

  • Breathe: sends Philips Hue's breathe alert to the Target. A room, zone or All receives it as a whole.

  • On: turns the Target on, with Color or ColorTemperature, Brightness and TransitionMs when they are mapped. A room, zone or All receives it as a whole.

  • Off: turns the Target off, over TransitionMs when it is mapped. A room, zone or All receives it as a whole.

  • Effect: starts the Effect on each light of the Target that lists it, and on lights that report no effect list. With EffectSpeed, Color or ColorTemperature, lights that support effect settings play it with those settings. sunrise and sunset are timed effects: they run for DurationSeconds on the lights that list them. no_effect stops an effect, timed effects included. When no light in the Target supports the effect, the transfer fails with PHUE-VALD-1006.

  • Scene: plays the named Scene in SceneMode, with Brightness and TransitionMs when they are mapped. When more than one room or zone has a scene of that name and Target does not say which, the transfer fails with PHUE-VALD-1007.

What Breathe, Effect and Scene do on real lights comes from the integration's design; validate them in a staging subscription, sending one record from Manual Sync and watching each light, before relying on them in production.

Error Handling

Errors from these collections appear under Dashboard / Integration Monitoring / Error Logs. Each message starts with its code and ends with a link to its entry in Philips Hue Error Messages, which gives the cause and resolution of every code.

  • PHUE-NFND-1001: a name in Target (or a custom field named after a light) matches no light, room or zone, a room or zone has no lights, or no scene has the mapped name. The message lists the names your Bridge has. Correct the name in the mapping, or rename the light in the Hue app.

  • PHUE-VALD-1003: Color or SecondColor is not a color the integration understands. Use a color name, a hex value or R,G,B.

  • PHUE-VALD-1004: the mapping sent no Target. Map Target to the name of a light, room or zone.

  • PHUE-VALD-1005: Command or TargetType is not one the integration knows. Use one of the allowed values listed under Light Control Fields.

  • PHUE-VALD-1006: Command Effect or Scene has no Effect or Scene mapped, a sunrise or sunset effect has no DurationSeconds, or no light in the Target supports the effect.

  • PHUE-VALD-1008: a setting is outside what Philips Hue accepts: ColorTemperature outside 153 to 500, Color and ColorTemperature both mapped, a negative TransitionMs, EffectSpeed outside 0 to 1, an unknown Effect or SceneMode, or a timed effect's DurationSeconds outside 1 to 21600. The message names the field and the values Philips Hue accepts.

  • PHUE-VALD-1007: more than one room or zone has a scene of the mapped name. Map Target to the room or zone whose scene should play.

  • PHUE-EXTN-1003: Philips Hue could not be reached or could not complete the command. Check that the Bridge and the lights are online and that the Bridge is linked in the Hue app. iPaaS.com retries the transfer; if it keeps failing, correct the cause and send the record again.

  • PHUE-AUTH-1001, PHUE-AUTH-1002, PHUE-AUTH-1003, PHUE-AUTH-1004: the subscription is not connected to Philips Hue, its connection was refused or has expired, or no Bridge is linked to the Hue account. Open the subscription and click Authenticate (the lock icon) to connect your Hue account again.

When Philips Hue limits requests, the transfer is held and retried automatically once the limit clears. No action is required. Validate this in a staging subscription before relying on it in production.

Testing & Validation

Test Scenarios

  1. Replace Target on the collection with the name of a light you can see, as named in the Hue app.

  2. Replace the filter with a narrow rule that only a test record passes.

  3. Note the iPaaS.com record ID of a record that passes the filter (a transaction for Hue BOPIS Blink, a customer for New VIP Customer).

  4. Go to Manual Sync, select the Philips Hue subscription and the collection, enter the record ID, and send it.

  5. Watch the light: it should signal red (Hue BOPIS Blink) or blue (New VIP Customer) for 10 seconds.

  6. Open the record and confirm it now carries an external ID for the subscription that starts with the light's name as named in the Hue app, then @ and the date and time the command was sent. If the light does not react, check Dashboard / Integration Monitoring / Error Logs.

  7. To confirm the name check, set Target to a name that is not in the Hue app, send the record again, and confirm the transfer fails with PHUE-NFND-1001 and lists your Bridge's names. Then set Target back.

  8. When the light works, widen the filter to the records that should really light up and subscribe the collection's events under Outbound Data Flows.

Validation Checklist

  • The subscription is authenticated to Philips Hue and the Bridge is online.

  • Target holds names that exist in the Hue app, not REPLACE-WITH-YOUR-LIGHT-NAME.

  • The filter returns true only for the records that should light up.

  • The sync type matches what you want: Add signals each record once, Add/Update signals on every matching update.

  • The collection's events are subscribed under Outbound Data Flows.

Additional Notes

  • Outbound only: the integration sends commands to Philips Hue and brings no Hue data into iPaaS.com.

  • No initialization or polling: there is no scheduled poll, and existing records are not replayed as commands.

  • No visible confirmation: a successful transfer means Philips Hue accepted the command, not that someone saw the light.

  • For the limits that apply to every collection, see Philips Hue Integration Known Limitations.

Related Documents

Did this answer your question?