thirug010 / Virtual-Tasmota-for-Tuya-api-devices

New Tuya firmware (1.0.7, 2.0, 3.3..) updates disable the OTA Flashing options at the moment, This feature allows you to use the non flashed Tuya devices as tasmota device along with tasmota flashed devices, most of the tasmota features is virtually available and it can be expanded.
MIT License
16 stars 0 forks source link

MQTT publishing #2

Closed wlatic closed 4 years ago

wlatic commented 5 years ago

Hello,

To confirm do these devices output LWT?

Also when i've tried the default "cmnd/device/POWER1" on command its not worked, do you have another way of this being done?

The instructions I've been using in Home Assistant are:

switch:

wlatic commented 4 years ago

@thirug010 checking to see if this should be working or not.

thirug010 commented 4 years ago

can you send me the device config page screen shot

thirug010 commented 4 years ago

cmnd/device/POWER1 --> in this device should be the node id, Please make sure it is nodeId

wlatic commented 4 years ago

image

When i toggle via Virtual Tasmota the switch responses with: stat/bedroomlight/RESULT {"POWER1" : "ON"} stat/bedroomlight/POWER1 ON

I can see MQTT is sending: cmnd/bedroomlight/POWER1 ON

However I dont see this come up in the Debug Console within Virtual Tasmota, guessing it could be a username / pass mismatch or something.

wlatic commented 4 years ago

@thirug010 its ok has to be on the Home Assistant end.

Did some custom control via command line and its working as expected.

thirug010 commented 4 years ago

I have uploaded the basic mqtt client (BasciMqttClient.js) use it or use ssh mqtt command to check if the message is received

thanks thiru