本文整理汇总了Python中openzwave.network.ZWaveNetwork.remove_scene方法的典型用法代码示例。如果您正苦于以下问题:Python ZWaveNetwork.remove_scene方法的具体用法?Python ZWaveNetwork.remove_scene怎么用?Python ZWaveNetwork.remove_scene使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openzwave.network.ZWaveNetwork
的用法示例。
在下文中一共展示了ZWaveNetwork.remove_scene方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: quit
# 需要导入模块: from openzwave.network import ZWaveNetwork [as 别名]
# 或者: from openzwave.network.ZWaveNetwork import remove_scene [as 别名]
if not network.is_ready:
print "."
print "Can't start network! Look at the logs in OZW_Log.log"
quit(2)
print "------------------------------------------------------------"
print "Controller capabilities : %s" % network.controller.capabilities
print "Controller node capabilities : %s" % network.controller.node.capabilities
print "Nodes in network : %s" % network.nodes_count
print "Driver statistics : %s" % network.controller.stats
print "------------------------------------------------------------"
print
print "------------------------------------------------------------"
print "Remove scene 3 (bad scene) "
print "------------------------------------------------------------"
network.remove_scene(3)
print
print "------------------------------------------------------------"
print "Scene 3 removed "
print "------------------------------------------------------------"
print "Driver statistics : %s" % network.controller.stats
print "------------------------------------------------------------"
for node in network.nodes:
print
print "------------------------------------------------------------"
print "%s - Name : %s" % (network.nodes[node].node_id,network.nodes[node].name)
print "%s - Manufacturer name / id : %s / %s" % (network.nodes[node].node_id,network.nodes[node].manufacturer_name, network.nodes[node].manufacturer_id)
print "%s - Product name / id / type : %s / %s / %s" % (network.nodes[node].node_id,network.nodes[node].product_name, network.nodes[node].product_id, network.nodes[node].product_type)
print "%s - Version : %s" % (network.nodes[node].node_id, network.nodes[node].version)