Closed arrmo closed 3 years ago
The "get-states" functionality only works with friendly topics so you need to use a pre-defined device template or create a custom template for your device to use this. Then you would send the "get-states" message to the device's primary friendly command topic:
tuya/emfrontswitch/command
Unfortunately, many modern Tuya devices do not respond to any schema commands so I decided to always require a template vs having cases where it works and others where it does not.
That makes sense, thanks for the explanation! And yes, even just adding a "generic" device template (i.e. switch, for a energy monitoring capable switch) addresses it - it returns the full set of DPS data then. My apologies if I missed this in the documentation - still figuring this out.
Thanks again.
BTW, if you don't mind - is there a way to query the current subscriptions, and clear them? Just because as I have been messing with this (debugging), I likely have a bunch stacked up 😆.
Thanks!
Describe the bug\ First off - this may be me! Apologies if it is 😞.
I have tuya-mqtt up and running, it's working well overall. Thanks! My issue is when I send the command get-states, it doesn't seem to "trigger the device to send an immediate update of all known device DPS topics". Rather, I get an immediate reply, but it's empty.
To Reproduce\ Steps to reproduce the behavior:
Expected behavior\ Expecting to trigger the device to send current dps states / date.
Desktop (please complete the following information):\