Replies: 2 comments 8 replies
-
Hello @Jhonazo thanks for reaching out. It is possible to track those static states you can do this quite easily if you use the python version of the entry.tp where the data are stored in the python dictionary format. Then in your main program you can get all the states and update data as you receive. So I don't think there's a need for the sdk itself to do all that so I believe it's the developers job to do that. But again we do have the python dictionary entry. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/KillerBOSS2019/TouchPortal-API/blob/main/examples/plugin_example.py You can look at that on how you can store entry.tp data inside python itself. Then you can access all the static states. If you have any questions feel free to ask! |
Beta Was this translation helpful? Give feedback.
-
Hi killerboss, great SDK, thanks!
I note that it is not possible to get the plugin static states. Of course, I am aware of Client.getStatelist(), but this gives you only the last updated states, so it is not very useful. My question is: can you make a function to get all the states of the plugin, or is it responsibility of coder to keep a copy of all states and update them appropiately?
I wrote a script that handles toggle buttons, I am using plugin states, not button states, and I am using the techique of tracking the state values by myself, but this cumbersome and error prone, so, if your SDK is tracking the state values, it will be very helpful if you expose these values in your API.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions