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

Node red doesn't see the device #17

Closed megavoltt closed 3 years ago

megavoltt commented 3 years ago

There are devices on the site. Why don't they appear in node red? The username and password are correct. And another problem, the settings of the smart life air node do not open immediately.

razorRun commented 3 years ago

Have you followed the readme?

Specially regarding country limitations and deploying it before you see devices?

One more thing have you operated the devices from the app directly? Once you do all those and hit refresh on the web app you should see a list of devices.

Cheers

On Sat, 7 Nov 2020 at 1:41 AM, megavoltt notifications@github.com wrote:

There are devices on the site. Why don't they appear in node red? The username and password are correct. And another problem, the settings of the smart life air node do not open immediately.

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

megavoltt commented 3 years ago

Thanks for the answer. I set the country New Zealand, devices in the web app is. In the mobile app, I manage. Devices do not appear in node red.

razorRun commented 3 years ago

Did you signed up to the mobile app as NZ? If not create an new mobile app account with US as the country.

Then enrol the devices operate it from the mobile app.

Then sign up to the web app from the browser, once you verify your email you should see a list of devices in the web app.

After all of these steps go to node red.

On Sat, 7 Nov 2020 at 1:53 AM, megavoltt notifications@github.com wrote:

Thanks for the answer. I set the country New Zealand, devices in the web app is. In the mobile app, I manage. Devices do not appear in node red.06.11.2020, 15:45, "RoshanM" notifications@github.com: Have you followed the readme?

Specially regarding country limitations and deploying it before you see devices?

One more thing have you operated the devices from the app directly? Once you do all those and hit refresh on the web app you should see a list of devices.

Cheers

On Sat, 7 Nov 2020 at 1:41 AM, megavoltt notifications@github.com wrote:

There are devices on the site. Why don't they appear in node red? The username and password are correct. And another problem, the settings of the smart life air node do not open immediately.

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

.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. С уважением Олег.

— 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/17#issuecomment-723065429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EHFLAX7JH7VOKMRS2DSOPWVFANCNFSM4TMUIGZA .

megavoltt commented 3 years ago

I did as you wrote. But in node red devices do not appear 

razorRun commented 3 years ago

May I know the email address you used

On Sat, 7 Nov 2020 at 2:10 AM, megavoltt notifications@github.com wrote:

I did as you wrote. But in node red devices do not appear 06.11.2020, 15:59, "RoshanM" notifications@github.com: Did you signed up to the mobile app as NZ? If not create an new mobile appaccount with US as the country.Then enrol the devices operate it from the mobile app.Then sign up to the web app from the browser, once you verify your emailyou should see a list of devices in the web app.After all of these steps go to node red.On Sat, 7 Nov 2020 at 1:53 AM, megavoltt notifications@github.com wrote:> Thanks for the answer. I set the country New Zealand, devices in the web> app is. In the mobile app, I manage. Devices do not appear in node> red.06.11.2020, 15:45, "RoshanM" notifications@github.com:> Have you followed the readme?>> Specially regarding country limitations and deploying it before you see> devices?>> One more thing have you operated the devices from the app directly? Once> you do all those and hit refresh on the web app you should see a list of> devices.>> Cheers>> On Sat, 7 Nov 2020 at 1:41 AM, megavoltt notifications@github.com wrote:>> > There are devices on the site. Why don't they appear in node red? The> > username and password are correct. And another problem, the settings of> the> > smart life air node do not open immediately.> >> > —> > 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/17>,> or> > unsubscribe> > <> https://github.com/notifications/unsubscribe-auth/AFB72EFOXAN6RJTYKSAWEKLSOPVGPANCNFSM4TMUIGZA>

.> >>>> —You are receiving this because you authored the thread.Reply to this> email directly, view it on GitHub, or unsubscribe.> С уважением Олег.>> —> 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/17#issuecomment-723065429>,> or unsubscribe> < https://github.com/notifications/unsubscribe-auth/AFB72EHFLAX7JH7VOKMRS2DSOPWVFANCNFSM4TMUIGZA>> .>—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. С уважением Олег.

— 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/17#issuecomment-723072796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EH2HXRJN7ZJMYUKDDTSOPYVFANCNFSM4TMUIGZA .

megavoltt commented 3 years ago

manager@megavolt.su

razorRun commented 3 years ago

Actually you do have devices, including 2 TVs ect ..

I think you are missing a last step.

Create a node red node with email and password without selecting the device save the flow and deploy.

Then come back again you should see the device list on the node.

