Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Inputs / Outputs available[ Read this before logging a new issue] -- Can't Turn on or off My Tuya Smart LED Plug #16

Open
yasurok opened this issue Oct 20, 2020 · 7 comments
Labels
documentation Improvements or additions to documentation

Comments

@yasurok
Copy link

yasurok commented Oct 20, 2020

First of all, thanks a billion for making this available for us. Its significance is even greater now that all TuyAPI-based custom nodes are not really usable any more because Tuya seems to have installed a new restriction on free developer accounts.

I have a Tuya's smart LED plug. I can turn on and off its LED using node-red-contrib-smartlifeair, which I think is fantastic. However, its "Device Node" does not give me a choice of controlling the power supply of the smart plug. Please see the screenshot below.

Input

Am I missing something? I was expecting an obvious "Power" entry, but perhaps I should use something else?

Please enlighten me. Thanks!

Yasuro

@razorRun
Copy link
Owner

razorRun commented Oct 20, 2020 via email

@razorRun
Copy link
Owner

razorRun commented Oct 20, 2020 via email

@yasurok
Copy link
Author

yasurok commented Oct 20, 2020

Thanks for the reply. I think it is indeed a very clever idea to make the LED switch and the power switch work in sync, and effectively control the power by way of the LED manipulation. I have put this to test, and it indeed works, except that I linked work_mode with power.

My SmartLife Air app reports my smart plug has the latest firmware (1.0.1). Are you implying there exists newer firmware that should allow me to directly turn on or off power? Are you aware of a Tuya smart plug that lets you do this?

If direct power control is not supported, you might want to mention that in the document, along with this brilliant workaround.

Thanks again.

Yasuro

@razorRun
Copy link
Owner

razorRun commented Oct 20, 2020 via email

@yasurok
Copy link
Author

yasurok commented Oct 21, 2020

I did create a brief writeup and described how I took advantage of your advice and implemented power turning on and off from Node-RED. There's a little problem, though --- I wrote it in Japanese. 😁 Another problem is that I wrote it for myself, so it is not intended as a guide.

I am a complete noob as to Node-RED and JavaScript. That's why my "code" literally looks like spaghetti. When I get reasonably versed in this, I will try to create a writeup in English.

While we're on this topic, may I ask you another question? You say the reason my Tuya smart plug does not expose a power-on/off interface through your node is that its manufacturer is using a non-standard use of the API. That may be so, but in that case, how is that I can turn on power or off using the SmartLife Air app?

@razorRun
Copy link
Owner

Well, that has a UI that can directly talk to it. Unfortunately, the general API does not have that luxury. So the way around is to tie up something with logic.

@razorRun razorRun added the documentation Improvements or additions to documentation label Oct 29, 2020
@razorRun razorRun reopened this Oct 29, 2020
@razorRun razorRun changed the title Can't Turn on or off My Tuya Smart LED Plug No Inputs / Outputs available[ Read this before logging a new issue] -- Can't Turn on or off My Tuya Smart LED Plug Mar 30, 2021
@DrDuk
Copy link

DrDuk commented Oct 4, 2021

It seems that it is no longer possible to add new devices and see the inputs/outputs. It may be a problem on the Smartlife Air side. The virtual id of the device is no longer being sent to Smartlife Air (only the MAC address). Therefore, I am limited to the devices that I have already added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants