Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request support for Tuya-Local Orion Grid Connect Bluetooth Lock via WiFi hub #654

Closed
jaydisc opened this issue Apr 27, 2023 · 16 comments
Closed

Comments

@jaydisc
Copy link

jaydisc commented Apr 27, 2023

Issue #162 seems to be how lock support came to be, and based on the description, I assume it's this lock (https://www.bunnings.com.au/orion-grid-connect-smart-wi-fi-entrance-lock_p0330511, which has built-in WiFi). I bought another Orion Grid Connect lock, but a Bluetooth one (https://www.bunnings.com.au/orion-grid-connect-smart-door-handle-lock_p0330508) and their Bluetooth (to WiFi) hub (https://www.bunnings.com.au/orion-grid-connect-smart-bluetooth-hub-with-socket_p0330509)

I have had IoT.Tuya set up for ages. I used python -m tinytuya wizard to get the keys. This is the output of the devices.json the generates:

[
    {
        "name": "Orion Lock",
        "id": "bf7916jzauojjy4q",
        "key": "d662327ad73d7de2",
        "mac": "DC:23:4E:A5:2B:CF",
        "uuid": "268b97205e021907",
        "category": "ms",
        "product_name": "",
        "product_id": "a6nttc41",
        "biz_type": 0,
        "model": "DL021HA",
        "sub": true,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/99fe0d9b7b8dfac27ce56ce6f2682d65.png",
        "node_id": "268b97205e021907",
        "parent": ""
    },
    {
        "name": "Orion Hub",
        "id": "bf7e1781ca46f16806tnsv",
        "key": "d662327ad73d7de2",
        "mac": "38:1f:8d:c0:5e:de",
        "uuid": "814b612b7f07dd47",
        "category": "cz",
        "product_name": "SG121HA",
        "product_id": "qhoybrozfhcenkyh",
        "biz_type": 0,
        "model": "SG121HA",
        "sub": true,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/9ceffdb41c5f3b7e52b25cef42df1228.png",
        "parent": ""
    },
    {
        "name": "Arlec Fan",
        "id": "10835277e8db849189d1",
        "key": "9d42bfa2551e4d0b",
        "mac": "e8:db:84:91:89:d1",
        "uuid": "10835277e8db849189d1",
        "sn": "100031445020B5",
        "category": "fs",
        "product_name": "APDC4501BHA",
        "product_id": "yl9xhvmeauwdmvss",
        "biz_type": 0,
        "model": "APDC4501BHA",
        "sub": false,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/f999684aae9c495405c73d7384e0e87f.png"
    }
]

(The fan is integrated via the plugin and works wonderfully)

I noticed that both the Lock and the Hub have different id's, but have the same key.

Using IoT API Explorer → Get Device Specification Attribute, I get the following for the Lock:

{
  "result": {
    "category": "ms",
    "functions": [
      {
        "code": "unlock_method_create",
        "dp_id": 1,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "unlock_method_delete",
        "dp_id": 2,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "automatic_lock",
        "dp_id": 33,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "synch_method",
        "dp_id": 54,
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "unlock_method_create",
        "dp_id": 1,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "unlock_method_delete",
        "dp_id": 2,
        "type": "Raw",
        "values": "{}"
      },
      {
        "code": "residual_electricity",
        "dp_id": 8,
        "type": "Integer",
        "values": "{\"min\":-1,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "unlock_fingerprint",
        "dp_id": 12,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":999,\"scale\":0,\"step\":1}"
      },
      {
        "code": "unlock_ble",
        "dp_id": 19,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":999,\"scale\":0,\"step\":1}"
      },
      {
        "code": "automatic_lock",
        "dp_id": 33,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "synch_method",
        "dp_id": 54,
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 1682569550783,
  "tid": "974fd3a4e4b311edbff9f2ce989a5212"
}

Interestingly, when I use the same query for the Hub, I get:

{
  "code": 2009,
  "msg": "not support this device",
  "success": false,
  "t": 1682569641014,
  "tid": "cd1a5410e4b311eda8900e8ee93f159e"
}

When I add the Lock in HA (using id = bf7916jzauojjy4q), I get offered a Simple Switch or Simple Switch with Timer. Upon adding to HA, there is no reaction in any device when toggling the switch.

When I add the Hub (which has an integrated power socket), I get the same matches, but in this case, when I toggle the switch, the hub's socket properly toggles.

I captured the output when adding both devices to HA, and I actually don't see any difference:

Lock:

2023-04-27 14:14:11.234 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-04-27 14:14:11.235 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-04-27 14:14:11.308 DEBUG (SyncWorker_20) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}}
2023-04-27 14:14:11.309 DEBUG (SyncWorker_20) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1682568851.3088422, "1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
<snip>
2023-04-27 14:14:12.978 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch.yaml
2023-04-27 14:14:12.979 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch
2023-04-27 14:14:12.981 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timer.yaml
2023-04-27 14:14:12.985 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timerv2.yaml
2023-04-27 14:14:12.985 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch with timer
<snip>
2023-04-27 14:14:13.350 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch_timerv2 with quality of 43%. DPS: {"updated_at": 1682568851.3088422, "1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
2023-04-27 14:14:13.356 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

Hub:

2023-04-27 14:15:39.681 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-04-27 14:15:39.681 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-04-27 14:15:39.785 DEBUG (SyncWorker_18) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}}
2023-04-27 14:15:39.785 DEBUG (SyncWorker_18) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1682568939.7852914, "1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
<snip>
2023-04-27 14:15:41.499 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch.yaml
2023-04-27 14:15:41.500 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch
2023-04-27 14:15:41.502 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timer.yaml
2023-04-27 14:15:41.506 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timerv2.yaml
2023-04-27 14:15:41.507 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch with timer
<snip>
2023-04-27 14:15:41.867 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch_timerv2 with quality of 43%. DPS: {"updated_at": 1682568939.7852914, "1": true, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
2023-04-27 14:15:41.870 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

My first assumption, is that hubs and their devices simply aren't supported, so HA isn't even getting a chance at configuring the lock, but I thought I'd collect the info just in case it was of value. Thank you.

@jaydisc jaydisc added the new device Unsupported device label Apr 27, 2023
@make-all make-all added subdevice Requires subdevice support and removed new device Unsupported device labels Apr 27, 2023
@make-all
Copy link
Owner

You are right, hubs and sub devices are not yet supported, but a pull request was submitted yesterday, so after the issues with it are fixed it should not be too far away from being ready to go.

@make-all
Copy link
Owner

make-all commented May 1, 2023

I don't think that log is for the lock. It seems to match some kind of smartplug.

Prior to the recent addition of sub device support (as yet unreleased), I would not expect to get anything in the log for the lock, as it needs to go via the hub (IP address would be the same as the hub).

make-all added a commit that referenced this issue May 1, 2023
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels May 1, 2023
make-all added a commit that referenced this issue May 1, 2023
It is valid to have locks that cannot be locked or unlocked from the network.
Such locks can still usefully be monitored by Home Assistant.

Issue #654
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release subdevice Requires subdevice support labels May 7, 2023
@make-all make-all closed this as completed May 7, 2023
@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

Hi, I've gotten around to testing all of this again. I've tried entering it numerous ways, but the times it goes through, this is the output:

2023-05-25 15:41:13.826 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-05-25 15:41:13.911 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"8": 93, "33": false}, "cid": "268b97205e021907", "device": "Non-JSON: (Device( 'bf92e1nv04nozktm', address=None, local_key='', dev_type='default', connection_timeout=5, version=3.3, persist=False, cid='268b97205e021907', parent='bf92e1nv04nozktm', children={} ))"}
2023-05-25 15:41:13.911 DEBUG (SyncWorker_9) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1684993273.911662, "8": 93, "33": false}
2023-05-25 15:41:13.914 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config abalon_bcm700d_curtain.yaml
2023-05-25 15:41:13.918 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config agl_ultramagic_lock.yaml
<snipped out lots of uneventful devices load>
2023-05-25 15:41:14.702 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config zym100_presence_sensor.yaml
2023-05-25 15:41:14.702 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches None with quality of 0%. DPS: {"updated_at": 1684993273.911662, "8": 93, "33": false}
2023-05-25 15:41:14.703 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

