Closed robertrebor closed 1 year ago
@robertrebor, please enable debug logs and provide the full logs. I have similar PIRs judging by the DP list and they work fine.
@alexualbu can you write me short manual how I can enable debug logs? I am not familiar with debugging :(
@robertrebor, you should add something like this in configuration.yaml
logger: default: warning logs: custom_components.localtuya: debug
@alexualbu I tried to add logger and I got file in attachment
@robertrebor , my suspicion right now is that you are using the montion sensor device_id instead of the cid / node_id. Can you confirm? You can grab the node_id from the tuya developer console, api explorer, get Device Specification
@alexualbu you are absolutely right. I am stupid, I used device_id. Now is everything absolutely OK. Thank you very much.
Issue can be closed.
@robertreborm excellent :) i think you can close it yourself
Dear all
i tried to use this integration for my ZIgbee motion sensor. I tried to use YAML and UI configuration, but I have only unavailable status for DPs.
Is anybody here who has some zigbee device and these devices run correctly? I can't find solution how to solve my problem.
MY CODE
localtuya:
host: 192.168.3.18 device_id: bf30fe97XXXXXXX local_key: 78ffaXXXXXX friendly_name: Gateway_new protocol_version: "3.4" is_gateway: true
parent_gateway: Gateway_new device_id: bf7bc61XXXXX friendly_name: Tuya Zigbee PIR Sensor entities:
TUYA IOT
{ "result": { "category": "pir", "functions": [], "status": [ { "code": "pir", "dp_id": 1, "type": "Enum", "values": "{\"range\":[\"pir\",\"none\"]}" }, { "code": "battery_percentage", "dp_id": 4, "type": "Integer", "values": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":0,\"step\":1}" } ] }, "success": true, "t": 1683102440269, "tid": "52377119e98c11ed8b506a01366d7453" }