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 devices found - For people in EU #2

Closed Andobi closed 4 years ago

Andobi commented 4 years ago

Hi there, I'd like to try out this module. I have enrolled a device to the smart life air app. However in smartlife-air-plugins I get "No devices found". During set up I selected my location as United Kingdom, I was wondering if I should have set this to New Zealand as this is a .nz website?

razorRun commented 4 years ago

Yes I think. Can you please try and let me know as well. I have not tested with non nz accounts

Cheers

On Mon, 13 Apr 2020 at 12:43 AM, Andobi notifications@github.com wrote:

Hi there, I'd like to try out this module. I have enrolled a device to the smart life air app. However in smartlife-air-plugins I get "No devices found". During set up I selected my location as United Kingdom, I was wondering if I should have set this to New Zealand as this is a .nz website?

— 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/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEE5VJGU7LPTCF3PC3RMGZQBANCNFSM4MGMZHEA .

Andobi commented 4 years ago

I'm actually not sure how to go about this now, but I'll try. Are you aware of versions for other locations? I tried .co.uk and .com but they don't exist.

razorRun commented 4 years ago

Sorry I meant to say the Tuya DB. At the time I wrote this plugin they had 4 dB locations. When you select the country it will select for you. When you create the account in smartlife air app, can you select your location as NZ and try?

Also please send me the devices ID and email. I will have a look in my end as well

Cheers

On Mon, 13 Apr 2020 at 10:21 AM, Andobi notifications@github.com wrote:

I'm actually not sure how to go about this now, but I'll try. Are you aware of versions for other locations? I tried .co.uk and .com but they don't exist.

— 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/2#issuecomment-612684902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EFD7Y2KDHIUFTPXGNDRMI5GFANCNFSM4MGMZHEA .

Andobi commented 4 years ago

Doing this with NZ account did get it to link up and the device shows in node red. Can you please add this to your readme for others? I now need to figure out the rest of it, right now there are no inputs and outputs showing. I'll close this and open another issue if needed.

YanivYon commented 4 years ago

hi, i tried with Austria account after i found this thread i created a new account in New Zealand i still can't find my devices

Dane809 commented 4 years ago

can´t find my devices too

razorRun commented 4 years ago

Did you operate the device from the app , because you need to operate at least once in order to pop up?

Maybe send your mails ?

On Sun, 21 Jun 2020 at 6:01 AM, Daniel Berzl notifications@github.com wrote:

can´t find my devices too

— 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/2#issuecomment-647027592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EAID67MCFJY4JIUXWDRXT2O7ANCNFSM4MGMZHEA .

crale commented 4 years ago

I also get no devices found... and yes, I have operated the device at least once. My location is Costa Rica.

It seems like this has been going on for some time now. Any resolution in sight???

razorRun commented 4 years ago

I have developed the solution for this. Should be able to release next couple of days. But you should see your devices when you register as a New Zealand Account

On Thu, 16 Jul 2020 at 10:51 AM, crale notifications@github.com wrote:

I also get no devices found... and yes, I have operated the device at least once. My location is Costa Rica.

It seems like this has been going on for some time now. Any resolution in sight???

— 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/2#issuecomment-659054762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72ECHYYMT3XF3SJ2SYPDR3YXHFANCNFSM4MGMZHEA .

crale commented 4 years ago

Thanks. I had to delete my account and create another one. I had to set the location under home with google maps and that worked.

Now, how can I turn on my bulb? I don’t find any examples anywhere.

This is what I have tried, but the lamp never comes on:

Sorry for the bother but I hope to get this working, eventually with Alexa.

Thanks, Mike

On Jul 15, 2020, at 16:57, RoshanM notifications@github.com wrote:

I have developed the solution for this. But you should see your devices when you register as a New Zealand Account

On Thu, 16 Jul 2020 at 10:51 AM, crale notifications@github.com wrote:

I also get no devices found... and yes, I have operated the device at least once. My location is Costa Rica.

It seems like this has been going on for some time now. Any resolution in sight???

— 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/2#issuecomment-659054762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72ECHYYMT3XF3SJ2SYPDR3YXHFANCNFSM4MGMZHEA .

— 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/2#issuecomment-659056747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJGJUT2LN2GJJB6YZVKZFDR3YX65ANCNFSM4MGMZHEA.

razorRun commented 4 years ago

I cannot see what you have done so far. buy if your device supports my API it should display available commands and statuses

crale commented 4 years ago

Thanks. I had to delete my account and create another one. I had to set the location under home with google maps and that worked. Now, how can I turn on my bulb? I don’t find any examples anywhere. This is what I have tried, but the lamp never comes on: Sorry for the bother but I hope to get this working, eventually with Alexa. Thanks, Mike On Jul 15, 2020, at 16:57, RoshanM @.> wrote: I have developed the solution for this. But you should see your devices when you register as a New Zealand Account On Thu, 16 Jul 2020 at 10:51 AM, crale @.> wrote: > I also get no devices found... and yes, I have operated the device at > least once. My location is Costa Rica. > > It seems like this has been going on for some time now. Any resolution in > sight??? > > — > You are receiving this because you commented. > > > Reply to this email directly, view it on GitHub > <#2 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AFB72ECHYYMT3XF3SJ2SYPDR3YXHFANCNFSM4MGMZHEA > . > — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJGJUT2LN2GJJB6YZVKZFDR3YX65ANCNFSM4MGMZHEA.

I finally got it working. Thanks.

crale commented 4 years ago
Screen Shot 2020-07-24 at 15 04 15 Screen Shot 2020-07-24 at 15 04 01

Here are the input and output options that I have for this bulb.

razorRun commented 4 years ago

Hey Mike Looks like your light does support lot of inputs including color and brightness. In your Mail you have talked about a slider and a colour picker. Are we still talking through node red or smartlife air app?

On Sat, 25 Jul 2020 at 9:07 AM, crale notifications@github.com wrote:

[image: Screen Shot 2020-07-24 at 15 04 15] https://user-images.githubusercontent.com/22176978/88435327-2f0c3c00-cdbf-11ea-8039-425ea2e8e4e9.png

[image: Screen Shot 2020-07-24 at 15 04 01] https://user-images.githubusercontent.com/22176978/88435337-34698680-cdbf-11ea-9ed2-4b0869ebf447.png Here are the input and output options that I have for this bulb.

— You are receiving this because you modified the open/close state.

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

crale commented 4 years ago

Using node red to send to the smartlifeair app node.

Screen Shot 2020-07-24 at 15 36 18
razorRun commented 4 years ago

Which color picker and slider you are using.

Can you try sending a json value as it’s shown in the input accepted value in the drop down. Send it in the same format different values

On Sat, 25 Jul 2020 at 9:37 AM, crale notifications@github.com wrote:

Using node red to send to the smartlifeair app node.

[image: Screen Shot 2020-07-24 at 15 36 18] https://user-images.githubusercontent.com/22176978/88437344-86aca680-cdc3-11ea-9974-fd8ee843b46c.png

— You are receiving this because you modified the open/close state.

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

crale commented 4 years ago

The default ones from the ui-dashboard.

crale commented 4 years ago

Solved it:

Screen Shot 2020-07-24 at 15 49 46 Screen Shot 2020-07-24 at 15 49 26

Will forget the brightness slider since the color and brightness are done all at once in the color picker.

razorRun commented 4 years ago

Nice.

If you like this library, don’t forget to give a star on github. Also if you get a minute please do a quick screen capture vid for others on the steps you followed. I always wanted to do that and haven’t had a chance.

Cheers Roshan

On Sat, 25 Jul 2020 at 9:51 AM, crale notifications@github.com wrote:

Solved it:

[image: Screen Shot 2020-07-24 at 15 49 46] https://user-images.githubusercontent.com/22176978/88438181-5c5be880-cdc5-11ea-8e6f-379ca9efef76.png

[image: Screen Shot 2020-07-24 at 15 49 26] https://user-images.githubusercontent.com/22176978/88438190-5e25ac00-cdc5-11ea-91b4-c19a6fa99da5.png

Will forget the brightness slider since the color and brightness are done all at once in the color picker.

— You are receiving this because you modified the open/close state.

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

crale commented 4 years ago

I'll just provide a flow screen shot and one of the dashboard group since the answer is above.

crale commented 4 years ago
Screen Shot 2020-07-24 at 16 35 10 Screen Shot 2020-07-24 at 16 36 04
fmgyotoku commented 4 years ago

Hi @razorRun. I've followed the thread and looks like the devices can only be listed in the node-red node if the account is set for New Zealand. Is there a way to change the country registered with the account?

I had a look in the node-red log and it says: 29 Jul 10:25:21 - [warn] [device-node:smartair-node] User Authenticated as [my-email]

But when I log into the site (https://smartlife-air-plugins.smartlife.nz/) it shows the message that no device was found.

razorRun commented 4 years ago

Not at the moment.

I am working on an update, this will allow you to use any country. Unfortunately at the moment solution is to create a new account and select the country as New Zealand.

Cheers

On Wed, 29 Jul 2020 at 12:19 PM, Fernando Massaiti Gyotoku < notifications@github.com> wrote:

Hi razonRun. I've followed the thread and looks like the devices can only be listed in the node-red node if the account is set for New Zealand. Is there a way to change the country registered with the account?

— You are receiving this because you modified the open/close state.

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

razorRun commented 4 years ago

I will need someone to test the solution for me. If you have bit of time to test and let me know it will be great

On Wed, 29 Jul 2020 at 1:09 PM, roshan milinda gunasingha < rmilinda@gmail.com> wrote:

Not at the moment.

I am working on an update, this will allow you to use any country. Unfortunately at the moment solution is to create a new account and select the country as New Zealand.

Cheers

On Wed, 29 Jul 2020 at 12:19 PM, Fernando Massaiti Gyotoku < notifications@github.com> wrote:

Hi razonRun. I've followed the thread and looks like the devices can only be listed in the node-red node if the account is set for New Zealand. Is there a way to change the country registered with the account?

— You are receiving this because you modified the open/close state.

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

fmgyotoku commented 4 years ago

Happy to help! I'm a developer, but quite new to the node-red. So if you don't mind being disturbed with a few questions sometimes, I'm good.

fmgyotoku commented 4 years ago

Hi @razorRun,

Just a quick update, I created a new account with New Zealand and I can see the devices now. I also have a node-red instance in the cloud, and I wanted to try this plugin. I try to add the plugin from Manage Pallete option, but during the installation, I'm getting the following error:

2020-07-29T12:41:17.731Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-smartlifeair@0.0.15 2020-07-29T12:41:31.810Z rc=null

Would you have any idea of what might be going wrong?

razorRun commented 4 years ago

Do you have a local instance by any chance?

Try installing from console?

On Thu, 30 Jul 2020 at 12:47 AM, Fernando Massaiti Gyotoku < notifications@github.com> wrote:

Hi @razorRun https://github.com/razorRun,

Just a quick update, I created a new account with New Zealand and I can see the devices now. I also have a node-red instance in the cloud, and I wanted to try this plugin. I try to add the plugin from Manage Pallete option, but during the installation, I'm getting the following error:

2020-07-29T12:41:17.731Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-smartlifeair@0.0.15 2020-07-29T12:41:31.810Z rc=null

Would you have any idea of what might be going wrong?

— You are receiving this because you were mentioned.

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

Andobi commented 4 years ago

I couldn’t see a way. I made a new account instead.

On 29 Jul 2020, at 01:19, Fernando Massaiti Gyotoku notifications@github.com wrote:

 Hi razonRun. I've followed the thread and looks like the devices can only be listed in the node-red node if the account is set for New Zealand. Is there a way to change the country registered with the account?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

fmgyotoku commented 4 years ago

Hi @razorRun. I have a local instance running and this worked well for the installation. I did the installation from the manage pallete capability from node-RED locally and it worked fine, however with the node-RED from the cloud, it's not. Not sure if there is any requirement for minimum node-RED version, for example. I will try to see if I can install it from console.

fmgyotoku commented 4 years ago

Hi @Andobi. Thanks for your reply. Yeah, I already created another account and it's working fine now. At least locally. 👍

razorRun commented 4 years ago

Hey Guys Quick update on the status of the issue. I have added the country selector and updated the backend. I will deploy this change on Monday as I need to test the effect on existing clients. Screen Shot 2020-08-01 at 15 15 07

razorRun commented 4 years ago

Hey Guys I pushed the change out to the backend. Can few of you guys please check and let me know. Now you should be able to select the country in smart life air linker web app

crale commented 4 years ago

Hi, yes I was able to change the country and I still have my device showing up correctly.

Just one caveat, the list of countries is not in alphabetical order. You might want to change that.

razorRun commented 4 years ago

👍 I will push that out with the next change 😕

Cheers Roshan

On Tue, 4 Aug 2020 at 1:31 PM, crale notifications@github.com wrote:

Hi, yes I was able to change the country and I still have my device showing up correctly.

Just one caveat, the list of countries is not in alphabetical order. You might want to change that.

— You are receiving this because you were mentioned.

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

davman19 commented 4 years ago

Hi, I am experiencing the same problem: "No devices found"

I followed all the steps for creating accounts and setting up node-red, but even if I get "User Authenticated as xxxx" in the debug console of noder-red, I am still not able to view my smart bulb in the list.

Of course I previously created a Smart Life Air account and associated the bulb to that. I can operate it normally from my smartphone, but cannot close the loop in node-red...

I rember at first I actually missed the step of setting the Country to New Zeland, as I set my Country, but then I tried changing it to New Zeland and had the same problems. If I understand correctly that issue is actually solved now.

Any hints?

Thanks

razorRun commented 4 years ago

Hey, I have sorted out several issues that cause this. However, there is one bug remaining due to the server location. This node-red plugin only talks to US DB. That’s mean you will have to choose a country that belongs to US region when you sign up to the mobile app. Unfortunately, if you have already created an account you will have to create a new one and enrol devices again.

Countries in the US region

Canada The United States Peru Mexico Argentina Brazil Chile Colombia Venezuela Malaysia Indonesia Philippines New Zealand Thailand Japan Korea Vietnam Myanmar(Burma) Guatemala Bolivia Ecuador Paraguay Suriname Uruguay Hongkong SAR China Macao SAR China Taiwan China Puerto Rico Curacao