I've done these recent tests on HA 2023.5.4, TuyaLocal 2023.5.1.

I tried using the devices.json file that tinytuna (1.12.7) generates (as well as the API Explorer at Tuya Cloud to get the IDs/Keys).

Here's devices.json (the lock is on top… the hub on bottom):

    {
        "name": "DL021HA",
        "id": "bf92xxxxxxxxxxx",
        "key": "xxxxxxxxxxxxxx",
        "mac": "xxxxxxxxxxxxxx",
        "uuid": "xxxxxxxxxxxxxxxxxx",
        "category": "ms",
        "product_name": "",
        "product_id": "a6nttc41",
        "biz_type": 0,
        "model": "DL021HA",
        "sub": true,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/99fe0d9b7b8dfac27ce56ce6f2682d65.png",
        "node_id": "268bxxxxxxxxxxxxx",
        "parent": ""
    },
    {
        "name": "SG121HA",
        "id": "bff9xxxxxxxxxxxxx",
        "key": "xxxxxxxxxxxxxx",
        "mac": "xxxxxxxxxxxxxxx",
        "uuid": "xxxxxxxxxxxxxxx",
        "category": "cz",
        "product_name": "SG121HA",
        "product_id": "qhoybrozfhcenkyh",
        "biz_type": 0,
        "model": "SG121HA",
        "sub": true,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/9ceffdb41c5f3b7e52b25cef42df1228.png",
        "parent": ""
    }
]

The HA Integration now asks for "Sub device ID (for devices connected via gateway)".

So, I tried:

ID: bf92xxxxxxxxxxx
Sub ID: 268bxxxxxxxxxxxxx (the "node_id" from the lock record)

Result: "Sorry, there is no support for this device."

ID: bff9xxxxxxxxxxxxx ("id" of the Hub)
Sub ID: bf92xxxxxxxxxxx ("id" of the Lock)

Result: "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."

ID: bff9xxxxxxxxxxxxx ("id" of the Hub)
Sub ID: 268bxxxxxxxxxxxxx (the "node_id" from the Lock)

Result: "Sorry, there is no support for this device."

I could try more combinations, but those seemed the only logical ones. Could you please confirm what should be going where, and/or if there's some other output I can provide?

Also, this is the output at Tuya Cloud API Explorer for Get Device Information:

{
  "result": {
    "active_time": 1684979830,
    "category": "ms",
    "category_name": "Residential Lock",
    "create_time": 1684979830,
    "gateway_id": "bff947cf73187bfb18znfa",
    "icon": "smart/icon/ay1536534747810ekKBj/99fe0d9b7b8dfac27ce56ce6f2682d65.png",
    "id": "bf92e1nv04nozktm",
    "ip": "",
    "lat": "xxxxx",
    "local_key": "xxxxxxxxxxxxxxxxxxxx",
    "lon": "xxxxxx",
    "model": "DL021HA",
    "name": "DL021HA",
    "node_id": "268b97205e021907",
    "online": true,
    "owner_id": "40094533",
    "product_id": "a6nttc41",
    "product_name": "DL021HA",
    "sub": true,
    "time_zone": "+10:00",
    "update_time": 1684982104,
    "uuid": "268b97205e021907"
  },
  "success": true,
  "t": 1684991328663,
  "tid": "3b687380faba11eda795ce4cada2c678"
}

Thank you.

@make-all make-all added the device improvement Improvement to an existing device config label May 25, 2023
@make-all
Copy link
Owner

It looks like just some dps need to be marked optional, as they are not reporting when the door has not been recently unlocked.

@make-all make-all reopened this May 25, 2023
make-all added a commit that referenced this issue May 25, 2023
Basically only the secondary entities (battery level, auto-lock setting) are
being reported, none of the lock feedback (which I guess only comes when the lock is unlocked).

Issue #654
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels May 25, 2023
@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

I tried unlocking the door and trying again, but no difference. Can you please confirm which ID should be going where?

@make-all
Copy link
Owner

Try redownloading the integration, and select "main" as the version to install if you want to test the latest change.

@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

OK, just did. This time I'm offered three different devices types:

  • mellerware_citymove_vacuum
  • simple_switch
  • simple_switch_timerv2

The log during it:

2023-05-25 17:16:32.702 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2023-05-25 17:16:32.702 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.3
2023-05-25 17:16:32.785 DEBUG (SyncWorker_6) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": false, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}}
2023-05-25 17:16:32.786 DEBUG (SyncWorker_6) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1684998992.7856324, "1": false, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
2023-05-25 17:16:32.793 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config abalon_bcm700d_curtain.yaml
2023-05-25 17:16:32.797 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config agl_ultramagic_lock.yaml
2023-05-25 17:16:32.799 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config alecoair_d12_dehumidifier.yaml
2023-05-25 17:16:32.803 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config alecoair_d12_home_dehumidifier.yaml
2023-05-25 17:16:32.808 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config alecoair_d14_dehumidifier.yaml
2023-05-25 17:16:32.812 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config alecoair_d16_dehumidifier.yaml
2023-05-25 17:16:32.814 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config andersson_gsh_heater.yaml
2023-05-25 17:16:32.816 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config anko_fan.yaml
2023-05-25 17:16:32.818 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config anko_kettle.yaml
2023-05-25 17:16:32.822 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_12speed_tower_fan.yaml
2023-05-25 17:16:32.824 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_19speed_fan.yaml
2023-05-25 17:16:32.826 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_6speed_fan.yaml
2023-05-25 17:16:32.828 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_fan.yaml
2023-05-25 17:16:32.830 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_fan_light.yaml
2023-05-25 17:16:32.832 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_panel_heater.yaml
2023-05-25 17:16:32.834 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_panel_heater_v2.yaml
2023-05-25 17:16:32.837 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_pb88uha_s2_switch.yaml
2023-05-25 17:16:32.842 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config arlec_thermostat_smartplug.yaml
2023-05-25 17:16:32.845 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config asakuki_diffuser.yaml
2023-05-25 17:16:32.847 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config asc_wifi_circuit_breaker.yaml
2023-05-25 17:16:32.849 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config aspen_asp200_fan.yaml
2023-05-25 17:16:32.851 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config atomi_ceiling_fan.yaml
2023-05-25 17:16:32.853 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config atomi_ceramic_heater.yaml
2023-05-25 17:16:32.856 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config atomi_string_lights.yaml
2023-05-25 17:16:32.859 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config aubess_1gang_switch.yaml
2023-05-25 17:16:32.861 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config aubess_2gang_switch.yaml
2023-05-25 17:16:32.863 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config avatto_curtain_light.yaml
2023-05-25 17:16:32.865 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config avatto_curtain_switch.yaml
2023-05-25 17:16:32.867 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config avatto_roller_blinds.yaml
2023-05-25 17:16:32.871 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config avatto_wt100_thermostat.yaml
2023-05-25 17:16:32.875 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config awow_th213_thermostat.yaml
2023-05-25 17:16:32.878 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config awow_th213v2_thermostat.yaml
2023-05-25 17:16:32.881 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bcom_intercom_camera.yaml
2023-05-25 17:16:32.884 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bac002_thermostat_c.yaml
2023-05-25 17:16:32.886 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bhp6000_thermostat_c.yaml
2023-05-25 17:16:32.888 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bhp6000_thermostat_f.yaml
2023-05-25 17:16:32.896 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bhp6000_thermostat_mapped.yaml
2023-05-25 17:16:32.898 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bht002_thermostat_c.yaml
2023-05-25 17:16:32.900 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beca_bht6000_thermostat_c.yaml
2023-05-25 17:16:32.903 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config becool_heatpump.yaml
2023-05-25 17:16:32.904 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config benexmart_blind_motor.yaml
2023-05-25 17:16:32.908 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beok_tgr81_thermostat_c.yaml
2023-05-25 17:16:32.912 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beok_tol47_thermostat.yaml
2023-05-25 17:16:32.916 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config beok_tr9b_thermostat.yaml
2023-05-25 17:16:32.918 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config betterlife_bl1500_heater.yaml
2023-05-25 17:16:32.921 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bht002_galw_thermostat.yaml
2023-05-25 17:16:32.924 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ble_hct611_watertimer.yaml
2023-05-25 17:16:32.925 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ble_orion_lock.yaml
2023-05-25 17:16:32.927 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ble_pt216_temp_humidity.yaml
2023-05-25 17:16:32.930 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config blitzwolf_bwsh2_humidifier.yaml
2023-05-25 17:16:32.933 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config blitzwolf_bwsh5_humidifier.yaml
2023-05-25 17:16:32.936 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config blitzwolf_bwshp6_smartplug.yaml
2023-05-25 17:16:32.942 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bresser_weather_station.yaml
2023-05-25 17:16:32.944 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config breville_easyair_purifier.yaml
2023-05-25 17:16:32.947 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config breville_smart_air_viral_protect_plus.yaml
2023-05-25 17:16:32.949 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config breville_smartairconnect_purifier.yaml
2023-05-25 17:16:32.952 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bvf_cp1_heater.yaml
2023-05-25 17:16:32.956 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config bwt_heatpump.yaml
2023-05-25 17:16:32.959 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config carson_cb.yaml
2023-05-25 17:16:32.960 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config catit_pet_feeder.yaml
2023-05-25 17:16:32.962 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config catit_pixi_6meal_feeder.yaml
2023-05-25 17:16:32.964 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config catit_pixi_smart_fountain.yaml
2023-05-25 17:16:32.967 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config cbi_astute_outdoor_smartswitch.yaml
2023-05-25 17:16:32.968 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config cc_curtain.yaml
2023-05-25 17:16:32.971 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ccb11_blind_controller.yaml
2023-05-25 17:16:32.973 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config chanfok_fan_light.yaml
2023-05-25 17:16:32.975 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config compteur_energy_meter.yaml
2023-05-25 17:16:32.980 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config cooper_hunter_air_conditioner.yaml
2023-05-25 17:16:32.987 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config daizuki_heatpump.yaml
2023-05-25 17:16:32.989 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config desk_lamp.yaml
2023-05-25 17:16:32.991 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config deta_dimmer_switch.yaml
2023-05-25 17:16:32.993 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config deta_fan.yaml
2023-05-25 17:16:32.996 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config devola_patio_heater.yaml
2023-05-25 17:16:33.001 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config digoo_dgsp01_dual_nightlight_switch.yaml
2023-05-25 17:16:33.003 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config digoo_dgsp202.yaml
2023-05-25 17:16:33.005 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dimming_lightbulb.yaml
2023-05-25 17:16:33.007 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ditua_dt1522yn_aromadiffuser.yaml
2023-05-25 17:16:33.009 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dongguan_garage_door_opener.yaml
2023-05-25 17:16:33.011 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dooya_curtain.yaml
2023-05-25 17:16:33.013 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dual_power_monitor_smartplug.yaml
2023-05-25 17:16:33.016 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dual_power_monitor_smartplugv2.yaml
2023-05-25 17:16:33.019 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config duux_blizzard_portable_aircon.yaml
2023-05-25 17:16:33.022 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eanons_humidifier.yaml
2023-05-25 17:16:33.026 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ebac_dj4000_dehumidifier.yaml
2023-05-25 17:16:33.028 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eberg_cooly_c35hd.yaml
2023-05-25 17:16:33.031 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eberg_qubo_q40hd_heatpump.yaml
2023-05-25 17:16:33.033 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ecostrad_accentiq_heater.yaml
2023-05-25 17:16:33.036 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ecostrad_iqceramic_radiator.yaml
2023-05-25 17:16:33.038 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eeese_carl_dehumidifier.yaml
2023-05-25 17:16:33.042 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eeese_otto_dehumidifier.yaml
2023-05-25 17:16:33.045 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eesee_adam_dehumidifier.yaml
2023-05-25 17:16:33.048 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_12wminv_heatpump.yaml
2023-05-25 17:16:33.051 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_airflex15w_heatpump.yaml
2023-05-25 17:16:33.054 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_cd12pro_dehumidifier.yaml
2023-05-25 17:16:33.056 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_cd12pw_dehumidifier.yaml
2023-05-25 17:16:33.058 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_cd12pwv2_dehumidifier.yaml
2023-05-25 17:16:33.061 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_cd20pro_dehumidifier.yaml
2023-05-25 17:16:33.063 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_cd25pro_dehumidifier.yaml
2023-05-25 17:16:33.066 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_desd9lw_dehumidifier.yaml
2023-05-25 17:16:33.069 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_ecosilent14hpw_aircon.yaml
2023-05-25 17:16:33.072 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config electriq_pd45e_dehumidifier.yaml
2023-05-25 17:16:33.076 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config em3378_weather_station.yaml
2023-05-25 17:16:33.079 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config emylo_energy_meter.yaml
2023-05-25 17:16:33.082 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config energy_monitoring_powerstrip.yaml
2023-05-25 17:16:33.085 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config es01_powerstrip.yaml
2023-05-25 17:16:33.088 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config essentials_purifier.yaml
2023-05-25 17:16:33.091 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config etersky_aroma_diffuser.yaml
2023-05-25 17:16:33.096 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config etop_ch7100_thermostat.yaml
2023-05-25 17:16:33.099 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config etop_ht_thermostat.yaml
2023-05-25 17:16:33.101 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_600_heater.yaml
2023-05-25 17:16:33.103 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_600_heater_v2.yaml
2023-05-25 17:16:33.105 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_601_heater.yaml
2023-05-25 17:16:33.107 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_800_heater.yaml
2023-05-25 17:16:33.108 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_saniwallheat2000_heater.yaml
2023-05-25 17:16:33.110 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config eurom_walldesignheat2000_heater.yaml
2023-05-25 17:16:33.114 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config fairland_iphcr15_heatpump.yaml
2023-05-25 17:16:33.117 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config fanco_ecosilentdeluxe.yaml
2023-05-25 17:16:33.121 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config fersk_vind_2_climate.yaml
2023-05-25 17:16:33.123 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config fs_03w_curtain.yaml
2023-05-25 17:16:33.124 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config garage_door_opener.yaml
2023-05-25 17:16:33.127 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config gardenpac_heatpump.yaml
2023-05-25 17:16:33.129 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ge_jasco_ultra_pro_toggle_dimmer_v2.yaml
2023-05-25 17:16:33.130 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ge_jasco_ultra_pro_toggle_switch.yaml
2023-05-25 17:16:33.134 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_dehumidifier.yaml
2023-05-25 17:16:33.136 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_fan.yaml
2023-05-25 17:16:33.138 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_geco_heater.yaml
2023-05-25 17:16:33.140 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_gpcv_heater.yaml
2023-05-25 17:16:33.143 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_gpdh340_dehumidifier.yaml
2023-05-25 17:16:33.147 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config goldair_gpph_heater.yaml
2023-05-25 17:16:33.150 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config gosund_usb_triple_powerstrip.yaml
2023-05-25 17:16:33.152 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config greenwind_dehumidifier.yaml
2023-05-25 17:16:33.153 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config grid_connect_double_switch.yaml
2023-05-25 17:16:33.156 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config grid_connect_usb_double_power_point.yaml
2023-05-25 17:16:33.158 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config grid_connect_usb_power_point.yaml
2023-05-25 17:16:33.161 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hdmi_sync_light.yaml
2023-05-25 17:16:33.164 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config heatstorm_hs6000gc_heater.yaml
2023-05-25 17:16:33.167 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hellnar_heatpump.yaml
2023-05-25 17:16:33.169 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config himox_h05_purifier.yaml
2023-05-25 17:16:33.171 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config himox_h06_purifier.yaml
2023-05-25 17:16:33.173 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hjz_radiator.yaml
2023-05-25 17:16:33.175 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config honeywell_dehumidifier.yaml
2023-05-25 17:16:33.177 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hosome_purifier.yaml
2023-05-25 17:16:33.179 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hydrotherm_dynamic_x8_water_heater.yaml
2023-05-25 17:16:33.183 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hysen_hy08acf_thermostat.yaml
2023-05-25 17:16:33.190 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hysen_hy08we2_thermostat.yaml
2023-05-25 17:16:33.193 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config hyundai_sahara_dehumidifier.yaml
2023-05-25 17:16:33.195 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ih001_led_controller.yaml
2023-05-25 17:16:33.197 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config illumanance_sensor.yaml
2023-05-25 17:16:33.200 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_ibbq4bw_thermometer.yaml
2023-05-25 17:16:33.205 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_itc306a_thermostat.yaml
2023-05-25 17:16:33.210 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_itc308_thermostat.yaml
2023-05-25 17:16:33.212 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_pth9cw_airquality.yaml
2023-05-25 17:16:33.217 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inkbird_sousvide_cooker.yaml
2023-05-25 17:16:33.219 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inow_heater_element.yaml
2023-05-25 17:16:33.222 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inow_heater_element_v2.yaml
2023-05-25 17:16:33.229 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inventor_atmospherexl_dehumidifier.yaml
2023-05-25 17:16:33.232 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config inventor_evaionpro_dehumidifier.yaml
2023-05-25 17:16:33.235 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ips_pro_heatpump.yaml
2023-05-25 17:16:33.237 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ir_moes_heatpump.yaml
2023-05-25 17:16:33.238 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ir_remote_sensors.yaml
2023-05-25 17:16:33.243 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config jiahong_et72w_thermostat.yaml
2023-05-25 17:16:33.248 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config jjpro_jpd01_dehumidifier.yaml
2023-05-25 17:16:33.252 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config jjpro_jpd02_dehumidifier.yaml
2023-05-25 17:16:33.255 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kabum_smart500_vacuum.yaml
2023-05-25 17:16:33.257 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kkmoon_airquality_monitor.yaml
2023-05-25 17:16:33.260 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config klarstein_dryfy_pro_connect_dehumidifier.yaml
2023-05-25 17:16:33.263 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config klarta_humea_humidifier.yaml
2023-05-25 17:16:33.270 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_bidet.yaml
2023-05-25 17:16:33.275 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_dehumidifier.yaml
2023-05-25 17:16:33.278 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_garage_opener.yaml
2023-05-25 17:16:33.281 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_glass_1_7l_kettle.yaml
2023-05-25 17:16:33.283 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_kahtp_heater.yaml
2023-05-25 17:16:33.286 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_kashmfp20ba_heater.yaml
2023-05-25 17:16:33.289 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_kasthfp2kwa_towerheater.yaml
2023-05-25 17:16:33.292 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_kawfhtp_heater.yaml
2023-05-25 17:16:33.294 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kogan_kawfpac09ya_airconditioner.yaml
2023-05-25 17:16:33.300 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config konlen_wf96l_waterlevel_controller.yaml
2023-05-25 17:16:33.305 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kyvol_e30_vacuum.yaml
2023-05-25 17:16:33.307 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config kyvol_ea200_humidifier.yaml
2023-05-25 17:16:33.311 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ledkia_fan_light.yaml
2023-05-25 17:16:33.317 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ledlux_thermostat.yaml
2023-05-25 17:16:33.321 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config lefant_ls1_vacuum.yaml
2023-05-25 17:16:33.324 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config lefant_m213_vacuum.yaml
2023-05-25 17:16:33.328 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config lenovo_e1_vacuum.yaml
2023-05-25 17:16:33.331 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config lexy_f501_fan.yaml
2023-05-25 17:16:33.333 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config lifubide_x600_purifier.yaml
2023-05-25 17:16:33.336 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config light_string.yaml
2023-05-25 17:16:33.338 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config logicom_powerstrip.yaml
2023-05-25 17:16:33.340 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config loonas_curtain.yaml
2023-05-25 17:16:33.342 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config loratap_curtain_switch.yaml
2023-05-25 17:16:33.344 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config loratap_garage_door.yaml
2023-05-25 17:16:33.346 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config loratap_relay.yaml
2023-05-25 17:16:33.348 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config loratap_zigbee_curtain.yaml
2023-05-25 17:16:33.351 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config m027_curtain.yaml
2023-05-25 17:16:33.355 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config madimack_elite_v3_heatpump.yaml
2023-05-25 17:16:33.360 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config madimack_heatpump.yaml
2023-05-25 17:16:33.366 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config me80_thermostat.yaml
2023-05-25 17:16:33.370 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config mellerware_citymove_vacuum.yaml
2023-05-25 17:16:33.370 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Mellerware vacuum
2023-05-25 17:16:33.379 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config minco_mh1823d_thermostat.yaml
2023-05-25 17:16:33.381 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config mirabella_genio_usb.yaml
2023-05-25 17:16:33.385 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moebot_s_mower.yaml
2023-05-25 17:16:33.387 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_bht002_thermostat_c.yaml
2023-05-25 17:16:33.389 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_dimmer.yaml
2023-05-25 17:16:33.391 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_motionsensor_light.yaml
2023-05-25 17:16:33.394 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_rgb_socket.yaml
2023-05-25 17:16:33.399 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_temp_humidity.yaml
2023-05-25 17:16:33.402 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config moes_threegang.yaml
2023-05-25 17:16:33.406 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config motion_sensor_light.yaml
2023-05-25 17:16:33.409 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config nashone_mts700wb_thermostat.yaml
2023-05-25 17:16:33.411 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config nedis_airquality.yaml
2023-05-25 17:16:33.413 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config nedis_htpl20f_heater.yaml
2023-05-25 17:16:33.416 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config nedis_pet_feeder.yaml
2023-05-25 17:16:33.420 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config neo_ir_climate_controller.yaml
2023-05-25 17:16:33.422 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config netmostat_n1_thermostat.yaml
2023-05-25 17:16:33.423 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config orion_outdoor_siren.yaml
2023-05-25 17:16:33.425 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config orion_ptc2000_heater.yaml
2023-05-25 17:16:33.428 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config orion_smart_lock.yaml
2023-05-25 17:16:33.432 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config owon_pct513_thermostat.yaml
2023-05-25 17:16:33.435 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config parkside_plgs2012a1_smart_charger.yaml
2023-05-25 17:16:33.439 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config pc321ty_energy_meter.yaml
2023-05-25 17:16:33.443 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config pgst_climate_sensor.yaml
2023-05-25 17:16:33.450 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config phw218_waterquality_monitor.yaml
2023-05-25 17:16:33.452 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config pir_sensor.yaml
2023-05-25 17:16:33.456 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config pj1103_clamp_meter.yaml
2023-05-25 17:16:33.459 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poiema_one_purifier.yaml
2023-05-25 17:16:33.461 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poolex_qline_heatpump.yaml
2023-05-25 17:16:33.463 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poolex_silverline_heatpump.yaml
2023-05-25 17:16:33.465 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config poolex_vertigo_heatpump.yaml
2023-05-25 17:16:33.467 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config powerstrip_4outlet_usbs.yaml
2023-05-25 17:16:33.468 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config princess_panel_heater.yaml
2023-05-25 17:16:33.471 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config purline_m100_heater.yaml
2023-05-25 17:16:33.473 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config qnect_usb_powerstrip.yaml
2023-05-25 17:16:33.475 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config qoto_03_sprinkler.yaml
2023-05-25 17:16:33.477 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config qs_c01_curtain.yaml
2023-05-25 17:16:33.480 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config quad_powerstrip.yaml
2023-05-25 17:16:33.482 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config remora_heatpump.yaml
2023-05-25 17:16:33.485 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config renpho_rp_ap001s.yaml
2023-05-25 17:16:33.487 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rgb_nightlight_outlet.yaml
2023-05-25 17:16:33.490 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rgbcw_lightbulb.yaml
2023-05-25 17:16:33.492 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rgbcw_lightbulbv2.yaml
2023-05-25 17:16:33.495 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rgbw_lightbulb.yaml
2023-05-25 17:16:33.498 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rinkmo_d2_vacuum.yaml
2023-05-25 17:16:33.500 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rojeco_pet_feeder.yaml
2023-05-25 17:16:33.503 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rotenso_ronir35wi_heatpump.yaml
2023-05-25 17:16:33.506 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config rumba_bathroom_heater.yaml
2023-05-25 17:16:33.509 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config salcar_t9w_thermostat.yaml
2023-05-25 17:16:33.514 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config saswell_c16_thermostat.yaml
2023-05-25 17:16:33.517 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config saswell_t29utk_thermostat.yaml
2023-05-25 17:16:33.521 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config sd123_hpr01_presence.yaml
2023-05-25 17:16:33.524 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config sendo_airconditioner_c.yaml
2023-05-25 17:16:33.529 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config setti_czajnik_kettle.yaml
2023-05-25 17:16:33.531 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config sh07_sprinkler_controller.yaml
2023-05-25 17:16:33.533 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config sherko_curtain.yaml
2023-05-25 17:16:33.539 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config shinco_30d_dehumidifier.yaml
2023-05-25 17:16:33.542 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config silvercrest_kettle.yaml
2023-05-25 17:16:33.544 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_blinds.yaml
2023-05-25 17:16:33.546 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_dual_switch_timer.yaml
2023-05-25 17:16:33.547 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_dual_switch_timer_v2.yaml
2023-05-25 17:16:33.549 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_lightbulb.yaml
2023-05-25 17:16:33.550 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_quad_switch.yaml
2023-05-25 17:16:33.552 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_rgbcw_lightbulb.yaml
2023-05-25 17:16:33.554 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch.yaml
2023-05-25 17:16:33.554 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch
2023-05-25 17:16:33.555 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timer.yaml
2023-05-25 17:16:33.557 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_switch_timerv2.yaml
2023-05-25 17:16:33.557 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Matched config for Simple switch with timer
2023-05-25 17:16:33.558 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_triple_switch.yaml
2023-05-25 17:16:33.560 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config simple_triple_switch_timer.yaml
2023-05-25 17:16:33.563 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config single_switch_with_backlight.yaml
2023-05-25 17:16:33.565 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config skyfan_dc_fan.yaml
2023-05-25 17:16:33.567 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config skyfan_fan_light.yaml
2023-05-25 17:16:33.571 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smart_multi_plug_4t_4usb.yaml
2023-05-25 17:16:33.576 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartmcb_smt006_energymeter.yaml
2023-05-25 17:16:33.578 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplug_encoded.yaml
2023-05-25 17:16:33.581 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplug_usb.yaml
2023-05-25 17:16:33.583 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv1.yaml
2023-05-25 17:16:33.585 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2.yaml
2023-05-25 17:16:33.587 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2_childlock.yaml
2023-05-25 17:16:33.597 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2_energy.yaml
2023-05-25 17:16:33.602 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2_energyv2.yaml
2023-05-25 17:16:33.607 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2_energyv3.yaml
2023-05-25 17:16:33.610 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv2_polled_power.yaml
2023-05-25 17:16:33.613 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config smartplugv3.yaml
2023-05-25 17:16:33.616 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config solar_inverter.yaml
2023-05-25 17:16:33.617 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config somgom_double_switch.yaml
2023-05-25 17:16:33.619 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config somgom_single_switch.yaml
2023-05-25 17:16:33.624 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config space_dog_music_lamp.yaml
2023-05-25 17:16:33.626 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config stadlerform_eva_humidifier.yaml
2023-05-25 17:16:33.629 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config stadlerform_roger_purifier.yaml
2023-05-25 17:16:33.633 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config starlight_heatpump.yaml
2023-05-25 17:16:33.636 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config stirling_fs140dc_fan.yaml
2023-05-25 17:16:33.642 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config t5e_wf_thermostat.yaml
2023-05-25 17:16:33.647 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tadiran_wind_heatpump.yaml
2023-05-25 17:16:33.649 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config taxnele_energy_meter.yaml
2023-05-25 17:16:33.651 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config teckin_ss42_sockets.yaml
2023-05-25 17:16:33.653 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tellur_usb_power_strip.yaml
2023-05-25 17:16:33.655 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tesla_air_purifier_mini.yaml
2023-05-25 17:16:33.658 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tesla_air_purifier_pro.yaml
2023-05-25 17:16:33.660 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config th16_temp_humidity_sensor.yaml
2023-05-25 17:16:33.661 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tmwf02_fan.yaml
2023-05-25 17:16:33.664 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tompd_63lw_breaker.yaml
2023-05-25 17:16:33.666 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config treatlife_ds02_fan.yaml
2023-05-25 17:16:33.667 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config treatlife_ds03_fan_light.yaml
2023-05-25 17:16:33.672 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config tyte_d1_thermostat.yaml
2023-05-25 17:16:33.678 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config ultenic_air_fryer.yaml
2023-05-25 17:16:33.682 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config usb_4way_powerstrip.yaml
2023-05-25 17:16:33.685 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config vork_vk6067aw_purifier.yaml
2023-05-25 17:16:33.695 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wdyk_2p63a_energy_meter.yaml
2023-05-25 17:16:33.701 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wdyk_3phase_energymonitor.yaml
2023-05-25 17:16:33.703 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config weau_pool_heatpump.yaml
2023-05-25 17:16:33.706 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config weau_pool_heatpump13kW.yaml
2023-05-25 17:16:33.709 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config weau_pool_heatpump_v2.yaml
2023-05-25 17:16:33.711 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wetair_wawh1210lw_humidifier.yaml
2023-05-25 17:16:33.714 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wetair_wch750_heater.yaml
2023-05-25 17:16:33.717 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config whm04_doorbell.yaml
2023-05-25 17:16:33.722 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wilfa_haze_hu400bc_humidifier.yaml
2023-05-25 17:16:33.725 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wistar_roller_blind.yaml
2023-05-25 17:16:33.728 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config wistar_roller_blind_nopos.yaml
2023-05-25 17:16:33.730 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config woox_r4028_powerstrip.yaml
2023-05-25 17:16:33.732 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config yieryi_ph_meter.yaml
2023-05-25 17:16:33.737 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config yym_805SW_aroma_nightlight.yaml
2023-05-25 17:16:33.739 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config zemismart_curtain.yaml
2023-05-25 17:16:33.743 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config zemismart_roller_shade.yaml
2023-05-25 17:16:33.746 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config zx_g30_alarm.yaml
2023-05-25 17:16:33.749 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config zym100_presence_sensor.yaml
2023-05-25 17:16:33.750 WARNING (MainThread) [custom_components.tuya_local.config_flow] Device matches simple_switch_timerv2 with quality of 43%. DPS: {"updated_at": 1684998992.7856324, "1": false, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": ""}
2023-05-25 17:16:33.756 WARNING (MainThread) [custom_components.tuya_local.config_flow] Report this to https://github.com/make-all/tuya-local/issues/

I tried going with Simple Switch, but no response from anything when toggling the created switch.

I'd still really love for you to confirm that I'm putting the right IDs in the right places. Could it just be getting the dps of hub outlet because I'm feeding the wrong IDs? When creating, I always switch Protocol to Auto and never tick the "poll" checkbox.

@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

OK, I got it detected! I used the "id" for Device ID, and "node_id" or "uuid" (they're the same value) for "Sub device ID". Then it detects as Orion BLE Lock!

@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

OK. Progress. I have a Lock Device in Home Assistant, which has an "Auto-Lock" switch under Configuration. Toggling that in HA properly updates "Passage Mode" in the Tuya app. Changing it on either device is quickly reflected on the other.

BUT, there is also a Lock entity. However, pressing Unlock or Lock fails with "Failed to call service lock/lock.". The following is in the log:

[core-ssh ~]$ 2023-05-25 17:29:29.713 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140217949207712] 
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 980, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/lock/__init__.py", line 106, in _async_unlock
    await entity.async_unlock(**remove_entity_service_fields(service_call))
  File "/config/custom_components/tuya_local/lock.py", line 117, in async_unlock
    raise NotImplementedError()
NotImplementedError
2023-05-25 17:29:31.645 DEBUG (MainThread) [custom_components.tuya_local.device] Tuya Bluetooth Hub received {"1": false, "9": 0, "38": "memory", "40": "relay", "41": false, "42": "", "43": "", "full_poll": true}
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] option values: ['On', 'Off', 'Last state']
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] option values: ['On', 'Off', 'Last state']
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 38 value from memory to Last state
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Considering mapping for range of value
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Considering mapping for range of value
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Considering mapping for step of value
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Step for value is 60 with scale 60
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 9 value from 0 to 0.0
2023-05-25 17:29:31.646 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Simple switch with timer: Mapped dps 9 value from 0 to 0.0
2023-05-25 17:29:31.746 DEBUG (MainThread) [custom_components.tuya_local.device] Orion BLE lock received {"8": 83, "12": 0, "19": 1, "33": true, "full_poll": true}
2023-05-25 17:29:31.747 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] No mapping for sensor, unable to determine valid values
2023-05-25 17:29:31.747 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] No mapping for sensor, unable to determine valid values

@make-all
Copy link
Owner

That is expected, the device did not provide any obvious way to unlock via the local network. But the lock entity should report what credential was used to unlock the door, so at least you will have logging.
If you can figure out the remote unlocking, you can give the details so the config can be updated - many locks have a request response format, so someone has to press a doorbell button, then the door can be unlocked remotely within 30s or so, or there may be some that require a PIN code for remote unlocking, as protection against someone tapping into your local network and unlocking the door.

@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

OK, that's good to know. Thank you. I will have a dig.

I do see the "changed_by" attribute, currently "changed_by: App #1". I've tried unlocking the lock the two ways I can… app and fingerprint. In the Tuya app, I see the last unlock referred to as "Unlock with Mobile Phone" or "Unlock with fingerprint", but the "changed_by" attribute doesn't appear to change from "App #1".

make-all added a commit that referenced this issue May 25, 2023
If these persist, app always overrides fingerprint.
With them not persisting, it is likely they will only be available in the UI
breifly, but at least automations can trigger and they will be in the logbook.

Issue #654
@make-all
Copy link
Owner

If you update again, I have tried to fix the reporting. Likely now the "changed_by" will only appear briefly after an unlock, but it might be in the LogBook, and automations triggered on it will work so you could use an automation to update a Helper entity if you want to track the last unlock long term.

