Get your Tuya Device Local Key

Поділитися
Вставка
  • Опубліковано 3 сер 2024
  • Short, current video, on how to get Tuya local key, so you can use Home Assistant Tuya Local. Also a little bit of information on how to work out what your device's datapoints are using the developer platform. I made this specifically to go with an installation video of the Brilliant WIFI ceiling fan controller, as the method to get the key may change in the future. The Brilliant WIFI ceiling fan controller is great for AC ceiling fans and for use with Home Assistant. But the information may be useful if you're simply looking for any device's local key.
    AC Ceiling Fan Installation - • Ceiling Fan Controller...
    00:00 - Intro and account setup
    01:26 - Create Cloud Project
    03:21 - Link Tuya Smart Account with Developer Account
    05:00 - Get the Local Key from API Explorer
    06:07 - How to get information on your Tuya Device Data Points
  • Наука та технологія

КОМЕНТАРІ • 88

  • @tristanssmartesheim
    @tristanssmartesheim 2 роки тому +5

    Very impressive, I thought it was not possible anymore to get the localkey sooo easy. The last minute was also very very helpfull to get some information about the datapoints - don't know this before! Thanks!

    • @SparkyJames
      @SparkyJames  2 роки тому

      I have unfortunately discovered that not all devices with expose what the datapoints are, but plenty do though

  • @robertwalisz7699
    @robertwalisz7699 8 місяців тому +1

    Dobry poradnik i działa. Potrzebowałem lokalny klucz a tu dowiedziałem się jeszcze jak odczytać parametry i jakie dane oczekiwać.

  • @somedaysoon33
    @somedaysoon33 9 місяців тому

    This was the most straight forward and easiest video to get this info, thank you!

  • @tomferrel7017
    @tomferrel7017 Рік тому

    Amen to all the people thanking you. Was ready to throw myself out the window lol. Thank you very very much!

  • @markpurcell4507
    @markpurcell4507 2 роки тому +2

    Thanks, I couldn't get localtuya working, but you helped with the reference to data centres, somehow my devices have moved to central Europe, but it is working now.

  • @eduardoazevedo3405
    @eduardoazevedo3405 2 роки тому +1

    YOU ARE A LIFE SAVER. I'm far from expert in all of this, but man, I've swapping betwen 12321342234235 tabs from git hub, misleading information, installing things, doing pcaps, to NOTHING. Your video sorted in 2 minutes! THANK YOU!

  • @TheEpicLobster
    @TheEpicLobster 2 роки тому +1

    Thank you so much!! The local key had eluded me for quite some time until this glorious tutorial

    • @SparkyJames
      @SparkyJames  2 роки тому

      No worries, glad it was help for you

  • @jasong1376
    @jasong1376 2 роки тому +7

    Thank you, thank you, thank you! I've been trying to get my localKeys for about a year now without luck and you made it straight-forward and easy! Nice one Jim!

  • @emanbuoy7673
    @emanbuoy7673 Рік тому

    this really helped, i dint know my VPN was the reason why i was not getting the right information...thank you so much

  • @pgf86
    @pgf86 2 роки тому +1

    Saved me a ton of hassle, thank you

  • @TheDalejake
    @TheDalejake 2 роки тому

    I was in the same boat as Jason G , your vid helped me to sort it brilliant work

    • @SparkyJames
      @SparkyJames  2 роки тому

      Thanks Ian , it’s good a few have found it helpful

  • @TristynRusselo
    @TristynRusselo 2 роки тому +1

    This method worked today Feb 17 2022
    local key obtained!

  • @john3607A
    @john3607A 2 роки тому +1

    thanks - i do this just infrequently enough to forget - so thanks!

  • @bournejason9341
    @bournejason9341 Рік тому

    You save my Time and Life! How Kind of You! Great Thanks!

  • @adamdreher1501
    @adamdreher1501 Рік тому

    thank you thank you! this got me going in the right direction!

  • @PatrickFelstead
    @PatrickFelstead 2 роки тому +2

    he's back! been wondering if you were going to make new videos. I've been meaning to try Tuya local, so thanks for this.

    • @SparkyJames
      @SparkyJames  2 роки тому +1

      I am back, I have filmed a stack of footage on lots of different things, but sort of went down a rabbit hole checking out batteries and solar systems, so some of that will be coming soon too.

    • @PatrickFelstead
      @PatrickFelstead 2 роки тому

      @@SparkyJames sounds good, look forward to watching it.

  • @yingpwu1647
    @yingpwu1647 Рік тому +6

    No permissions. Your subscription to cloud development plan has expired..............it seems that the iot core connection server need paid now, is anyone have a better connect way to get local key?

    • @hyzteric
      @hyzteric Рік тому

      same here 😢 tried to extend my trial period.. still waiting

    • @wimdm01
      @wimdm01 Рік тому

      Does anyone knows the answer to this question? I have the same problem.

  • @Musicman-50
    @Musicman-50 Рік тому

    Thanks So Much !!
    This is a most Excellent Tutorial. It's helped me out a lot, but I'm still not fully operational.
    Honestly I am still lost as to why the LocalTuya Integration is so Overly Complicated.
    I've spent hours fiddling with it, and it still doesn't work right.
    I've got only Basic On/Off with over 17 Tuya devices Color Lights, Smart Plugs, Thermometers, and Strip Plugs with 4 devices on each strip. They work perfectly on my phone app, but just On/Off at best with Home Assistant.. UGhh
    I'm lost as to the complicated DP-ID's needed to make it work. Most I haven't a clue as the names don't match up with the Integration. I'm still learning, but sure would be a nice feature if LocalTuya just worked like the older Tuya Integration Did..
    I don't have any of these problems with my 20ea devices flashed with Tasmota. They just work perfectly but I want to one day be running everything locally.

  • @andy_warb
    @andy_warb Рік тому

    Thanks for this! I was getting super stuck trying to add my plug to HA!

  • @crdrcrd
    @crdrcrd Рік тому

    How did you ever figure this out? Tuya did an amazing job of hiding this.

  • @yousaf.saleem
    @yousaf.saleem 2 роки тому +1

    that is a detailed video. Thanks . It fixed it for me even after watching countless videos on the subject. region is the key

    • @SparkyJames
      @SparkyJames  2 роки тому +1

      It’s is I forget to set the region almost every time 🙃

    • @yousaf.saleem
      @yousaf.saleem 2 роки тому

      @@SparkyJames does key change if we try to change anything in localtuya integration?

    • @SparkyJames
      @SparkyJames  2 роки тому

      The key remains the same, once you have it you can disconnect it from your Tuya account and it will still work local, in fact you will need to do that if you have lots of devices as there is a limit to how many Devices can be linked to the cloud project 8 I think.

    • @yousaf.saleem
      @yousaf.saleem 2 роки тому

      @@SparkyJames I just change the time interval and now device is unavailable.

    • @SparkyJames
      @SparkyJames  2 роки тому

      Scan interval? What type of device is it, and what interval did you set?

  • @essmiguel3122
    @essmiguel3122 9 місяців тому +1

    I have this "Data centers inconsistency, App account cannot be linked." :(

  • @michaelbreitkreutz6257
    @michaelbreitkreutz6257 Рік тому +2

    Is this still working? Just tried with a new device and it loads everything but there is no Local Key listed

  • @gerbrouwer4817
    @gerbrouwer4817 2 роки тому +1

    Great tutorial tyvm

    • @SparkyJames
      @SparkyJames  2 роки тому

      Good hear, thanks for watching!

  • @reoproedros
    @reoproedros 11 місяців тому

    thank you !

  • @TwanJaarsveld1
    @TwanJaarsveld1 2 роки тому

    Thanks a lot

  • @nickname153
    @nickname153 8 місяців тому +2

    it's possible obtain local_key if the account is expired after one moths? i btaine this message ""No permissions. Your subscription to cloud development plan has expired." there are some mode to have local_key?

  • @neilbrookins8428
    @neilbrookins8428 2 роки тому +2

    I’ve tried both local tuya and the other cloud based tuya and I can say with certainty that the local is better for me. That’s because the smart outlet with current measurement only works with local tuya. The cloud tuya doesn’t show me the watts volts amps.

  • @mikedproducer
    @mikedproducer 2 роки тому +1

    I have this weird anomaly on iPad where the “Submit Request” button doesn’t appear. I know I figured it out last time I did this but right now I am drawing a blank.

  • @motoparadise1487
    @motoparadise1487 2 роки тому

    everything is good, only one problem, I have something like that, no matter which option I choose, I have "your api is not subscribed" everywhere. I have tried literally all options from the internet in no way I can get the key. I omit the fact that I do not have such an option as "Smart Home Management System". The project itself is set the same as in your movie, including selected APIs. Maybe you can help me somehow, because my hands are dropping.

  • @AcidNightx
    @AcidNightx Рік тому +1

    dommage qu'après 1 mois tout les accès son bloqué et impossible d'avoir le key d'un nouvel appareil...

  • @godproverb20.18
    @godproverb20.18 Рік тому +2

    when i write down the device_id to the explorer this messege shows.
    "msg": "No permissions. Your subscription to cloud development plan has expired.",
    can i get the key without paying the subscription? ? is there another way? 😵😵

  • @mfkhometheater7742
    @mfkhometheater7742 9 місяців тому

    Any solution for this error that occurs when entering the local key... "Connection to device succeeded but no datapoints found". Yours is the first video I've found that mentions data points, is there a way to edit or correct them if this is the cause of the error?

  • @Fluffysnowfox
    @Fluffysnowfox 3 місяці тому +1

    Solution for "No permissions. Your subscription to cloud development plan has expired":
    -Click on cloud
    - open your Project
    - Service API
    - IoT Core --> View Details
    then extend trail period --> fill in the information
    DONE!
    :)

  • @MrRoma70
    @MrRoma70 Рік тому

    What happen if you loose internet access but still able to browse the internal WIFI? Would it still work? Your response is highly appreciated

    • @JamesEggleston
      @JamesEggleston Рік тому

      It will work without the internet, with Tuya local. But it must be connected to the internet and a Tuya server to get the local key initially, but once you have the key you don’t need internet

  • @filippocanton
    @filippocanton Рік тому +1

    As other, trial is expired so I get a permission denied...😓

  • @mikep4948
    @mikep4948 2 роки тому

    When I follow all your steps, and go to 'Get Device Details', paste device id, and click 'Submit Request' , I do not get the local key as depicted in the video. Instead, I get 'Request URL' and 'Response'. What am I missing here?

    • @SparkyJames
      @SparkyJames  2 роки тому +1

      Hi Mike, I checked if it was working, and it didn't work the first time but did work after a few minutes, it could be internet traffic issues being the data centre may be in central europe somewhere?? In addition to that, check you are at the right data centre there are 6 to try, check the device is online at the device list in the project, and try a different browser some have said that it won't work on an ipad. Hope that helps.

    • @mikep4948
      @mikep4948 2 роки тому +1

      @@SparkyJames thanks Jimmy. I got it to work. A restart and it was good to go. Great tutorial

  • @RyanVandeWetering
    @RyanVandeWetering Рік тому +1

    No permissions. Your subscription to cloud development plan has expired.
    What do I do with this error?

    • @darrylturner7622
      @darrylturner7622 Рік тому

      you renew it, i think the licence is only valid for 6 months, very silly

  • @soubhikkhan6239
    @soubhikkhan6239 2 роки тому

    Tuya iot platform options have changed the way we used to scan and connect to the tuya mobile app! Now it shows to connect with a Smart industry app and devices are not available in that app. Anyone has figured out the new app?

    • @SparkyJames
      @SparkyJames  2 роки тому

      I have tried it recently with the tuya smart app and have had no problem.

  • @likimap3938
    @likimap3938 6 місяців тому

    Cool. I only have one device detected - the gateway. In iot tuya, only the gateway has the key. For other devices "local_key": "",. What could it be?

    • @JamesEggleston
      @JamesEggleston 6 місяців тому

      The Tuya gateway is for Zigbee devices? Probably? The local key is only used for Tuya wifi devices. The individual zigbee devices can be connected directly using a gateway compatible with home assistant like but not limited to the skyconnect.

  • @artyb7696
    @artyb7696 Рік тому

    I am getting the error message "Your IP don't have access to this API

  • @Bazim
    @Bazim Рік тому

    No local key here for me :(

  • @battletv777
    @battletv777 2 роки тому

    Can't seem to link it JJ, is this to do with the new bans they have placed on the site?

    • @SparkyJames
      @SparkyJames  2 роки тому

      I just went and checked it, it's still working where I'm in Perth. Did you try link each of the 6 data centres? If the first one didn't work?

    • @battletv777
      @battletv777 2 роки тому

      @@SparkyJames Yes apparently a new thing came in November last year. I read they updated the policy of the account so hackers could not malice change things on your devices. I will do some more research. Maybe anyone whose account started before that date is secure. New Accounts the new policy is applied to.

    • @battletv777
      @battletv777 2 роки тому

      @@SparkyJames Finally got it, unsure why it caused so much issues. I unlinked alot of stuff then it seemed to work properly. Unsure what I did wrong. But now have it all connected. thanks again for the informative video.

    • @SparkyJames
      @SparkyJames  2 роки тому

      Yes that is a good point, there is a limit on how many devices you can have linked to a project I think it’s 8, once you have the key you don’t need the devices linked though

  • @dimkovics
    @dimkovics Рік тому

    is this local key static, or it changes?

    • @SparkyJames
      @SparkyJames  Рік тому

      I thought it would be static, but it’s not they seem to change sometimes

  • @Khalid-wi8wp
    @Khalid-wi8wp 2 роки тому

    can local tuya work for zigbee devices?

    • @SparkyJames
      @SparkyJames  2 роки тому

      No it’s just wifi devices, I haven’t used zigbee much, but I heard the con bee USB zigbee gateway is very good and will get almost any zigbee device working with home assistant in no time at all.

  • @csflowmax1504
    @csflowmax1504 10 місяців тому

    why my local key and ip is " "?

  • @pabloatc7234
    @pabloatc7234 2 роки тому

    I cant get this to work, it says “permission deny” after I submit the ID

    • @SparkyJames
      @SparkyJames  2 роки тому

      Above the get device details section where you enter device id, change the data centre, there are 6 to try, it says permission deny if that is not right, also there is a limit to the number of device that can be linked for to the project once you have the local key you can unlink devices, to make room for new ones.

    • @pabloatc7234
      @pabloatc7234 2 роки тому

      @@SparkyJames I only have one device but i'll try changing that server thing today. Thanks for the quick reply!

  • @-broicher
    @-broicher Рік тому

    This doesnt work anymore, tuya is not letting you access the API calls anymore from within the dev plattform

  • @squintero213
    @squintero213 Рік тому

    Video starts at @5:00

  • @se777en73120
    @se777en73120 Рік тому +4

    What if my Tuya cloud free trial is expired? I don't seem to be able to do this. "INVALID_TOKEN"

  • @itsthemetho
    @itsthemetho 2 роки тому

    I find that Zigbee devices connected to the same gateway share the same "local_key". Each unit WIFI connection has a unique "local_key".

    • @SparkyJames
      @SparkyJames  2 роки тому

      Thanks, for the info itsthemetho, I haven’t really got into zigbee. Just wifi and z wave. I do have a few, Zigbee sensors I was going to play with, just need to get a gateway.

  • @ThomasColeman
    @ThomasColeman Рік тому +1

    i get "code": 2009,
    "msg": "not support this device",