On Sat, 7 Nov 2020 at 2:11 AM, roshan milinda gunasingha rmilinda@gmail.com wrote:

May I know the email address you used

On Sat, 7 Nov 2020 at 2:10 AM, megavoltt notifications@github.com wrote:

I did as you wrote. But in node red devices do not appear 06.11.2020, 15:59, "RoshanM" notifications@github.com: Did you signed up to the mobile app as NZ? If not create an new mobile appaccount with US as the country.Then enrol the devices operate it from the mobile app.Then sign up to the web app from the browser, once you verify your emailyou should see a list of devices in the web app.After all of these steps go to node red.On Sat, 7 Nov 2020 at 1:53 AM, megavoltt notifications@github.com wrote:> Thanks for the answer. I set the country New Zealand, devices in the web> app is. In the mobile app, I manage. Devices do not appear in node> red.06.11.2020, 15:45, "RoshanM" notifications@github.com:> Have you followed the readme?>> Specially regarding country limitations and deploying it before you see> devices?>> One more thing have you operated the devices from the app directly? Once> you do all those and hit refresh on the web app you should see a list of> devices.>> Cheers>> On Sat, 7 Nov 2020 at 1:41 AM, megavoltt notifications@github.com wrote:>> > There are devices on the site. Why don't they appear in node red? The> > username and password are correct. And another problem, the settings of> the> > smart life air node do not open immediately.> >> > —> > 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/17>,> or> > unsubscribe> > <> https://github.com/notifications/unsubscribe-auth/AFB72EFOXAN6RJTYKSAWEKLSOPVGPANCNFSM4TMUIGZA>

.> >>>> —You are receiving this because you authored the thread.Reply to this> email directly, view it on GitHub, or unsubscribe.> С уважением Олег.>> —> 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/17#issuecomment-723065429>,> or unsubscribe> < https://github.com/notifications/unsubscribe-auth/AFB72EHFLAX7JH7VOKMRS2DSOPWVFANCNFSM4TMUIGZA>> .>—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. С уважением Олег.

— 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/17#issuecomment-723072796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EH2HXRJN7ZJMYUKDDTSOPYVFANCNFSM4TMUIGZA .

megavoltt commented 3 years ago

after entering my username and password, I can't open the stream until you open manager palette. And there are no devices.

megavoltt commented 3 years ago

https://yadi.sk/i/QiDTMJYzCsGE8A link to the video as I did     С уважением Олег.  

razorRun commented 3 years ago

Interesting

Have you tried this on a computer with chrome?

Can you please have a look under inspect-> console to see if it’s printing any errors?

Because this loading part happens on the front end.

Let me know how it goes? On Sat, 7 Nov 2020 at 3:12 AM, megavoltt notifications@github.com wrote:

https://yadi.sk/i/QiDTMJYzCsGE8A link to the video as I did 06.11.2020, 17:08, "Олег" sagos@yandex.ru:after entering my username and password, I can't open the stream until you open manager palette. And there are no devices. 06.11.2020, 16:16, "RoshanM" notifications@github.com: Actually you do have devices, including 2 TVs ect ..I think you are missing a last step.Create a node red node with email and password without selecting the devicesave the flow and deploy.Then come back again you should see the device list on the node.On Sat, 7 Nov 2020 at 2:11 AM, roshan milinda gunasingha rmilinda@gmail.comwrote:> May I know the email address you used>> On Sat, 7 Nov 2020 at 2:10 AM, megavoltt notifications@github.com wrote:>>> I did as you wrote. But in node red devices do not appear 06.11.2020,>> 15:59, "RoshanM" notifications@github.com: Did you signed up to the>> mobile app as NZ? If not create an new mobile appaccount with US as the>> country.Then enrol the devices operate it from the mobile app.Then sign up>> to the web app from the browser, once you verify your emailyou should see a>> list of devices in the web app.After all of these steps go to node red.On>> Sat, 7 Nov 2020 at 1:53 AM, megavoltt < notifications@github.com> wrote:>>> Thanks for the answer. I set the country New Zealand, devices in the web>>> app is. In the mobile app, I manage. Devices do not appear in node>>> red.06.11.2020, 15:45, "RoshanM" < notifications@github.com>:> Have you>> followed the readme?>> Specially regarding country limitations and>> deploying it before you see> devices?>> One more thing have you operated>> the devices from the app directly? Once> you do all those and hit refresh>> on the web app you should see a list of> devices.>> Cheers>> On Sat, 7 Nov>> 2020 at 1:41 AM, megavoltt < notifications@github.com> wrote:>> > There>> are devices on the site. Why don't they appear in node red? The> > username>> and password are correct. And another problem, the settings of> the> >>> smart life air node do not open immediately.> >> > —> > 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/17>,>>> or> > unsubscribe> > <>>> https://github.com/notifications/unsubscribe-auth/AFB72EFOXAN6RJTYKSAWEKLSOPVGPANCNFSM4TMUIGZA>>>

.> >>>> —You are receiving this because you authored the thread.Reply>> to this> email directly, view it on GitHub, or unsubscribe.> С уважением>> Олег.>> —> 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/17#issuecomment-723065429>,>>> or unsubscribe> <>> https://github.com/notifications/unsubscribe-auth/AFB72EHFLAX7JH7VOKMRS2DSOPWVFANCNFSM4TMUIGZA>>>> .>—You are receiving this because you authored the thread.Reply to this>> email directly, view it on GitHub, or unsubscribe. С уважением Олег.>>>> —>> 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/17#issuecomment-723072796>,>> or unsubscribe>> < https://github.com/notifications/unsubscribe-auth/AFB72EH2HXRJN7ZJMYUKDDTSOPYVFANCNFSM4TMUIGZA>>> .>>>—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. С уважением Олег. С уважением Олег.

— 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/17#issuecomment-723101487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EHBP7XATGJ6HF6GQDDSOP76BANCNFSM4TMUIGZA .

megavoltt commented 3 years ago

Hello. Chrome enabled, same problem. where can I view inspect - > console?

razorRun commented 3 years ago

If you right click on the page you will see inspect. From there you can access the console. Make sure you are on your computer not in the Tablet

Cheers

On Sat, 7 Nov 2020 at 11:59 PM, megavoltt notifications@github.com wrote:

Hello. Chrome enabled, same problem. where can I view inspect - > console?

— 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/17#issuecomment-723431114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EEM4M7FRG6P4YHIQT3SOUSCZANCNFSM4TMUIGZA .

megavoltt commented 3 years ago

