Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.85 KB | None | 0 0
  1. {
  2.   "name": "Lightswitch",
  3.   "version": "1.0",
  4.   "backgroundImage": "background.png",
  5.   "types": {
  6.     "lamp": {
  7.       "states": {
  8.         "on": {
  9.           "image": "light_on.png"
  10.         },
  11.         "off": {
  12.           "image": "light_off.png"
  13.         }
  14.       }
  15.     },
  16.     "switch": {
  17.       "states": {
  18.         "up": {
  19.           "image": "switch_down.png"
  20.         },
  21.         "down": {
  22.           "image": "switch_up.png"
  23.         }
  24.       }
  25.     }
  26.   },
  27.   "items": {
  28.     "LeftSwitch": {
  29.       "x": "172px",
  30.       "y": "65px",
  31.       "width": "78px",
  32.       "height": "56px",
  33.       "type": "switch",
  34.       "defaultState": "up"
  35.     },
  36.     "RightSwitch": {
  37.       "x": "423px",
  38.       "y": "64px",
  39.       "width": "78px",
  40.       "height": "56px",
  41.       "type": "switch",
  42.       "rotation": 180,
  43.       "defaultState": "down"
  44.     },
  45.     "Lamp": {
  46.       "x": "617px",
  47.       "y": "53px",
  48.       "width": "80px",
  49.       "height": "80px",
  50.       "type": "lamp",
  51.       "defaultState": "on"
  52.     }
  53.   },
  54.   "transitions": {
  55.     "Off 1": {
  56.       "LeftSwitch": "up",
  57.       "RightSwitch": "up",
  58.       "Lamp": "off"
  59.     },
  60.     "Off 2": {
  61.       "LeftSwitch": "down",
  62.       "RightSwitch": "down",
  63.       "Lamp": "off"
  64.     },
  65.     "On 1": {
  66.       "LeftSwitch": "up",
  67.       "RightSwitch": "down",
  68.       "Lamp": "on"
  69.     },
  70.     "On 2": {
  71.       "LeftSwitch": "down",
  72.       "RightSwitch": "up",
  73.       "Lamp": "on"
  74.     }
  75.   },
  76.   "sequences": {
  77.     "All": {
  78.       "steps": {
  79.         "Off 1": {
  80.           "transition": "Off 1",
  81.           "duration": 1
  82.         },
  83.         "On 1": {
  84.           "transition": "On 1",
  85.           "duration": 1
  86.         },
  87.         "Off 2": {
  88.           "transition": "Off 2",
  89.           "duration": 1
  90.         },
  91.         "On 2": {
  92.           "transition": "On 2",
  93.           "duration": 1
  94.         }
  95.       }
  96.     }
  97.   }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement