Code Monkey home page Code Monkey logo

Comments (7)

DaveMDS avatar DaveMDS commented on May 24, 2024

Hi,
yes, CMD is the tasmota command and is the tasmota param...
so just send the string "BlinkCount 12" or "BlinkTime 3" with the topic "command"
or a list to send both at once: ["BlinkCount 12", "BlinkTime 3"]

I'm a bit busy with other stuff right now, it should be great if you could contribute to docs improvement with a pull request ;)

Let me know if you need more help

Note that you need the git version to send raw commands, as stated in the CHANGELOG file

from node-red-contrib-tasmota.

DaveMDS avatar DaveMDS commented on May 24, 2024

Btw, I just released v0.9.4, that include raw tasmota commands, so you just need to update the node from node-red

from node-red-contrib-tasmota.

brjhaverkamp avatar brjhaverkamp commented on May 24, 2024

Hi DaveMS,

I upgraded to v0.9.4. So I am now actually trying the command list out.
But still have not been able to get it going.
Even a single command is not working yet.
In an inject node, I filled in "BlinkTime 3" as payload and command as topic
but there is no output, not even on the debug console.
What am I overlooking?

I am able to send an on, off and toggle command via the tamota-switch node. So that one is working.

Btw, the plan is indeed to help some with the documentation, as soon as I have figured out how this works:-)

from node-red-contrib-tasmota.

DaveMDS avatar DaveMDS commented on May 24, 2024

Hi,
look at the console in your tasmota web interface, you should see all the received commands there.

"BlinkTime 3" just set the time of the blinks, it does not actually make the light blink.
to start the blinking you must send "Power blink" (always on the "command" topic)

This one works for me:
blink
The first 2 inject nodes just change the tasmota configuration, while the last one actually start the blinks

from node-red-contrib-tasmota.

brjhaverkamp avatar brjhaverkamp commented on May 24, 2024

Ha, thanks for the screenshot. From the titles, I noticed you are lacking the quotes. So if I put in
BlinkCount 3
instead of "BlinkCount 3" it is working.
So the individual commands are now in order! thanks.
But I am still struggling with the right syntax to input a series of commands: In my case I indeed need something like ["BlinkCount 12", "BlinkTime 3", "Power Blink"] as the payload.

But if I include your example from your earlier mail ["BlinkCount 12", "BlinkTime 3"], I get an "unknown command" in the debug console. What is the right format?

Attached a screenshot from my side:

Blink

from node-red-contrib-tasmota.

DaveMDS avatar DaveMDS commented on May 24, 2024

You are quite there :)
you must send a JSON list, not a string, just set the payload type to JSON instead of string.
blink2
This will start 5 blinks

from node-red-contrib-tasmota.

brjhaverkamp avatar brjhaverkamp commented on May 24, 2024

That was the trick indeed! Thanks. My garden pump is now "chiming" the hour:-)
I created a pull request with an update of the documentation. Let me know what you think.

Thanks for the help and the great work.

from node-red-contrib-tasmota.

Related Issues (20)

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.