Hallo, ich habe diese drei Tür/Fenster Sensoren gekauft: https://www.amazon.de/gp/product/B09L7K99WY/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
Ich habe sie über die Tuya iot Platform und das entsprechende Modul in FHEM integriert. Readings werden meiner Meinung nach richtig eingelesen. Das Problem ist, dass die Readings nicht richtig aktualisiert werden. Der online/offline Status wird praktisch immer aktualisiert. Der doorcontact_state allerdings nur sporadisch. Eine Regelmäßigkeit habe ich nicht erkennen können.
Aufgefallen ist mir ein Feld. Das Attribut tuya_spec_functions beinhaltet nur "[]". Ist das richtig?
In der Tuya App und auch in der Tuya iot Plattform wird der Status des Sensors richtig wiedergegeben.
Ich stehe auf dem Schlauch.
Zitatdefmod test_contact fhempy tuya xxxxx
attr test_contact dp_01 doorcontact_state
attr test_contact dp_02 battery_percentage
attr test_contact group tuya
attr test_contact room fhempy
attr test_contact tuya_spec_functions []
attr test_contact tuya_spec_status [{'code': 'doorcontact_state', 'dp_id': 1, 'type': 'Boolean', 'values': '{}'}, {'code': 'battery_percentage', 'dp_id': 2, 'type': 'Integer', 'values': '{"unit":"%","min":0,"max":100,"scale":0,"step":1}'}]
setstate test_contact offline
setstate test_contact 2022-09-05 17:25:17 active_time 1662151681
setstate test_contact 2022-09-05 17:26:47 battery_percentage 100.0
setstate test_contact 2022-09-05 17:25:17 biz_type 0
setstate test_contact 2022-09-05 17:25:17 category mcs
setstate test_contact 2022-09-05 17:25:17 create_time 1662151681
setstate test_contact 2022-09-06 18:55:55 doorcontact_state off
setstate test_contact 2022-09-05 17:23:42 dp_01 0
setstate test_contact 2022-09-05 17:23:42 dp_02 100
setstate test_contact 2022-09-05 17:25:17 icon smart/icon/ay1572620709242ZjWXS/cf9f05b81314dc7589eb00cc1c3dceb1.png
setstate test_contact 2022-09-05 17:25:17 id xxxxx
setstate test_contact 2022-09-05 17:25:17 ip xxxxx
setstate test_contact 2022-09-05 17:25:17 lat xxxxx
setstate test_contact 2022-09-05 17:25:17 local_key xxxxx
setstate test_contact 2022-09-05 17:25:17 lon xxxxx
setstate test_contact 2022-09-05 17:25:17 model WIFI-MC-092
setstate test_contact 2022-09-05 17:25:17 name Contact Sensor 2
setstate test_contact 2022-09-05 17:25:17 online 1
setstate test_contact 2022-09-05 17:25:17 owner_id xxxxx
setstate test_contact 2022-09-05 17:25:17 product_id xxxxx
setstate test_contact 2022-09-05 17:25:17 product_name Contact Sensor
setstate test_contact 2022-09-06 19:20:03 state offline
setstate test_contact 2022-09-05 17:25:17 sub 0
setstate test_contact 2022-09-05 17:25:17 time_zone +02:00
setstate test_contact 2022-09-05 17:25:17 uid xxxxx
setstate test_contact 2022-09-05 17:25:17 update_time 1662151685
setstate test_contact 2022-09-05 17:25:17 uuid xxxxx