You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import tinytuya
d = tinytuya.OutletDevice('DEVICEID', 'DEVICEIP', 'DEVICEKEY')
d.set_version(3.3)
d.set_socketPersistent(True)
print(" > Send Request for Status < ")
payload = d.generate_payload(tinytuya.DP_QUERY)
d.send(payload)
print(" > Begin Monitor Loop <")
while(True):
# See if any data is available
data = d.receive()
print('Received Payload: %r' % data)
# Send keyalive heartbeat
print(" > Send Heartbeat Ping < ")
payload = d.generate_payload(tinytuya.HEART_BEAT)
d.send(payload)
I receive data on changes made with the smartlife app.
Received Payload: {'Error': 'Unexpected Payload from Device', 'Err': '904', 'Payload': None}
Received Payload: None
Received Payload: None
Received Payload: {'dps': {'1': 'fwQAAgF/BgABAX8JAAEBfw8AAQF/FQACAX8XAAEBKBIAAQE='}, 't': 1726661921}
Received Payload: {'dps': {'1': 'fwQAAgF/BgABAX8JAAEBfw8AAQF/FQACAX8XAAEBKBIAAQE='}, 't': 1726661921}
Received Payload: {'dps': {'1': 'fwQAAgF/BgABAX8JAAEBfw8AAQF/FQACAX8XAAEBKBIAAQE='}, 't': 1726661921}
Received Payload: None
Received Payload: None
Received Payload: None
Received Payload: None
Is there any way to get the data to the status query?
Hi!
I have an odd issue. I am trying to modify a pet feeder and update the meal_plan. However there is no dps info with the status query.
However if I use the following
I receive data on changes made with the smartlife app.
Is there any way to get the data to the status query?
Here is the Data Model:
The text was updated successfully, but these errors were encountered: