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
def TurnOn(arg = None): | |
print("Turning Tv and DVD On") | |
lookup_remote_action("Node2TvTurnOn").call() | |
lookup_remote_action("Node3DvdTurnOn").call() | |
def UpdateStatus(message): | |
print('Management Status: Status requested') | |
tvMessage = lookup_remote_event("TvStatus").getArg().get('message') | |
dvdMessage = lookup_remote_event("DvdStatus").getArg().get('message') | |
aggregateMessage = "TvStatus: " + tvMessage + ' - ' + "DvdStatus: " + dvdMessage |
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
# Only required for placeholder status function | |
import random | |
def TurnOn(arg = None): | |
print("Turning Dvd On") | |
print("Turning Dvd On function not yet implemented. Doing nothing...") | |
UpdateStatus(); | |
def UpdateStatus(arg = None): | |
print('Dvd Status: Status requested') |
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
# Only required for placeholder status function | |
import random | |
def TurnOn(arg = None): | |
print("Turning Tv On") | |
print("Turning Tv On function not yet implemented. Doing nothing...") | |
UpdateStatus(); | |
def UpdateStatus(arg = None): | |
print('TV Status: Status requested') |
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 | |
Local Event: Node2TvTurnOn | Remote Event: Node1Management: Node2TvTurnOn | Remote Event: Node1Management: Node3DvdTurnOn | |
Local Event: Node3DvdTurnOn | Local Event: TvStatus | Local Event: DvdStatus | |
Local Event: ManagementStatus | |||
Local Event: TvStatus | |||
Local Event: DvdStatus |