Hi
i find way to have MQTT push when button push with firmware 5.0.5
Add doorbell to Tuya APP on iOS or android
first create account on
https://iot.tuya.com
After create Cloud Project
On your project add devices Link Tuya App
Use data center from your region
You must App Account with 1 device
After note Authorization Key
Access ID/Client ID and Access Secret/Client Secret
now install
https://github.com/jasonacox/tinytuya
and start
python -m tinytuya wizard
You must write
API Key it's Access ID/Client ID
Secret it's Access Secret/Client Secret
DeviceID. you find in app Tuya
Region eu for me
With that you can have key for your device id
[
{
"name": "Visiophone Wifi",
"key": "e177111111111",
"id": "bf5ad111111111"
}
]
Now install
https://github.com/TheAgentK/tuya-mqtt
setup config.json for mqtt setting
And with tinytuya you have create devices.json rename in devices.conf and put in folder tuya-mqtt
and start
DEBUG=tuya-mqtt:* ./tuya-mqtt.js
And after each button push you can see message like that
tuya-mqtt:state MQTT DPS JSON: tuya/visiophone_wifi/dps/state -> {"244":"0"} +67ms
tuya-mqtt:state MQTT DPS244: tuya/visiophone_wifi/dps/244/state -> 0 +1ms
tuya-mqtt:tuyapi Received JSON data from device bf5ada2f1c3c05e3cfi86t -> {"244":"0"} +16s
tuya-mqtt:state MQTT DPS JSON: tuya/visiophone_wifi/dps/state -> {"244":"0"} +16s
tuya-mqtt:state MQTT DPS244: tuya/visiophone_wifi/dps/244/state -> 0 +2ms
tuya-mqtt:tuyapi Received JSON data from device bf5ada2f1c3c05e3cfi86t -> {"244":"0"} +12s
tuya-mqtt:state MQTT DPS JSON: tuya/visiophone_wifi/dps/state -> {"244":"0"} +12s
tuya-mqtt:state MQTT DPS244: tuya/visiophone_wifi/dps/244/state -> 0 +1ms
{"244":"0"} is when button push