fhempy: Wassersensoren

Begonnen von thburkhart, 23 Januar 2023, 18:34:53

Vorheriges Thema - Nächstes Thema

thburkhart

hallo,

ich habe Wassersensoren über fhempy _local eingebunden:

INFO:

[code]define tuya_local_50880180cc50e30cbe91 fhempy tuya x x x 3.3 x x
attr tuya_local_50880180cc50e30cbe91 DbLogExclude .*
attr tuya_local_50880180cc50e30cbe91 alias Wassersensor 1 Kueche
attr tuya_local_50880180cc50e30cbe91 dp_101 watersensor_state
attr tuya_local_50880180cc50e30cbe91 dp_102 battery_state
attr tuya_local_50880180cc50e30cbe91 event-on-change-reading .*
attr tuya_local_50880180cc50e30cbe91 group tuya
attr tuya_local_50880180cc50e30cbe91 room fhempy
attr tuya_local_50880180cc50e30cbe91 tuya_spec_functions []
attr tuya_local_50880180cc50e30cbe91 tuya_spec_status [{'code': 'battery_state', 'dp_id': 102, 'type': 'Enum', 'values': {'range': ['low', 'middle', 'high']}}, {'code': 'watersensor_state', 'dp_id': 101, 'type': 'Enum', 'values': {'range': ['1', '2']}}]
#   CFGFN     
#   DEF        tuya SmFKLTOcGHbPQvmh 50880180cc50e30cbe91 192.168.9.23 7db73073d587d531 3.3 ea8453wdazquzfl08l0e 8a4b27dd759d4c6a9456aa8155d2a0ea
#   DEVICEID   50880180cc50e30cbe91
#   FHEMPYTYPE tuya
#   FUUID      63cec14e-f33f-fd5f-9295-eaf8634619174825
#   IODev      local_pybinding
#   NAME       tuya_local_50880180cc50e30cbe91
#   NR         3128
#   PYTHONTYPE tuya
#   STATE      ready
#   TYPE       fhempy
#   eventCount 6
#   READINGS:
#     2023-01-23 18:24:07   active_time     1556470433
#     2023-01-23 18:24:07   biz_type        18
#     2023-01-23 18:24:07   category        sj
#     2023-01-23 18:24:07   create_time     1548935481
#     2023-01-23 18:24:26   dp_01           184
#     2023-01-23 18:24:26   dp_02           47
#     2023-01-23 18:24:26   dp_04           35
#     2023-01-23 18:24:26   dp_32           normal
#     2023-01-23 18:24:07   icon            smart/icon/1528364839bqwi2byfbhv_0.png
#     2023-01-23 18:24:07   id              50880180cc50e30cbe91
#     2023-01-23 18:24:07   ip              46.5.23.119
#     2023-01-23 18:24:07   lat             48.5584
#     2023-01-23 18:24:07   local_key       7db73073d587d531
#     2023-01-23 18:24:07   lon             9.2025
#     2023-01-23 18:24:07   name            Wassersensor 1 Kueche
#     2023-01-23 18:24:07   online          1
#     2023-01-23 18:24:07   owner_id        3389434
#     2023-01-23 18:24:07   product_id      SmFKLTOcGHbPQvmh
#     2023-01-23 18:24:07   product_name    Water sensor
#     2023-01-23 18:24:26   state           ready
#     2023-01-23 18:24:07   sub             0
#     2023-01-23 18:24:07   time_zone       +01:00
#     2023-01-23 18:24:07   uid             eu1548823829280mLHX1
#     2023-01-23 18:24:07   update_time     1671579469
#     2023-01-23 18:24:07   uuid            50880180cc50e30cbe91
#   args:
#     tuya_local_50880180cc50e30cbe91
#     fhempy
#     tuya
#     SmFKLTOcGHbPQvmh
#     50880180cc50e30cbe91
#     192.168.9.23
#     7db73073d587d531
#     3.3
#     ea8453wdazquzfl08l0e
#     8a4b27dd759d4c6a9456aa8155d2a0ea
#   argsh:
#
setstate tuya_local_50880180cc50e30cbe91 ready
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 active_time 1556470433
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 biz_type 18
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 category sj
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 create_time 1548935481
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:26 dp_01 184
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:26 dp_02 47
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:26 dp_04 35
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:26 dp_32 normal
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 icon smart/icon/1528364839bqwi2byfbhv_0.png
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 id 50880180cc50e30cbe91
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 ip 46.5.23.119
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 lat 48.5584
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 local_key 7db73073d587d531
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 lon 9.2025
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 name Wassersensor 1 Kueche
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 online 1
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 owner_id 3389434
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 product_id SmFKLTOcGHbPQvmh
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 product_name Water sensor
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:26 state ready
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 sub 0
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 time_zone +01:00
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 uid eu1548823829280mLHX1
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 update_time 1671579469
setstate tuya_local_50880180cc50e30cbe91 2023-01-23 18:24:07 uuid 50880180cc50e30cbe91

[/code]

dem Zweck entsprechend würde ich gerne einen alert auslösen, wenn er anspricht.
Welches reading ist dazu verwendbar?
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

dominik

Das liegt auch daran, dass die passiven Devices aktuell nicht funktionieren.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik