razorRun / node-red-contrib-smartlifeair

Allow you to integrate any[almost] tuya, smart life supported devices to node-red. However, you will have to enrol these devices via Smart life air mobile app. https://www.smartlife.nz/smartlife-labs
https://roshan.digital/
13 stars 1 forks source link

No available inputs #3

Closed Andobi closed 4 years ago

Andobi commented 4 years ago

Managed to get the device to show up in node red. When adding the node, I see "No available inputs" in the dropdown boxes for both the input and output selections. So it seems I'm unable to do anything with it.

The device id shows up in the device dropdown as fed0189a574c5a47. I've set it up as a wifi dimmer switch in the smartlife air app, and the app controls it as expected. It's actually not that slow if it thinks it is in NZ instead of UK.

Andobi commented 4 years ago

Any update on this?

follower46 commented 4 years ago

I had this same problem today. I was able to get the inputs working again by removing and re-adding my credentials.

razor1331 commented 4 years ago

Sorry Guys I am bit packed these days. I will look into this on the weekend.

Cheers

Andobi commented 4 years ago

I had this same problem today. I was able to get the inputs working again by removing and re-adding my credentials.

This didn't work for me. Did you have to restart node red in between?

follower46 commented 4 years ago

No, I didn't have to restart the service. I did have to deploy between removing and readding.

Andobi commented 4 years ago

I decided to try adding a bulb to this app. Actually with the bulb a bunch of options popped up, so I guess it is not configured to work with my wall dimmer switch. Can this be added?

razorRun commented 4 years ago

Can you please try updating the firmware from smartlife air app ?

On Sun, 26 Apr 2020 at 3:23 AM, Andobi notifications@github.com wrote:

I decided to try adding a bulb to this app. Actually with the bulb a bunch of options popped up, so I guess it is not configured to work with my wall dimmer switch. Can this be added?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619395525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEHLB74LCAIJSPKMTTROL56ZANCNFSM4MGS2IVQ .

Andobi commented 4 years ago

No update available.

razorRun commented 4 years ago

Can you send me the device ID?

On Sun, 26 Apr 2020 at 8:15 AM, Andobi notifications@github.com wrote:

No update available.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619434697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EGK77GD5GC3YBJ2VQTRONAFTANCNFSM4MGS2IVQ .

Andobi commented 4 years ago

Can't seem to find a PM option, do you want this by email?

razorRun commented 4 years ago

Might as well.

On Sun, 26 Apr 2020 at 8:31 AM, Andobi notifications@github.com wrote:

Can't seem to find a PM option, do you want this by email?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619436710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EAPQK3WJMAOGTFMLADRONCC5ANCNFSM4MGS2IVQ .

Andobi commented 4 years ago

Can follow up here. Pressed button as requested.

razorRun commented 4 years ago

I have manually added the reference for now ebb*****, but usually virtual ID on the app should be same as the node red one.

You might have to close the nodered node to see it, can you check and let me know? ( Dont press the refresh button

On Sun, 26 Apr 2020 at 9:11 AM, Andobi notifications@github.com wrote:

Can follow up here. Pressed button as requested.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619441274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EGKWGYB63N5KUOEA73RONGZVANCNFSM4MGS2IVQ .

Andobi commented 4 years ago

I can see a third device there with inputs and outputs so I guess this has worked.

Can you explain what has happened here? I've tried to look through your code but it's pretty complicated without much Javascript knowledge so I haven't got a clue how it works.

razorRun commented 4 years ago

For some reason your device ebb5* can not be founded under your devices on your Smartlifeair account (rr@****m) it might have been a enrollment issue. Also I need to find some time to iorn out the bugs... At the moment I am fully packed.. But I will try to attend to these probably sometime next week

Cheers

On Sun, 26 Apr 2020 at 9:31 AM, Andobi notifications@github.com wrote:

I can see a third device there with inputs and outputs so I guess this has worked.

Can you explain what has happened here? I've tried to look through your code but it's pretty complicated without much Javascript knowledge so I haven't got a clue how it works.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619443452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEI2L2ZOGBKRBIUFWDRONJE3ANCNFSM4MGS2IVQ .

Andobi commented 4 years ago

That's great. It does appear I can control the device now. You could do with some more documentation, it took a little while to figure out what payload I should send.

I'd also appreciate an explanation of how this works. It sounds like you have set up your own cloud somehow.

Andobi commented 4 years ago

I've just tried to add a new node to another flow and the id you manually added has disappeared. Is there a way I can enrol the device again?

razorRun commented 4 years ago

Ll do. Love to get some help as well.

If you get a chance can you please do a short video/screen capture( maybe a gif) of the enrollment process from account creation to the getting devices to node red dropdown, will help a lot of people who are having issues following exact steps. I will link it to read me as well

Cheers

On Sun, 26 Apr 2020 at 9:41 AM, Andobi notifications@github.com wrote:

That's great. It does appear I can control the device now. You could do with some more documentation, it took a little while to figure out what payload I should send.

I'd also appreciate an explanation of how this works. It sounds like you have set up your own cloud somehow.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619444545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EB4BA3EF2WELAD7C6TRONKJVANCNFSM4MGS2IVQ .

razorRun commented 4 years ago

Might as well try to debug and fix the issue while I am online, can you remove that device and refresh the account.
And re add and let me know how it goes?

Also send me a console log of https://smartlife-air-plugins.smartlife.nz https://smartlife-air-plugins.smartlife.nz/

On Apr 26, 2020, at 09:48, Andobi notifications@github.com wrote:

I've just tried to add a new node to another flow and the id you manually added has disappeared. Is there a way I can enrol the device again?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619445214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEFDZLLHWBLC3OQ3XLRONLBHANCNFSM4MGS2IVQ.

Andobi commented 4 years ago

Apologies, a rare occurrence of my internet dropping out. Will look at this again tomorrow.

On 25 Apr 2020, at 23:01, RoshanM notifications@github.com wrote:

 Might as well try to debug and fix the issue while I am online, can you remove that device and refresh the account. And re add and let me know how it goes?

Also send me a console log of https://smartlife-air-plugins.smartlife.nz https://smartlife-air-plugins.smartlife.nz/

On Apr 26, 2020, at 09:48, Andobi notifications@github.com wrote:

I've just tried to add a new node to another flow and the id you manually added has disappeared. Is there a way I can enrol the device again?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/3#issuecomment-619445214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEFDZLLHWBLC3OQ3XLRONLBHANCNFSM4MGS2IVQ.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Andobi commented 4 years ago

Might as well try to debug and fix the issue while I am online, can you remove that device and refresh the account. And re add and let me know how it goes? Also send me a console log of https://smartlife-air-plugins.smartlife.nz https://smartlife-air-plugins.smartlife.nz/

I've followed these steps, seems we are back where we started. The device id showing in node red is not the same as the virtual id in the app. Looks like that virtual id is the same as before, starting ebb***.

Not sure what you mean by console log, the message in the blue box at the bottom reads (anonymised):

You have enrolled following devices =>>{ "fed": [culprit device], "607": [another device] }

razorRun commented 4 years ago

I will roll out an update to fix this issue