Local control of home devices - Wiz

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

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

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.

:face_vomiting:

@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

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

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

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.

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

Cheerlights - Simplest via MQTT feed (IMHO) - Learn about CheerLights – CheerLights.

[{"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":""}]

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?

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 :slight_smile:

I'll also post my working NR flow

1 Like

Yep - works fine on Pi

[{"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":[]}]

Thanks, I'll go and invest in some bulbs :smiley:

1 Like

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). 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.

1 Like

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