# Node-red-contrib-ikea-tradfri Help needed

**URL:** <https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390>\
**Category:** General\
**Created:** [29 September 2022 13:54 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390 "2022-09-29T13:54:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbgnu76](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dbgnu76](https://discourse.nodered.org/u/dbgnu76)\
**Post date:** [29 September 2022 13:54 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/1 "2022-09-29T13:54:07Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55d368fba1b85b399f659cda17b65acb3c8087fa.png)

I need help with turning on lamps, if i use inject node it always work with boolean.  
but from plc that also use boolean, i got error.  
i have tryed many combinations , nothing works !

it is Lampa\_ToalettNere

best reg Donny

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 September 2022 16:04 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/2 "2022-09-29T16:04:36Z")

</div>

Check the input from the PLC with a debug node to ensure it is actually a valid boolean

---

<div class="post-metadata">

**Author:** ![dbgnu76](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dbgnu76](https://discourse.nodered.org/u/dbgnu76)\
**Post date:** [29 September 2022 16:27 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/3 "2022-09-29T16:27:20Z")

</div>

That does not change anything, i have tried other things to trigger a function block.  
it only works if i trigger with inject node, i can send a timestamp or whatever and it will work.

but in automatic flow it will not.

```auto
{

    msg.payload = {
        
        "onOff": true
        
    }

}
return msg;

```

---

<div class="post-metadata">

**Author:** ![Cyberbeni](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cyberbeni/32/66277_2.png) [@Cyberbeni](https://discourse.nodered.org/u/Cyberbeni)\
**Post date:** [29 September 2022 16:35 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/4 "2022-09-29T16:35:28Z")

</div>

Print the whole message in debug node, not just the payload.

---

<div class="post-metadata">

**Author:** ![dbgnu76](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dbgnu76](https://discourse.nodered.org/u/dbgnu76)\
**Post date:** [29 September 2022 17:28 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/5 "2022-09-29T17:28:25Z")

</div>

Thank you,

i found it, there was an hidden topic,  
added delete msg.topic; to the function block.

and now it works 🙂

---

<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:** [13 October 2022 17:29 UTC](https://discourse.nodered.org/t/node-red-contrib-ikea-tradfri-help-needed/68390/6 "2022-10-13T17:29:22Z")

</div>

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