Skip to content

sandoche/smart-home-automations

Repository files navigation

Smart home script

MIT medium: sandoche Twitter: sandochee

Smart automation with hue and wiz bulbs, this contains a tiny vue app, a simple API for tuning on, off, dimming and resetting lights, and a cron job for making automations.

🏷️ Devices supported

  • Philips Hue
  • Wiz

⚡ Set up

pnpm install
pnpm setup:hue

# put the hue bridge user and client key in the .env file and fill the other variables

pnpm build
pnpm start

# open http://localhost:3000

⚙️ API

  • /lights/on - Turn on all lights
  • /lights/off - Turn off all lights
  • /lights/reset - Reset to default settings of the lights that are on
  • /lights/update/:brightness/:temperature/:color - Update the lights that are on with the given parameters

📝 Notes

  • Color changing is not implemented

📖 Documentation

⭐️ Show your support

Please ⭐️ this repository if this project helped you!

patreon.png

🍺 Buy me a beer

If you like this project, feel free to donate:

  • PayPal: https://www.paypal.me/kanbanote
  • Bitcoin: 19JiNZ1LkMaz57tewqJaTg2hQWH4RgW4Yp
  • Ethereum: 0xded81fa4624e05339924355fe3504ba9587d5419
  • Monero: 43jqzMquW2q989UKSrB2YbeffhmJhbYb2Yxu289bv7pLRh4xVgMKj5yTd52iL6x1dvCYs9ERg5biHYxMjGkpSTs6S2jMyJn

📄 License

MIT License

Copyright (c) Sandoche Adittane