Welcome to TinyTuya Discussions! #77
Replies: 2 comments 4 replies
-
TinyTuya is only correctly reading the status of Tuya plug correctly on the first status read, subsequent reads are the same despite the plug status including current, voltage, & power changing. Output: Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32 ========= RESTART: C:/Users/Appa/Documents/Python/Local Tuya test 7.py ========= The simple program : 29/10/2022 DS Appears to be working in terms of correctly picking up current, voltage.and power when the program is first run. But it is holding those values withoutupdating them when they change!30/10/2022 DS Cleaned up from earlier test version.#*************************************************************************** Example Usage of TinyTuyaimport tinytuya #print("Before set debug") #*************************************** print("Before Set Version") #*************************** print(data_dict.get("dps","unknown")) #Get contents of parent "dps" return unknow if not found #******************************* Continuously read A,W,V#******************************* d.turn_on() d.turn_off() i +=1 print("After while loop") |
Beta Was this translation helpful? Give feedback.
-
Hello, I am working on a home integration of tuya devices . |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us how you use TinyTuya and you interest areas with home automation, etc.
Beta Was this translation helpful? Give feedback.
All reactions