# Huemagic examples seem not to work

**URL:** <https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597>\
**Category:** General\
**Created:** [13 January 2022 14:27 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597 "2022-01-13T14:27:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomDK](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@TomDK](https://discourse.nodered.org/u/TomDK)\
**Post date:** [13 January 2022 14:27 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/1 "2022-01-13T14:27:56Z")

</div>

Hi, I am new to NR and have it installed in my Home Assistant.

I am trying to get going with NR and Huemagic, but I do fail already with the simplest task : getting the examples to work.  
As an example, I want to get the current lux value returned from a sensor. I imnported the example for the Hue Brightness node specified the Hue bridge, and the sensor, deployed and injected on the status...  
The debug window returns with: TypeError: Cannot read properties of undefined (reading 'active')

I have no idea what that means!

There are two additional injections in the example, that seem to turn the linked sensor on or off. However, also the injection on these nodes returns the same error.

Can somebody explain to me what causes the error and how I can overcome it?

Node-Red version : 2.1.5  
NodeJS version: 16.13.2-r0  
node-red-contrib-huemagic version: 4.0.3

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 January 2022 14:45 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/2 "2022-01-13T14:45:28Z")

</div>

Assuming you mean `node-red-contrib-huemagic` then you can [raise an issue on the repo](https://github.com/Foddy/node-red-contrib-huemagic/issues) with the author.

---

<div class="post-metadata">

**Author:** ![TomDK](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@TomDK](https://discourse.nodered.org/u/TomDK)\
**Post date:** [13 January 2022 14:49 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/3 "2022-01-13T14:49:46Z")

</div>

Sorry Steve, forgot the version infos wich would made it obviouse that I am referring to node-red-contrib-huemagic.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 January 2022 14:51 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/4 "2022-01-13T14:51:11Z")

</div>

> [@TomDK](#):
>
> Node-Red version :10.3.1

That is not a node-red version number. that is a HA plugin version (it means nothing to us here)

node-red version is in the node-red menu (top right hamburger button)

---

<div class="post-metadata">

**Author:** ![TomDK](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@TomDK](https://discourse.nodered.org/u/TomDK)\
**Post date:** [13 January 2022 14:53 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/5 "2022-01-13T14:53:46Z")

</div>

Noted, and updated

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 March 2022 14:53 UTC](https://discourse.nodered.org/t/huemagic-examples-seem-not-to-work/56597/6 "2022-03-14T14:53:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
