Coder Social home page Coder Social logo

Comments (8)

thirug010 avatar thirug010 commented on August 28, 2024

I will have the option for case sensitive, as well working on the SetOption19 will post the update ASAP

thanks
Thiru

from virtual-tasmota-for-tuya-api-devices.

wlatic avatar wlatic commented on August 28, 2024

Really good work on this. Got the Home assistant config ready if you wanted to publish to the wiki.

The only issue I can really see now is:

It also appears that currently power1 ON toggles the light, just as power1 OFF does. This means you can turn off the light (if it is on) using power1 ON.

from virtual-tasmota-for-tuya-api-devices.

thirug010 avatar thirug010 commented on August 28, 2024

UPPER is to support the Tasmota MQTT setup working to support with and without case sensitive, Yes the it always toggle the status, I will post the update asap,

Please share or submit pull request on the Wiki for HA

Thanks

from virtual-tasmota-for-tuya-api-devices.

thirug010 avatar thirug010 commented on August 28, 2024

Pushed the changes,

  1. ON / OFF / Toggle Status
  2. use the config page and select Home Assistant ( setoptions19) will send the mqtt in lowercase
  3. later will enhance the same option to publish HA discovery topic

Check and let me know, any issue

Thanks
Thiru

from virtual-tasmota-for-tuya-api-devices.

wlatic avatar wlatic commented on August 28, 2024

The light still appears to be toggling when passing:

root@aml:# mosquitto_pub -h 127.0.0.1 -t cmnd/bedroomlight/power1 -m OFF
root@aml:
# mosquitto_pub -h 127.0.0.1 -t cmnd/bedroomlight/power1 -m OFF

Will check into the setoptions19 and autodiscovery by home assistant later tonight. Again great work with this, made it so much easier to do localtuya!

from virtual-tasmota-for-tuya-api-devices.

wlatic avatar wlatic commented on August 28, 2024

Full run of the command and the output in debug console:
command issued:
mosquitto_pub -h 127.0.0.1 -t cmnd/bedroomlight/power1 -m OFF
Light status currently on.

Jun-11-2019 8:36:22 AM Mqtt message device ID 1
Jun-11-2019 8:36:22 AM Utility.updateDevStatus --> setData: : {"multiple":true,"data":{"1":false}}
Jun-11-2019 8:36:23 AM Data from device:: {"devId":"22025072b4e62d617dbf","dps":{"1":false},"t":1562808981}
Jun-11-2019 8:36:23 AM called processData: for bedroomlight: {"devId":"22025072b4e62d617dbf","dps":{"1":false},"t":1562808981}
Jun-11-2019 8:36:23 AM Publish Mqtt:: {"type":"Result","value":"{"power1" : "OFF"}","isHa":true,"nodeId":"bedroomlight","param":""}
Jun-11-2019 8:36:23 AM Publish Mqtt:: {"type":"Power","value":"OFF","isHa":true,"nodeId":"bedroomlight","param":"1"}

To me this means your Virtual Tasmota isnt at fault but the tuyapi itself.

from virtual-tasmota-for-tuya-api-devices.

wlatic avatar wlatic commented on August 28, 2024

Did you ever look into devices turning off and on when submitting just the power off?

from virtual-tasmota-for-tuya-api-devices.

thirug010 avatar thirug010 commented on August 28, 2024

@wlatic,
Yes now the latest code has setoption 19 to send the mqtt in lowercase

from virtual-tasmota-for-tuya-api-devices.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.