diff --git a/test/fixtures/proto2/hello.json b/test/fixtures/proto2/hello.json index 3235c0a..4e29476 100644 --- a/test/fixtures/proto2/hello.json +++ b/test/fixtures/proto2/hello.json @@ -3,6 +3,6 @@ "t": 1, "d": { "fw": "v3.0.14", - "sh": "8198c564" + "sh": "0fa739cc" } } \ No newline at end of file diff --git a/test/fixtures/proto2/schema.json b/test/fixtures/proto2/schema.json index 86a3c0f..0205880 100644 --- a/test/fixtures/proto2/schema.json +++ b/test/fixtures/proto2/schema.json @@ -1,5 +1,5 @@ { - "hash": "8198c564", + "hash": "0fa739cc", "types": { "1": "hello", "2": "reply", @@ -8,6 +8,16 @@ "5": "syncEnd", "6": "subscribe", "7": "unsubscribe", + "16": "shadeCommand", + "17": "groupCommand", + "18": "tiltCommand", + "19": "repeatCommand", + "20": "setPositions", + "21": "setSensor", + "22": "setMyPosition", + "23": "unpairShade", + "24": "setRollingCode", + "25": "sendRemoteCommand", "128": "shadeState", "129": "shade", "130": "shadeRemoved", @@ -19,7 +29,7 @@ "136": "roomOrder", "137": "shadeOrder", "138": "groupOrder", - "139": "shadeCommand", + "139": "shadeCommanded", "140": "memory", "141": "wifi", "142": "ethernet", @@ -333,6 +343,11 @@ "kind": "i", "default": 0 }, + "re": { + "name": "repeat", + "kind": "i", + "default": 0 + }, "rp": { "name": "repeats", "kind": "i", @@ -383,6 +398,11 @@ "kind": "b", "default": 0 }, + "sn": { + "name": "sunny", + "kind": "b", + "default": 0 + }, "so": { "name": "source", "kind": "s", @@ -453,6 +473,11 @@ "kind": "i", "default": 0 }, + "wn": { + "name": "windy", + "kind": "b", + "default": 0 + }, "x": { "name": "desc", "kind": "s", diff --git a/test/fixtures/proto2/sync.json b/test/fixtures/proto2/sync.json index 64cb1a6..e7f8da9 100644 --- a/test/fixtures/proto2/sync.json +++ b/test/fixtures/proto2/sync.json @@ -32,6 +32,46 @@ 7, "unsubscribe" ], + [ + 16, + "shadeCommand" + ], + [ + 17, + "groupCommand" + ], + [ + 18, + "tiltCommand" + ], + [ + 19, + "repeatCommand" + ], + [ + 20, + "setPositions" + ], + [ + 21, + "setSensor" + ], + [ + 22, + "setMyPosition" + ], + [ + 23, + "unpairShade" + ], + [ + 24, + "setRollingCode" + ], + [ + 25, + "sendRemoteCommand" + ], [ 128, "shadeState" @@ -78,7 +118,7 @@ ], [ 139, - "shadeCommand" + "shadeCommanded" ], [ 140, @@ -454,6 +494,24 @@ "i", 0 ], + [ + "re", + "repeat", + "i", + 0 + ], + [ + "sn", + "sunny", + "b", + 0 + ], + [ + "wn", + "windy", + "b", + 0 + ], [ "xr", "maxRooms", @@ -845,9 +903,19 @@ "c": 1048614 } ] - }, + } + ] + } + }, + { + "v": 2, + "t": 4, + "d": { + "S": [ { "s": 6, + "p": 100, + "t": 100, "c": 1048615, "n": "name 40", "a": 1048617, @@ -895,15 +963,7 @@ "c": 1048628 } ] - } - ] - } - }, - { - "v": 2, - "t": 4, - "d": { - "S": [ + }, { "s": 8, "c": 1048629, @@ -1020,15 +1080,13 @@ } ], "Z": { - "fr": 94956, - "mx": 53236, - "mn": 45904, - "to": 266884, - "up": 672549, - "lp": 998, - "lx": 13409, + "fr": 106640, + "mx": 49140, + "mn": 61988, + "to": 266820, + "up": 29406, "sd": "ssid 80", - "sg": -68, + "sg": -69, "ch": 6 } }