|
|
|
@ -73,14 +73,8 @@ while 1 != 0:
|
|
|
|
|
#print(payload)
|
|
|
|
|
com.fancy_transmit(payload=payload, source_ep=packet['dest_ep'], dest_ep=packet['source_ep'],
|
|
|
|
|
cluster=packet['cluster'], profile=packet['profile'])
|
|
|
|
|
if command_name == "on":
|
|
|
|
|
ad4.value(1)
|
|
|
|
|
if command_name == "off":
|
|
|
|
|
ad4.value(0)
|
|
|
|
|
if command_name == "toggle":
|
|
|
|
|
ad4.value(1)
|
|
|
|
|
time.sleep(1)
|
|
|
|
|
ad4.value(0)
|
|
|
|
|
if command_name == "go_to_percent":
|
|
|
|
|
garage.command(seq,payload)
|
|
|
|
|
if packet['cluster']==5: #active endpoint request
|
|
|
|
|
print(bytes(packet['payload']))
|
|
|
|
|
b = bytearray(packet['payload'])
|
|
|
|
|