This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These functions create Actions, Events, and Parameters based the provided | |
# name and metadata. | |
def create_local_event(name, metadata=None) | |
def create_local_action(name, handler, metadata=None) | |
def create_remote_action(name, metadata=None, suggestedNode=None, suggestedAction=None) | |
def create_remote_event(name, handler, metadata=None, suggestedNode=None, suggestedEvent=None) | |
def Parameter(schemaDictOrJSONorTitle = None) | |
# These functions look for existing Actions, Events, and Parameters based on a | |
# string name. They return None if the Action/Event/Parameter could not be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node 1 Management | Node 2 TV | Node 3 DVD | |
---|---|---|---|
Local Action: TurnOn | Local Action: TurnOn | Local Action: TurnOn | |
Remote Action: Node2TV: TurnOn | Local Event: TvStatus | Local Event: DvdStatus | |
Remote Action: Node3DVD: TurnOn |