Announcement

Collapse
No announcement yet.

Tuya Devices

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tuya Devices

    Hello Spud

    I connected 38 Tuya type devices on HS4

    Different type of shutter switch (3 type)
    lamps: https://www.action.com/fr-fr/search/?q=smart+connect
    Switch portal: https://fr.aliexpress.com/item/32997...27ca6c37UFVVpy
    Switch modules: https://fr.aliexpress.com/item/10050...27ca6c37UFVVpy
    Plug: https://fr.aliexpress.com/item/40000...27426c37pioBbx
    4-channel module: https://fr.aliexpress.com/item/40011...27426c37f8r0EY

    I have the Tuya configurations at your disposal if that can help you (without the secret key)

    Jean-Francois.

    #2
    Nice! Do you have any specific problem with any of those devices and the plugin?

    Comment


      #3
      Hello, Spud
      No problem

      Jean-Francois.

      Comment


        #4
        Hello Spud

        I have installed the version 4.0.33.0, modified LocalApiProducts.json to add a microswitch
        {
        "product_id": "osjgagitkwttmm95",
        "product_desc": "wifi switch module",
        "version": "3.3",
        "func_mapping": {
        "switch_1": "1",
        "relay_status": "38",
        "countdown_1": "9",
        "random_time": "42"
        }
        i find number fonction in IoBroker
        Click image for larger version  Name:	Screen Shot 11-15-21 at 06.56 PM.JPG Views:	0 Size:	18.0 KB ID:	1508346

        it's work fine, now i can control it locally

        2021-11-15 18:33:27.3489|DEBUG|DP Query for Lustre de la cuisine IP = 192.168.1.13 Version = 3.3
        2021-11-15 18:33:27.3489|DEBUG|Sending DP query to 192.168.1.13, payload = {"gwId":"bfcdd4ddbc267a0528q8sm","devId":"bfcdd4ddbc267a0 528 q8sm","t":"xxxxxxxxxxx","dps":{},"uid":"bfcdd4ddbc267a0528q8 sm"}
        2021-11-15 18:33:27.5117|DEBUG|Status received from 192.168.1.13, type = DP_QUERY, payload = {"dps":{"1":true,"9":0,"38":"off","42":""}}
        Now, can you add in plugin support for blind
        for example:


        { "name": "Control", "code": "control", "type": "Enum", "values": "{"range":["open","stop","close"]}", "status_only": false } ]

        Device:

        { "uuid": "5587062584f3eb74d929", "name": "Volet bureau", "ip": "XX.XX.XX.XX", "status": [ { "code": "control", "value": "close" } ], "category": "cl", "product_id": "rD7uqAAgQOpSA2Rx", "online": true, "id": "5587062584f3eb74d929", "time_zone": "+01:00", "local_key": "xxxxxxxxxxxxxxx" }
        I have three types of switch
        Click image for larger version

Name:	Screen Shot 11-15-21 at 07.01 PM.JPG
Views:	234
Size:	24.8 KB
ID:	1508352
        Click image for larger version

Name:	Screen Shot 11-15-21 at 07.05 PM.JPG
Views:	230
Size:	24.4 KB
ID:	1508353
        Thanks,
        Jean-Francois.

        Comment


          #5
          Merci Jean-Francois. Great info!
          I added your microswitch in the official LocalApiProducts.json in version 4.0.34. Note that in this same version I added a setting at device level (Tuya tab) to enable/disable local connection when supported. This setting is disabled by default, so you will have to enable it for the devices for which you want to use local connection

          Click image for larger version

Name:	localconnectionswitch.JPG
Views:	277
Size:	28.3 KB
ID:	1509032
          I'm not familiar with IoBroker. Do they have this same information available for a lot of Tuya devices?

          Regarding support for blinds, what do you mean exactly? did you try to import those devices in HS4 from the Tuya > Manage Devices page, and if so how do they look like and what is missing?

          Comment


            #6
            Hello, Spud

            https://github.com/Apollon77/ioBroke.../lib/mapper.js

            contains more schemas for tuya devices

            No problemes to import device type blinds in HS4, but i want to control them locally,



            Jean-francois.

            Comment

            Working...
            X