# Local control of home devices - Wiz

**URL:** <https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009>\
**Category:** General\
**Created:** [19 November 2023 13:55 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009 "2023-11-19T13:55:11Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [21 November 2023 20:12 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/21 "2023-11-21T20:12:56Z")

</div>

This thread is primarily about me discovering some nice devices that can be both controlled locally as well as via app/Alexa etc. 🙂

The fact that the Phillips lighting division is now a separate company who own Wiz is a none issue for me

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [21 November 2023 23:30 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/22 "2023-11-21T23:30:32Z")

</div>

Always interested in the same kind of devices for the same reason, didn't know if I was looking at the same thing you were.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [22 November 2023 08:00 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/23 "2023-11-22T08:00:41Z")

</div>

> [@gerry](#):
>
> at this time the threatened required account is still not implemented at least in this area.

 ![IMG_0933](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b2d406c36f4fc32d99913da22c36b92b0b63912.png)

🤮

---

<div class="post-metadata">

**Author:** ![CAL37](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@CAL37](https://discourse.nodered.org/u/CAL37)\
**Post date:** [5 December 2023 20:53 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/24 "2023-12-05T20:53:37Z")

</div>

@cymplecy would you mind sharing how you configured your Alexa for the scenes? I'm using the amazon echo device node to dim, brighten, off, on, but haven't figured out the best way to tell Alexa to change scenes.

- Alexa, turn on/off {device}
- Alexa, switch on/off {device}
- Alexa, set {device} to 50%
- Alexa, turn my {device} light green
- Alexa, set the {device} light to orange
- Alexa, make the {device} warmer
- Alexa, brighten {device} to 60 percent
- Alexa, dim the {device} lights

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 December 2023 08:32 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/25 "2023-12-06T08:32:04Z")

</div>

I'm not setting scenes via Alexa and don't know if its possible to do it directly or not.  
I've got these to be able to directly control them without Alexa

If I was wanting to do it - I'd maybe use node-red-contrib-alexa-home-skill and send the appropriate UDP command

But this would be a bit laborious if you wanted all of them

---

<div class="post-metadata">

**Author:** ![CAL37](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@CAL37](https://discourse.nodered.org/u/CAL37)\
**Post date:** [6 December 2023 13:18 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/26 "2023-12-06T13:18:02Z")

</div>

Out of curiosity, are you using a nodered dashboard to trigger them or linking them to HA using a dummy switch?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 December 2023 18:33 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/27 "2023-12-06T18:33:25Z")

</div>

I don't use a dashboard or HA.

I'm setting the colour of my lights using UDP to whatever the current cheerlights colour is set to.

---

<div class="post-metadata">

**Author:** ![CAL37](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@CAL37](https://discourse.nodered.org/u/CAL37)\
**Post date:** [6 December 2023 19:34 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/28 "2023-12-06T19:34:48Z")

</div>

> [@cymplecy](#):
>
> cheerlights

Thank you, never heard of cheerlights but will check it out.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 December 2023 22:05 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/29 "2023-12-06T22:05:45Z")

</div>

Cheerlights - Simplest via MQTT feed (IMHO) - [Learn about CheerLights – CheerLights](https://cheerlights.com/learn/#:~:text=cheerlights%2Ffeeds%2Fhex-,CheerLights%20MQTT,published%20immediately%20over%20MQTT%20topics).

```auto
[{"id":"650dc259199a2966","type":"mqtt in","z":"1cf395c5f3a1c332","name":"","topic":"hex","qos":"2","datatype":"auto-detect","broker":"f5f07448bd87deb0","nl":false,"rap":true,"rh":0,"inputs":0,"x":230,"y":180,"wires":[["bfd97ac30d8e3327"]]},{"id":"bfd97ac30d8e3327","type":"debug","z":"1cf395c5f3a1c332","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":180,"wires":[]},{"id":"f5f07448bd87deb0","type":"mqtt-broker","name":"","broker":"mqtt.cheerlights.com","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

```

---

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [27 January 2024 13:32 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/30 "2024-01-27T13:32:51Z")

</div>

Hi cymplecy, I note from your initial message that you are using node red on a PC to control your Wiz bulbs and that you had to install ncap. Have you used node red on a RPi to do the same. I notice that nmap (which I think contains or has equivalent functionality to ncap on the PC) is available in Add/Remove software on the RPi. Also, have you been able to control colour and dimming of the bulbs?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [27 January 2024 14:26 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/31 "2024-01-27T14:26:55Z")

</div>

I only used ncap for first experiments as that was the suggested method I got from Google

I do it all from within NodeRED now using the UDP nodes  
I'm sure that would work on Pi but on train at moment so can't test.

I'll check it out when back home just to make sure.

I love my Wiz lights/switches 🙂

I'll also post my working NR flow

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [27 January 2024 15:01 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/32 "2024-01-27T15:01:52Z")

</div>

Yep - works fine on Pi

```auto
[{"id":"5638a23be58df205","type":"udp out","z":"9078715602b83838","name":"Playroom .30","addr":"192.168.0.30","iface":"","port":"38899","ipv":"udp4","outport":"39988","base64":false,"multicast":"false","x":380,"y":120,"wires":[]},{"id":"0780251069eae573","type":"inject","z":"9078715602b83838","name":"off","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"id\":1,\"method\":\"setState\",\"params\":{\"state\":false}} ","payloadType":"str","x":140,"y":120,"wires":[["5638a23be58df205"]]},{"id":"9714b5032a81df41","type":"inject","z":"9078715602b83838","name":"on","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"id\":1,\"method\":\"setState\",\"params\":{\"state\":true}}","payloadType":"str","x":140,"y":80,"wires":[["5638a23be58df205"]]},{"id":"b29adb08dad00cae","type":"inject","z":"9078715602b83838","name":"status","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"method\":\"getPilot\",\"params\":{}}","payloadType":"str","x":140,"y":40,"wires":[["5638a23be58df205"]]},{"id":"f9f823d076d07996","type":"inject","z":"9078715602b83838","name":"red","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"id\":1,\"method\":\"setState\",\"params\":{\"r\":255,\"g\":0,\"b\":0}}","payloadType":"str","x":140,"y":160,"wires":[["5638a23be58df205"]]},{"id":"4dbb502181896919","type":"inject","z":"9078715602b83838","name":"white","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"id\":1,\"method\":\"setState\",\"params\":{\"temp\":4000,\"dimming\":100}}","payloadType":"str","x":140,"y":240,"wires":[["5638a23be58df205"]]},{"id":"817b4aa1fd332837","type":"inject","z":"9078715602b83838","name":"yellow","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"id\":1,\"method\":\"setState\",\"params\":{\"r\":255,\"g\":255,\"b\":0}}","payloadType":"str","x":140,"y":200,"wires":[["5638a23be58df205"]]},{"id":"b429a00a6c19aa83","type":"udp in","z":"9078715602b83838","name":"","iface":"","port":"39988","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":560,"y":120,"wires":[["34448990c40d625e"]]},{"id":"34448990c40d625e","type":"json","z":"9078715602b83838","name":"","property":"payload","action":"","pretty":false,"x":730,"y":120,"wires":[["c9c49a172b7e7e69","7dfd95147b1248b2"]]},{"id":"c9c49a172b7e7e69","type":"debug","z":"9078715602b83838","name":"debug 419","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":120,"wires":[]},{"id":"7dfd95147b1248b2","type":"debug","z":"9078715602b83838","name":"debug 420","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.result","targetType":"msg","statusVal":"","statusType":"auto","x":950,"y":180,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [27 January 2024 15:16 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/33 "2024-01-27T15:16:54Z")

</div>

Thanks, I'll go and invest in some bulbs 😃

---

<div class="post-metadata">

**Author:** ![PdeJ](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@PdeJ](https://discourse.nodered.org/u/PdeJ)\
**Post date:** [29 January 2024 01:19 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/34 "2024-01-29T01:19:46Z")

</div>

Just to reiterate what has been said elsewhere in this topic for the benefit of any one else reading it, the WiZ app has to be used to initially set up the light on my Wifi (see [https://www.youtube.com/watch?v=5zze5D2iato](https://www.youtube.com/watch?v=5zze5D2iato)). Alexa Integration is possible through the WiZ app, though somewhat obfuscated, especially with most of the readily accessible info online referring to how to do it using a previous version of the App. Just look for the button labelled Integrations in the Settings of the Wiz App! They do play nicely with Node Red. As cymplecy said, you can download the WiZ app for set up but you don't have to set up an account.

---

<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:** [29 March 2024 01:20 UTC](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009/35 "2024-03-29T01:20:17Z")

</div>

Closed on 29 March 2024 01:20 UTC

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

[Previous page](https://discourse.nodered.org/t/local-control-of-home-devices-wiz/83009.md?page=1)