Hello.There are some mistakes. JQMIGRATE: Migrate is installed, version 3.0.1 red.min.js:16 Node-RED: 1.0.6 red.min.js:16 Versions red.min.js:16 Projects disabled vendor.js:2 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. send @ vendor.js:2 VM130:1 Uncaught SyntaxError: Identifier 'firebaseConfig' has already been declared at b (vendor.js:2) at Ie (vendor.js:2) at e.fn.init.append (vendor.js:2) at r (red.min.js:16) at i (red.min.js:16) at r (red.min.js:16) at i (red.min.js:16) at r (red.min.js:16) at i (red.min.js:16) at r (red.min.js:16) firebaseNamespaceCore.ts:237 Uncaught TypeError: Cannot convert object to primitive value at d (tslib.es6.js:111) at Object.h [as registerComponent] (firebaseNamespaceCore.ts:236) at registerCoreComponents.ts:28 at firebase-app.js:1 at firebase-app.js:1 firebaseNamespaceCore.ts:229 Uncaught TypeError: Cannot convert object to primitive value at d (tslib.es6.js:110) at Object.h [as registerComponent] (firebaseNamespaceCore.ts:228) at registerCoreComponents.ts:28 at firebase-app.js:1 at firebase-app.js:1 exports_auth.js:783 TypeError: Cannot read property 'INTERNAL' of undefined at di (utils.js:681) at new Pi (utils.js:1225) at rpchandler.js:370 at exports_auth.js:783 at exports_auth.js:783 at firebase-auth.js:1 at firebase-auth.js:1 (anonymous) @ exports_auth.js:783 exports_auth.js:783 Uncaught Error: Cannot instantiate firebase-auth.js - be sure to load firebase-app.js first. at exports_auth.js:783 at firebase-auth.js:1 at firebase-auth.js:1 index.ts:76 TypeError: Cannot read property 'SDK_VERSION' of undefined at index.ts:40 at index.ts:76 at firebase-database.js:1 at firebase-database.js:1 (anonymous) @ index.ts:76 index.ts:76 Uncaught Error: Cannot instantiate firebase-database.js - be sure to load firebase-app.js first. at index.ts:76 at firebase-database.js:1 at firebase-database.js:1 index.ts:38 TypeError: Cannot read property 'SDK_VERSION' of undefined at version.ts:21 at index.ts:38 at firebase-firestore.js:1 at firebase-firestore.js:1 (anonymous) @ index.ts:38 index.ts:38 Uncaught Error: Cannot instantiate firebase-firestore.js - be sure to load firebase-app.js first. at index.ts:38 at firebase-firestore.js:1 at firebase-firestore.js:1 exports_auth.js:714 TypeError: Cannot read property 'INTERNAL' of undefined at ui (utils.js:681) at new Oi (utils.js:1225) at rpchandler.js:352 at exports_auth.js:714 at exports_auth.js:714 at firebase-auth.js:1 at firebase-auth.js:1 (anonymous) @ exports_auth.js:714 exports_auth.js:714 Uncaught Error: Cannot instantiate firebase-auth.js - be sure to load firebase-app.js first. at exports_auth.js:714 at firebase-auth.js:1 at firebase-auth.js:1 red.min.js:16 Definition error: ewelink-credentials.label TypeError: Cannot read property 'email' of undefined at Object.label (:10:37) at Object.getNodeLabel (red.min.js:16) at red.min.js:16 at Array.forEach () at p (red.min.js:16) at Object.t [as refresh] (red.min.js:16) at Object.refresh (red.min.js:16) at Object.l [as import] (red.min.js:16) at Object.success (red.min.js:16) at c (vendor.js:2) DevTools failed to load SourceMap: Could not load content for http://192.168.1.129:1880/vendor/purify.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE 2DevTools failed to load SourceMap: Could not load content for http://192.168.1.129:1880/gridstack.min.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE 2red.min.js:16 Definition error: ewelink-credentials.label TypeError: Cannot read property 'email' of undefined at Object.label (:10:37) at Object.getNodeLabel (red.min.js:16) at red.min.js:16 at Array.forEach () at p (red.min.js:16) at Object.t [as refresh] (red.min.js:16) at Object.onchange (red.min.js:16) at E (red.min.js:16) at HTMLAnchorElement.w (red.min.js:16) at HTMLAnchorElement.dispatch (vendor.js:2) VM129:24 Uncaught ReferenceError: loadDeviceDropDown is not defined at HTMLSelectElement. (:24:11) at HTMLSelectElement.dispatch (vendor.js:2) at HTMLSelectElement.v.handle (vendor.js:2) at Object.trigger (vendor.js:2) at HTMLSelectElement. (vendor.js:2) at Function.each (vendor.js:2) at e.fn.init.each (vendor.js:2) at e.fn.init.trigger (vendor.js:2) at r (red.min.js:16) at E (red.min.js:16) (anonymous) @ VM129:24 dispatch @ vendor.js:2 v.handle @ vendor.js:2 trigger @ vendor.js:2 (anonymous) @ vendor.js:2 each @ vendor.js:2 each @ vendor.js:2 trigger @ vendor.js:2 r @ red.min.js:16 E @ red.min.js:16 open @ red.min.js:16 o @ red.min.js:16 show @ red.min.js:16 edit @ red.min.js:16 Pe @ red.min.js:16 i @ vendor.js:246 VM129:24 Uncaught ReferenceError: loadDeviceDropDown is not defined at HTMLSelectElement. (:24:11) at HTMLSelectElement.dispatch (vendor.js:2) at HTMLSelectElement.v.handle (vendor.js:2) at Object.trigger (vendor.js:2) at HTMLSelectElement. (vendor.js:2) at Function.each (vendor.js:2) at e.fn.init.each (vendor.js:2) at e.fn.init.trigger (vendor.js:2) at red.min.js:16 (anonymous) @ VM129:24 dispatch @ vendor.js:2 v.handle @ vendor.js:2 trigger @ vendor.js:2 (anonymous) @ vendor.js:2 each @ vendor.js:2 each @ vendor.js:2 trigger @ vendor.js:2 (anonymous) @ red.min.js:16 setTimeout (async) x @ red.min.js:16 c @ red.min.js:16 E @ red.min.js:16 open @ red.min.js:16 o @ red.min.js:16 show @ red.min.js:16 edit @ red.min.js:16 Pe @ red.min.js:16 i @ vendor.js:246 red.min.js:16 Definition error: ewelink-credentials.label TypeError: Cannot read property 'email' of undefined at Object.label (:10:37) at Object.getNodeLabel (red.min.js:16) at red.min.js:16 at Array.forEach () at p (red.min.js:16) at Object.t [as refresh] (red.min.js:16) at Object.refresh (red.min.js:16) at Object.close (red.min.js:16) at red.min.js:16

razorRun commented 3 years ago

Is this under Chrome is a PC or a laptop? have you tried this recently? because there are a good couple of thousand users seems to be using this atm. I am closing this issue but feel free to open it again.