@jaydisc
Copy link
Author

jaydisc commented May 25, 2023

OK. I'm running b9d978a now. I still haven't witnessed any change in changed_by, which still has value of "App #1". Doesn't appear to appear in logbook. Battery level seems to be working well too.

Screenshot 2023-05-25 at 7 39 10 pm image

@jaydisc
Copy link
Author

jaydisc commented May 26, 2023

So, the "Auto-Lock" (or "Passage Mode" as Orion calls it) really kinds of acts like a Locked/Unlocked control. If Auto-Lock is on, the handle is locked. If it's off, it isn't. The Unlock function in the Tuya app is only just a temporary unlock-for-a-few-seconds. I'm not sure it's even worth pursuing that, when we have Lock/Unlock functionality just from the Auto-Lock switch.

I have set up the following Template Lock based exclusively on the auto-lock switch:

lock:
  - platform: template
    name: Office Hallway Lock
    unique_id: A797C836-9470-4AB2-A304-291D8B9F1D5F
    value_template: "{{ is_state('switch.office_hallway_lock_auto_lock', 'on') }}"
    lock:
      service: switch.turn_on
      target:
        entity_id: switch.office_hallway_lock_auto_lock
    unlock:
      service: switch.turn_off
      target:
        entity_id: switch.office_hallway_lock_auto_lock

