# Activate Hue scene with HomeyScript?

**URL:** <https://community.homey.app/t/activate-hue-scene-with-homeyscript/55255>\
**Category:** Developers\
**Created:** [November 22, 2021, 3:47pm UTC](https://community.homey.app/t/activate-hue-scene-with-homeyscript/55255 "2021-11-22T15:47:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dzt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dzt/32/50239_2.png) [@dzt](https://community.homey.app/u/dzt)\
**Post date:** [March 17, 2022, 10:31pm UTC](https://community.homey.app/t/activate-hue-scene-with-homeyscript/55255/4 "2022-03-17T22:31:58Z")

</div>

bump 🙂

Can someone who has done it, point to what I do wrong in my script. I found the following code for Philips hue flow card _Set scene_:

```auto
-----------
Activate the [[scene]] scene
{
  "uri": "homey:app:nl.philips.hue",
  "id": "setScene",
  "args": [
    {
      "name": "scene",
      "type": "autocomplete",
      "title": "Scene"
    }
  ]
}
-----------

```

And by following the example flow, also shown in the post above, I’m writing it as:

```auto
await Homey.flow.runFlowCardAction({
     uri: 'homey:app:nl.philips.hue',
     id: 'setScene',
     args: [
                 {
                      name: 'Energize Kitchen',
                      type: 'autocomplete',
                      title: 'Energize Kitchen'
                  }
               ]
})

```

And I get an error:

```auto
———————————————————
❌ Script Error
⚠️ Cannot read property 'bridge_id' of undefined: Cannot read property 'bridge_id' of undefined
    at /node_modules/athom-api/dist/index.js:1:1186403
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

```

Am I supposed to reference my particular Hue bridge in some way?

Any help is greatly appreciated!

---

_[View the full topic](https://community.homey.app/t/activate-hue-scene-with-homeyscript/55255)._
