This commit is contained in:
2015-04-18 02:29:36 +02:00
parent c3bbf7252d
commit 0a4b602229
4 changed files with 138 additions and 7 deletions
+5 -5
View File
@@ -24,11 +24,11 @@ if __name__ == '__main__':
msg = DeviceCommand()
msg.seq = 1
msg.device_id = "huelight3"
msg.device_type = "hos/huelight"
msg.device_type = "hue/huelight"
msg.stamp = stamp
msg_body = dict()
msg_body["type"] = "hos/huelight/command"
msg_body["type"] = "hue/huelight/command"
msg_body["switch"] = dict()
msg_body["switch"]["type"] = "core/types/boolean/command"
@@ -45,15 +45,15 @@ if __name__ == '__main__':
msg_body["color"]["set"] = [1.0, 1.0]
msg_body["alert"] = dict()
msg_body["alert"]["type"] = "hos/huelight/command/alert"
msg_body["alert"]["type"] = "hue/huelight/command/alert"
msg_body["alert"]["set"] = "none"
msg_body["effect"] = dict()
msg_body["effect"]["type"] = "hos/huelight/command/effect"
msg_body["effect"]["type"] = "hue/huelight/command/effect"
msg_body["effect"]["set"] = "none"
msg_body["advproperties"] = dict()
msg_body["advproperties"]["type"] = "hos/huelight/command/advproperties"
msg_body["advproperties"]["type"] = "hue/huelight/command/advproperties"
msg_body["advproperties"]["transitiontime"] = 100
msg_schema = schemaProvider.getTypeSchema("hue/huelight/command")