Describe the bug
your description of using the "dps" topic does not work because the device does not respond to a dps/1 topic or any dps/index topic because the current state of tuya-mqtt.exe has the case statement falls thru if the command is neither "command" or "color". There is no case statement for "dps".
To Reproduce
Steps to reproduce the behavior:
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request:
tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/dps
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request:
tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/dps/7
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request:
tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/command/{"schema": true}
Expected behavior
I expect that the device would respond to the dps query and tell me the current state of all the dps
I expect that the device would respond to the dps query and tell me the current state of dps 7
I expected this query to fail but I would really like to see this query added to the command topic
Screenshots
If applicable, add screenshots to help explain your problem.
If you look at the DEBUG output you will see that I published to the dps topic
I also published to the dps/1 topic and got nothing back from the tuya device.
BUT if I published to the command topic with {"schema": true} , which uses ( the pull request #21 code), I do get a response back from the tuya device with all the dps values
screen shots:
output from mqtt.fx
DEBUG output from tuya-mqtt.exe
Desktop (please complete the following information):
OS: [e.g. iOS] Windows 10 Pro, Intel Core i3-2100 CPU @ 3.10GHz
Browser [e.g. chrome, safari] Chrome
Version [e.g. 22] Version 73.0.3683.103
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
I want a forced response from the device when I ask for a dps request. I know the device will respond after a command is given to change the state of the device. I want to see a response from the device even if the state of the device has NOT changed. That is why I would like to see {"schema": true} implemented as a command under the command TOPIC. {"schema": true} is the ONLY command in the TuyAPI that does not require the device to change its state to get a response from the device.
Describe the bug your description of using the "dps" topic does not work because the device does not respond to a dps/1 topic or any dps/index topic because the current state of tuya-mqtt.exe has the case statement falls thru if the command is neither "command" or "color". There is no case statement for "dps".
To Reproduce Steps to reproduce the behavior:
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request: tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/dps
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request: tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/dps/7
if one goes to MQTT and publishes to the following topic, the tuya device will just ignore the request: tuya/tuyaAPI-id/tuyaAPI-key/tuyaAPI-ip/command/{"schema": true}
Expected behavior
I expect that the device would respond to the dps query and tell me the current state of all the dps
I expect that the device would respond to the dps query and tell me the current state of dps 7
I expected this query to fail but I would really like to see this query added to the command topic
Screenshots If applicable, add screenshots to help explain your problem.
If you look at the DEBUG output you will see that I published to the dps topic
tuya/3543376268c63ae3f978/25f1f8c229dacaa6/192.168.0.38/dps
and got nothing back from the device.
I also published to the dps/1 topic and got nothing back from the tuya device.
BUT if I published to the command topic with {"schema": true} , which uses ( the pull request #21 code), I do get a response back from the tuya device with all the dps values
screen shots:
output from mqtt.fx
DEBUG output from tuya-mqtt.exe
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I want a forced response from the device when I ask for a dps request. I know the device will respond after a command is given to change the state of the device. I want to see a response from the device even if the state of the device has NOT changed. That is why I would like to see {"schema": true} implemented as a command under the command TOPIC. {"schema": true} is the ONLY command in the TuyAPI that does not require the device to change its state to get a response from the device.
21