mycontroller-v1-legacy icon indicating copy to clipboard operation
mycontroller-v1-legacy copied to clipboard

[New Feature] Import/export for Rules/Timers/Groups/Operations

Open Fraid opened this issue 8 years ago • 0 comments

Is it possible to have an Import/Export mode for Rules/Timers/Groups/Operations, for easy configuration.

An option to import JSON file with all rules or groups like the following:

{
"Rules":[{"name":..},{"payload","1"},{"sensor_variable":...}...],
"Operations":[{"name":..},...],
...
}

MyController should handle whether resource is present or not.

I'm aware of "clone" feature, but this could be useful for people starting to configuring MyController with multiple devices to configure or has to change something. Like when you change a node, you'll end up with corrupted rule.

And actually I have to configure all lights (seven and more coming) and it's actually the same rule or group . Would be nice to just do a copy/paste and import back to MyController.

Example at the sleeping time I want light in room sun-red like color with a low brightness. Actually :

  1. Configure a group
  2. Configure 3 payloads (Status,RGB,Brightness) inside that group.
  3. Do the same thing with other light in the room.
  4. Configure the timer to active the group.
  5. Repeat process for other or other configuration (like another color on the morning)

With import/export mode:

  1. export current ressources (Rule/operation/...)
  2. Copy/paste some entry and change payload value.
  3. Import back and done.

I guess something like is implemented in MetricsCsvEngine.

Fraid avatar Jan 25 '17 03:01 Fraid