{"_id":"@chanconrad/homebridge-wiz-lan","name":"@chanconrad/homebridge-wiz-lan","dist-tags":{"latest":"3.2.8"},"versions":{"3.2.8":{"name":"@chanconrad/homebridge-wiz-lan","version":"3.2.8","description":"A homebridge plugin to control Wiz Lights","main":"dist/index.js","keywords":["homebridge-plugin"],"scripts":{"clean":"rimraf ./dist","build":"rimraf ./dist && tsc","prepublishOnly":"npm run build","postpublish":"npm run clean","watch":"npm run build && npm link && nodemon","test":"echo \"Error: no test specified\" && exit 1"},"engines":{"node":">=0.12.0","homebridge":">=1.3.0"},"author":{"name":"Kevin Pei","email":"hello@kevinpei.com"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/kpsuperplane/homebridge-wiz-lan.git"},"devDependencies":{"@types/jwt-decode":"^2.2.1","@types/node":"^14.14.6","homebridge":"^1.3.1","nodemon":"^2.0.6","rimraf":"^3.0.2","ts-node":"^9.0.0","typescript":"^4.0.5"},"bugs":{"url":"https://github.com/kpsuperplane/homebridge-wiz-lan/issues"},"homepage":"https://github.com/kpsuperplane/homebridge-wiz-lan#readme","dependencies":{"getmac":"^5.17.0","internal-ip":"^6.2.0"},"gitHead":"83f39422fe886b20aae82e34f436cb78ad7eed3b","_id":"@chanconrad/homebridge-wiz-lan@3.2.8","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eMzJxDj4KFeuZCAUmwobtMtgVskGxOS08aN3TIB93BMvljOhkce63evsDeYDH0a1QUZ98RxcThf8YTbPpAxt4g==","shasum":"32e8b0221486da6402e88f20b91159b2092b482e","tarball":"https://registry.npmjs.org/@chanconrad/homebridge-wiz-lan/-/homebridge-wiz-lan-3.2.8.tgz","fileCount":77,"unpackedSize":178489,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmWhKlUCoBKUIu+JXW7F5hW4NVPhkhmjbG/NeXbT4mGgIhAIMcJrTww8MtHqzBWhksy9o+b/nXmttN0+eKLA1G3uIo"}]},"_npmUser":{"name":"chanconrad","email":"conradchan@hotmail.com.au"},"directories":{},"maintainers":[{"name":"chanconrad","email":"conradchan@hotmail.com.au"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-wiz-lan_3.2.8_1695188034213_0.24759648172441606"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-20T05:33:54.004Z","3.2.8":"2023-09-20T05:33:54.421Z","modified":"2023-09-20T05:33:54.772Z"},"maintainers":[{"name":"chanconrad","email":"conradchan@hotmail.com.au"}],"description":"A homebridge plugin to control Wiz Lights","homepage":"https://github.com/kpsuperplane/homebridge-wiz-lan#readme","keywords":["homebridge-plugin"],"repository":{"type":"git","url":"git+https://github.com/kpsuperplane/homebridge-wiz-lan.git"},"author":{"name":"Kevin Pei","email":"hello@kevinpei.com"},"bugs":{"url":"https://github.com/kpsuperplane/homebridge-wiz-lan/issues"},"license":"Apache-2.0","readme":"# homebridge-wiz-lan\nBased off of kpsuperplane/homebridge-iotas\n\n## Currently supports\n- Lightbulbs (RGB, Color Temp, and Single Color) (tested with Wiz 100W Color & Wiz 30W Filaments)\n- Wiz Plugs/Outlets (ESP10_SOCKET_06, ESP25_SOCKET_01, ESP20_DHRGB_01)\n\n# Installation\n\nMake sure your bulbs are already set up via the Wiz app and you have \"Allow Local Communication\" set to ON in your settings.\n\n1. Install homebridge using: `npm install -g homebridge`\n2. Install this plugin using: `npm install -g homebridge-wiz-lan`\n3. Update your configuration file. See the sample below.\n\n# Configuration\nSimple Configuration:\n\n```javascript\n{\n    \"platform\": \"WizSmarthome\",\n    \"name\": \"WizSmarthome\",\n}\n```\n\nFull configuration options:\n\n```javascript\n{\n    \"platform\": \"WizSmarthome\",\n    \"name\": \"Wiz\",\n\n    // [Optional] Port for bulbs to connect to your server\n    // Default: 38900\n    \"port\": 38900,\n\n    // [Optional] Enable scenes support for your bulbs\n    // Default: false\n    \"enableScenes\": false,\n\n    // [Optional] Lights turn on with the same settings they had when turned off (light configs in HomeKit are ignored).\n    // Default: false\n    \"lastStatus\": false,\n\n    // [Optional] UDP Broadcast address for bulb discovery\n    // Default: 255.255.255.255\n    \"broadcast\": \"255.255.255.255\",\n\n    // [Optional] Your server's IP address\n    // Default: Autodiscovered\n    \"address\": \"192.168.0.1\",\n\n    // [Optional] Manual list of IP addresses of bulbs\n    // Useful if UDP broadcast doesn't work for some reason\n    // Default: None\n    \"devices\": [\n      { \"host\": \"192.168.0.2\" },\n      { \"host\": \"192.168.0.3\" },\n      { \"host\": \"192.168.0.4\" },\n      // ...\n    ],\n\n    // [Optional] Refresh/ping every accessory to get their latest state on an interval. Specify in seconds, 0 = off\n    // Default: 0\n    \"refreshInterval\": 60,\n  }\n```\n\n## Some Notes\n\n### Color\n\nThe Wiz bulbs strongly distinguish between RGB color modes and Kelvin color modes, **the latter being significantly brighter**. Unfortunately, HomeKit is not very good at handling both at the same time, [yielding weird errors if you try to add both characteristics](https://github.com/home-assistant/home-assistant/pull/30756).\n\nLuckily, even if we only enable the color mode, we still get a nice temperature picker. Problem is, the color temperature is given in standard HSV. As such, this app will try to guess which one to best use given a color, and you will notice some significant brightness variance switching between a \"temp\" hue and a \"color\" hue.\n\n**In particular, since the Wiz bulbs only support up to 6500K, this means that only the top-ish half of the temperature picker is actually bright**\n\n### Last Status (config setting)\nIf a \"rhythm\" is selected in the Wiz app and `lastStatus` is set to `true`, the lights will always turn on to the rhythm. When rhythms are disabled, lights turn on to whatever setting they had when last turned off.\n\n# Development\nIdeas from http://blog.dammitly.net/2019/10/cheap-hackable-wifi-light-bulbs-or-iot.html?m=1\n\n## Credits\nThanks to:\n#### [@dotkrnl](https://github.com/dotkrnl)\n[#7 Remove obsolete/invalid parameters from setPilot to fix](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/7)\n\n#### [@victori](https://github.com/victori)\n[#16 Support costco wiz lights that behave differently from philips wiz](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/16)\n\n#### [@Supereg](https://github.com/supereg)\n[#25 Fix: getter for Name Characteristic returned object instead of the value](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/25)\n\n#### [@MoTechnicalities](https://github.com/motechnicalities)\n[#56 Update README.md](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/56)\n\n#### [@xmanu](https://github.com/xmanu)\n[#57 transform the received dimming value to also fit the 10 to 100 range](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/57)\n\n#### [@BMDan](https://github.com/bmdan)\n[#67 feat: Support durable custom names in config](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/67)\n\n#### [@krystofcelba](https://github.com/krystofcelba)\n[#74 feat: implement dynamic scenes selector](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/74)\n\n#### [@bwp91](https://github.com/bwp91)\n[#81 Add a config schema form](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/81)\n\n#### [@AndrewSverdrup](https://github.com/AndrewSverdrup)\n[#119 Add lastStatus setting so lights remember their setting when turned on](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/119)\n\n#### [@pyrliu](https://github.com/pyrliu)\n[#118 Added support for Wiz Smart Plug ESP25_SOCKET_01](https://github.com/kpsuperplane/homebridge-wiz-lan/pull/118)\n\n## Contributing\n\nMostly built for my own personal use, I'll probably reply to any created issues but probably will not actively support anything outside of the RGB bulbs. If you'd like to make a PR through, <3\n\nFurthermore, feel free to create and modify it on your own per MIT License.\n\n## How bulbs are discovered\n\nMake a UDP broadcast to port 38899 with the following content:\n\n```\n{\"method\":\"registration\",\"params\":{\"phoneMac\":\"<my_mac_address>\",\"register\":false,\"phoneIp\":\"<my_ip_address>\"}}\n```\n\nYou will get a response on port 38900 with the following content:\n\n```\n{\"method\":\"registration\",\"env\":\"pro\",\"result\":{\"mac\":\"<light_address>\",\"success\":true}}\n```\n\n# License\nSee LICENSE file\n","readmeFilename":"README.md"}