I initially tried to just use the simple, HA-integrated method of Switch-as-Lock, but unfortunately, it's inverted, and I don't believe the Helper has an easy way of reversing it, so Template Lock to the rescue. Super simple, and works awesomely.

Thank you so much for your attention and effort. I'm going to go order another two!

@jaydisc jaydisc closed this as completed May 26, 2023
make-all added a commit that referenced this issue May 30, 2023
When true, the door is locked unless opened by credential.  When false, the
door is unlocked, so we can use that for manual control.

Issue #654
@make-all make-all reopened this May 30, 2023
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release device improvement Improvement to an existing device config labels May 30, 2023
@jaydisc
Copy link
Author

jaydisc commented Jun 14, 2023

Hi, I thought I'd re-open this (please tell me if this should be a new issue instead) because I have not been able to get the unlocking of the door to be a trigger an automation as you suggested above. I've tried using the 'unlocking' and 'unlocked' events to no avail (no traces either):

trigger:
  - platform: device
    device_id: 3edd6a86e47973b87580caf1d3284f95
    domain: lock
    entity_id: lock.office_lock_hallway
    type: unlocking
trigger:
  - platform: device
    device_id: 3edd6a86e47973b87580caf1d3284f95
    domain: lock
    entity_id: lock.office_lock_hallway
    type: unlocked

Also, am I able to switch back to the main/master branch?

Thank you.

@make-all
Copy link
Owner

Since 2023.6.0 was released yesterday, I don't think there is currently any reason to switch back to "main". But in general, if you select "Redownload" in HACS, you can choose a specific version to install, from a list that includes "main" along with recent releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants