Comments (8)
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.
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.
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.
Pushed the changes,
- ON / OFF / Toggle Status
- use the config page and select Home Assistant ( setoptions19) will send the mqtt in lowercase
- 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.
The light still appears to be toggling when passing:
root@aml:# mosquitto_pub -h 127.0.0.1 -t cmnd/bedroomlight/power1 -m OFF# mosquitto_pub -h 127.0.0.1 -t cmnd/bedroomlight/power1 -m OFF
root@aml:
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.
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.
Did you ever look into devices turning off and on when submitting just the power off?
from virtual-tasmota-for-tuya-api-devices.
@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)
- SetOption HOT 1
- MQTT publishing HOT 6
- rs file missing? HOT 12
- Complete Noob, need help! HOT 4
- using an existing MQTT server HOT 6
- TypeError: Cannot read property '2' of undefined HOT 2
- Images not loading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-tasmota-for-tuya-api-devices.