Skip to content

Backup and restore Philips Hue bridge configuration in raw JSON

License

Notifications You must be signed in to change notification settings

kristian-mi/hue-bridge-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hue-bridge-backup

☠ This package is no longer maintained ☠

Backup and restore Philips Hue bridge configuration in raw JSON for easy editing.

Motivation

I have a number of complex Labs configured and I was looking for a way to backup (and modify?) and restore configuration on my Hue Bridge. The Hue app doesn't offer any backup options, but does provide a way to wipe the current configuration and automatically restore lights and groups.

Installation

npm install @klutchell/hue-bridge-backup

Usage

$ index.js --help

Usage: index.js <cmd> [options]

Commands:
  index.js backup   Backup data to a local directory
  index.js restore  Restore data from a local directory

Options:
  -c, --config-file  Path to JSON config file
  -b, --bridge-ip    Hue bridge address:port                 [string] [required]
  -u, --bridge-user  Hue bridge user                         [string] [required]
  -d, --backup-dir   Path to Hue backup directory                       [string]
  -e, --endpoints    Hue endpoints list
   [array] [required] [choices: "config", "groups", "lights", "rules", "scenes",
               "schedules", "sensors"] [default: ["rules","schedules","scenes"]]
  -h, --help         Show help                                         [boolean]
  -v, --version      Show version number                               [boolean]

Examples:
  index.js backup -b "192.168.86.131" -u <uuid> -d ./my-backup -e rules scenes
  index.js restore -d ./my-backup

Issues

It seems that the only way to do a restore, is to:

  1. reset your old bridge (and all of the lights and accessories connected to it)
  2. add your lights (maximum 10 at a time) to the new bridge
  3. attempt to run the restore command

See klutchell#2

Tests

Build Status Coverage Status

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Author

Kyle Harding [email protected]

Acknowledgments

tbd

References

License

This project is licensed under MIT

About

Backup and restore Philips Hue bridge configuration in raw JSON

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%