-
Notifications
You must be signed in to change notification settings - Fork 209
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
PIR WIFI sensor does not changing statuses in HA (motion/no motion) #144
Comments
Me too, Arlec movement sensor and door sensor, neither send updates. |
Same here, tuya and sonoff motion sensor and tuya door sensor are not updating the status on HA |
Same here with the arlec units. Only updates when you restart HA |
@tsutsuku after update to v 1.3.2 issue still exist. Status of PIR is not changing in HA. I am wondering: was the latest update related to PIR status or it was fix for something else? Regards! |
Even in API Explorer -> Get Device status sensor always show state: PIR, however in Tuya Smart Life app IOS works normal |
@tsutsuku Dear, Tsutsuku Regards |
@saharajesh880 @schmurrie How is yours? Still no updates for PIR sensors? |
Still no updates, still not working unfortunately |
I have the same issue with , Brand: Nedis 2021-07-22 15:03:45 DEBUG (SyncWorker_7) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/08325122dc4f225c3a75/specifications, params = None, body = None, headers = {'client_id': '4c8ts7yyarsuyqlsz7e9', 'sign': '603E169B63663384CFB7409AD2F86EF4D960A217A48C6119D159F5056ADC2A68', 'sign_method': 'HMAC-SHA256', 'access_token': 'a617ab41e4a5d1022eca34c026fab79b', 't': '1626959025437', 'lang': 'en'} this is now added to the api and i can se it in ha but it does not update it's status |
@tsutsuku Pls advise if any updates on that? REGARDS |
@fredrikbuchanan You can create a ticket in the Tuya service console with your device specifications. |
@alexreddy78 Can you provide more logs with [tuya-openmq]? |
I have already done that, and it looks ok i think on that end. i can get updated status if i reload the integration. |
Dear @tsutsuku curl --request GET "https://openapi.tuyaeu.com/v1.0/devices/20372743500291d443e2/specifications" --header "sign_method: HMAC-SHA256" --header "client_id: mp9ctfjgaq07xr07ytc4" --header "t: 1627460652295" --header "mode: cors" --header "Content-Type: application/json" --header "sign: 5F9442D030934ACFE8BCEE51899EE757A6A2585C27D4ECCCF262C1F47677DD38" --header "access_token: " And what is tuya-openmq? How to get to this? Pls advise. REGARDS |
@tsutsuku Dear Tsutsuku, More LOGS for you, pls: 2021-07-30 11:53:48 DEBUG (Thread-5) [tuya iot] _on_log: Received PUBLISH (d0, q0, r0, m0), 'cloud/token/in/2cfcb55b3ee5999bd082303589366df0', ... (265 bytes) Kindly advise Regards |
@tsutsuku Dear Tsutsuku, Did you have a little chance and time to see LOGs above and advise if there’s any updates on issue? REGARDS and hope hear you soon |
@tsutsuku the PIR sensor is working! But the state is never reset to OFF. |
@tsutsuku Dear Tsutsuku, Any news regarding PIRs? Still not working after 1.5.0 update... :( BRGDS |
@alexreddy78 PIR has two statuses normally, "pir" and "none", but some Pir only has "pir" status which is decided by the manufacturer. To these PIR sensors, the "none" status will be set by the client (like SmartLife App) after some seconds with no "pir" status received. v1.5.0 adds the same thing. |
@tsutsuku Dear Tsutsuku, Thanks for quick reply! Awesome, will wait fix from your side Best Regards |
@tsutsuku Dear Tsutsuku, As from yesterday PIR sensors are changing statuses, but there is an issue with time of OFF event. As per PIR events in Home Assistant, sensor send OFF (no motion) after 10 sec and this is a problem as origin Tuya APP and firmware is sending OFF after 2 minutes. Senors stay active in Tuya APP but in HA is shown OFF. So it means that HA send OFF too earlier and can't send ON (motion detected) for another 1.50 sec. Pls advise. Best Regards |
Normally the "send OFF" is decided by the manufacturer in Tuya APP Device Panel, so it's maybe 10s for A and 2 minutes for B. So I think it better to add a NumberEntity for the "send OFF time" setting in HA. We will add this in the future. |
Dear @tsutsuku I'm having the same issue which my PIR cannot change status. It maintains as On or Off. I can manually set it in Developer Tools. Can you explain your last message to Alex? I dont understand about the NumberEntity. How do I go about fixing this |
For everybody who has this issue, please go here: #113 I made a mistake of not reading EVERYTHING on the main readme. Please go through ALL. Even though you think you have, please re-read. Took me so many readings to find the solution. Thanks Tuya team for being patient, (although not responding to me). :D |
This is different issue. This is Bluetooth/Wifi/Zigbee PIR sensors. |
That's exactly my PIR issue. Odd thing: they worked fine in the earlier Tuya V2 integration. Also they work fine in Athom's Homey, which uses exactly the same Tuya iot cloud project API (https://github.com/jurgenheine/com.tuya.cloud). |
Checking my PIR sensor's diagnostics JSON, I see it only has the "pir" status, but nonetheless it never goes back from "detected". Checking the device debugger in the Tuya web platform, I do see it's sending detection events when expected, so it seems it's just missing the auto-off which HA should be sending? Or am I missing something? |
" so it seems it's just missing the auto-off which HA should be sending? " |
{
"result": {
"active_time": 1600712608,
"biz_type": 18,
"category": "pir",
"create_time": 1600712608,
"icon": "smart/icon/ay1524194438166Zg2hZ/c3db264e1bc8e6ab11cf88171e87dc39.jpg",
"id": "",
"ip": "",
"lat": "",
"local_key": "",
"lon": "",
"name": "Душ",
"online": true,
"owner_id": "16305239",
"product_id": "XFD2nSDKxFlGV5sV",
"product_name": "PIR Sensor",
"status": [
{
"code": "pir",
"value": "pir"
},
{
"code": "battery_value",
"value": 81
}
],
"sub": false,
"time_zone": "+03:00",
"uid": "eu1600250372644kZmGd",
"update_time": 1626249312,
"uuid": "20372743500291bb1b9e"
},
"success": true,
"t": 1626254980444
}
Device specifications (please complete the following information, which can be found in log):
{
"result": {
"category": "pir",
"functions": [],
"status": [
{
"code": "pir",
"type": "Enum",
"values": "{"range":["pir","none"]}"
},
{
"code": "battery_value",
"type": "Integer",
"values": "{"unit":"","min":0,"max":10000,"scale":0,"step":1}"
}
]
},
"success": true,
"t": 1626255049113
}
The text was updated successfully, but these errors were encountered: