[Résolu] Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Forum dédié au plugin ZigBeeForDomoticZ : installation, paramétrage, utilisation, interfaces ...
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

bonsoir,

je te propose de basculer sur une branche spécifique du plugin afin de travailler sur les 2 lignes

Code : Tout sélectionner

git pull
git checkout add-ep-for-tuyats0601
sudo python3 -m pip install -r requirements.txt --upgrade
Après quoi tu supprimes tout les widgets qui ont été créés. Tu restart le plugin, tu vérifies que le device n'existe plus dans le plugin
Si c'est le cas, alors tu peux lancer l'appairage


A toi de jouer
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
psytgc
Messages : 95
Inscription : 30 juil. 2017, 12:10

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par psytgc »

le voltage a l air de bouger mais il bouge meme sans les pinces autour d un cable.
Je pense qu il mesure l alim du module du coup , je suis bien en version 2.123

sinon voici qq log:

Code : Tout sélectionner

2023-10-31 22:07:40,075 INFO    :b'        len_data: 8'
2023-10-31 22:07:40,076 INFO    :b'        data: 00000000'
2023-10-31 22:07:40,076 INFO    :b'tuyaReadRawAPS - command 02 dp: 105 dt: 2 len: 8 data: 00000000 idx: 26'
2023-10-31 22:07:40,077 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 69 dt: 02 data: 00000000'
2023-10-31 22:07:40,078 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 69 dt: 02 data: 00000000'
2023-10-31 22:07:40,079 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 105 2 00000000'
2023-10-31 22:07:40,080 INFO    :b'                - value: 0'
2023-10-31 22:07:40,081 INFO    :b"                - dps_mapping[ 69 ]: {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-10-31 22:07:40,082 INFO    :b'                - after evaluate_expression_with_data() value: 0.0'
2023-10-31 22:07:40,083 INFO    :b"sensor_type - b2d9 01 0.0 105 2 00000000 {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}"
2023-10-31 22:07:55,032 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 59 cmd: 02 Payload: 19590200e40102000400000011'
2023-10-31 22:07:55,033 INFO    :b'    status: 00'
2023-10-31 22:07:55,034 INFO    :b'    TransId: e4'
2023-10-31 22:07:55,035 INFO    :b'    working on remaining payload 0102000400000011 idx: 10'
2023-10-31 22:07:55,037 INFO    :b'        dp: 1'
2023-10-31 22:07:55,038 INFO    :b'        datatype: 2'
2023-10-31 22:07:55,039 INFO    :b'        len_data: 8'
2023-10-31 22:07:55,040 INFO    :b'        data: 00000011'
2023-10-31 22:07:55,041 INFO    :b'tuyaReadRawAPS - command 02 dp: 1 dt: 2 len: 8 data: 00000011 idx: 26'
2023-10-31 22:07:55,042 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 01 dt: 02 data: 00000011'
2023-10-31 22:07:55,043 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 01 dt: 02 data: 00000011'
2023-10-31 22:07:55,045 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 1 2 00000011'
2023-10-31 22:07:55,046 INFO    :b"ts0601_response - unknow dp b2d9 01 2 00000011 {'65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-10-31 22:07:55,047 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: b2d9/01 dp: 01 data type: 2 data: 00000011'
2023-10-31 22:07:56,051 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 5a cmd: 02 Payload: 195a0200e5020200040000010f'
2023-10-31 22:07:56,054 INFO    :b'    status: 00'
2023-10-31 22:07:56,056 INFO    :b'    TransId: e5'
2023-10-31 22:07:56,058 INFO    :b'    working on remaining payload 020200040000010f idx: 10'
2023-10-31 22:07:56,059 INFO    :b'        dp: 2'
2023-10-31 22:07:56,061 INFO    :b'        datatype: 2'
2023-10-31 22:07:56,063 INFO    :b'        len_data: 8'
2023-10-31 22:07:56,065 INFO    :b'        data: 0000010f'
2023-10-31 22:07:56,068 INFO    :b'tuyaReadRawAPS - command 02 dp: 2 dt: 2 len: 8 data: 0000010f idx: 26'
2023-10-31 22:07:56,069 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 02 dt: 02 data: 0000010f'
2023-10-31 22:07:56,071 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 02 dt: 02 data: 0000010f'
2023-10-31 22:07:56,073 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 2 2 0000010f'
2023-10-31 22:07:56,075 INFO    :b"ts0601_response - unknow dp b2d9 02 2 0000010f {'65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-10-31 22:07:56,077 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: b2d9/01 dp: 02 data type: 2 data: 0000010f'
2023-10-31 22:07:57,056 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 5b cmd: 02 Payload: 195b0200e66502000400000011'
2023-10-31 22:07:57,063 INFO    :b'    status: 00'
2023-10-31 22:07:57,069 INFO    :b'    TransId: e6'
2023-10-31 22:07:57,071 INFO    :b'    working on remaining payload 6502000400000011 idx: 10'
2023-10-31 22:07:57,073 INFO    :b'        dp: 101'
2023-10-31 22:07:57,075 INFO    :b'        datatype: 2'
2023-10-31 22:07:57,077 INFO    :b'        len_data: 8'
2023-10-31 22:07:57,079 INFO    :b'        data: 00000011'
2023-10-31 22:07:57,081 INFO    :b'tuyaReadRawAPS - command 02 dp: 101 dt: 2 len: 8 data: 00000011 idx: 26'
2023-10-31 22:07:57,083 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 65 dt: 02 data: 00000011'
2023-10-31 22:07:57,085 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 65 dt: 02 data: 00000011'
2023-10-31 22:07:57,087 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 101 2 00000011'
2023-10-31 22:07:57,088 INFO    :b'                - value: 17'
2023-10-31 22:07:57,090 INFO    :b"                - dps_mapping[ 65 ]: {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3} (<class 'dict'>)"
2023-10-31 22:07:57,092 INFO    :b'                - after evaluate_expression_with_data() value: 0.17'
2023-10-31 22:07:57,094 INFO    :b"sensor_type - b2d9 01 0.17 101 2 00000011 {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}"
2023-10-31 22:07:57,096 INFO    :b'                - after sensor_type() value: 0.17 divisor: 1 rounding: 3'
2023-10-31 22:07:57,098 INFO    :b'ts0601_summation_energy - Current Summation b2d9 01 0.17'
2023-10-31 22:07:58,025 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 5c cmd: 02 Payload: 195c0200e76702000400000000'
2023-10-31 22:07:58,027 INFO    :b'    status: 00'
2023-10-31 22:07:58,028 INFO    :b'    TransId: e7'
2023-10-31 22:07:58,029 INFO    :b'    working on remaining payload 6702000400000000 idx: 10'
2023-10-31 22:07:58,031 INFO    :b'        dp: 103'
2023-10-31 22:07:58,032 INFO    :b'        datatype: 2'
2023-10-31 22:07:58,033 INFO    :b'        len_data: 8'
2023-10-31 22:07:58,034 INFO    :b'        data: 00000000'
2023-10-31 22:07:58,035 INFO    :b'tuyaReadRawAPS - command 02 dp: 103 dt: 2 len: 8 data: 00000000 idx: 26'
2023-10-31 22:07:58,036 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 67 dt: 02 data: 00000000'
2023-10-31 22:07:58,037 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 67 dt: 02 data: 00000000'
2023-10-31 22:07:58,038 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 103 2 00000000'
2023-10-31 22:07:58,039 INFO    :b'                - value: 0'
2023-10-31 22:07:58,040 INFO    :b"                - dps_mapping[ 67 ]: {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-10-31 22:07:58,041 INFO    :b'                - after evaluate_expression_with_data() value: 0.0'
2023-10-31 22:07:58,042 INFO    :b"sensor_type - b2d9 01 0.0 103 2 00000000 {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}"
2023-10-31 22:07:59,025 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 5d cmd: 02 Payload: 195d0200e866020004000000f9'
2023-10-31 22:07:59,027 INFO    :b'    status: 00'
2023-10-31 22:07:59,028 INFO    :b'    TransId: e8'
2023-10-31 22:07:59,029 INFO    :b'    working on remaining payload 66020004000000f9 idx: 10'
2023-10-31 22:07:59,030 INFO    :b'        dp: 102'
2023-10-31 22:07:59,031 INFO    :b'        datatype: 2'
2023-10-31 22:07:59,032 INFO    :b'        len_data: 8'
2023-10-31 22:07:59,034 INFO    :b'        data: 000000f9'
2023-10-31 22:07:59,035 INFO    :b'tuyaReadRawAPS - command 02 dp: 102 dt: 2 len: 8 data: 000000f9 idx: 26'
2023-10-31 22:07:59,036 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 66 dt: 02 data: 000000f9'
2023-10-31 22:07:59,038 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 66 dt: 02 data: 000000f9'
2023-10-31 22:07:59,039 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 102 2 000000f9'
2023-10-31 22:07:59,040 INFO    :b'                - value: 249'
2023-10-31 22:07:59,041 INFO    :b"                - dps_mapping[ 66 ]: {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3} (<class 'dict'>)"
2023-10-31 22:07:59,042 INFO    :b'                - after evaluate_expression_with_data() value: 2.49'
2023-10-31 22:07:59,043 INFO    :b"sensor_type - b2d9 01 2.49 102 2 000000f9 {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}"
2023-10-31 22:07:59,044 INFO    :b'                - after sensor_type() value: 2.49 divisor: 1 rounding: 3'
2023-10-31 22:07:59,045 INFO    :b'ts0601_production_energy - Production Energy b2d9 01 2.49'
2023-10-31 22:07:59,234 INFO    :b'UpdateDevice - (Alim Prise Zigbee1) 0:231.0;231.0'
2023-10-31 22:08:00,021 INFO    :b'tuyaReadRawAPS - b2d9/01 fcf: 19 sqn: 5e cmd: 02 Payload: 195e0200e96802000400000016'
2023-10-31 22:08:00,022 INFO    :b'    status: 00'
2023-10-31 22:08:00,023 INFO    :b'    TransId: e9'
2023-10-31 22:08:00,024 INFO    :b'    working on remaining payload 6802000400000016 idx: 10'
2023-10-31 22:08:00,026 INFO    :b'        dp: 104'
2023-10-31 22:08:00,027 INFO    :b'        datatype: 2'
2023-10-31 22:08:00,028 INFO    :b'        len_data: 8'
2023-10-31 22:08:00,029 INFO    :b'        data: 00000016'
2023-10-31 22:08:00,030 INFO    :b'tuyaReadRawAPS - command 02 dp: 104 dt: 2 len: 8 data: 00000016 idx: 26'
2023-10-31 22:08:00,031 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 68 dt: 02 data: 00000016'
2023-10-31 22:08:00,032 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: b2d9/01 dp: 68 dt: 02 data: 00000016'
2023-10-31 22:08:00,033 INFO    :b'ts0601_response - b2d9 TS0601-PC311-Z-TY 104 2 00000016'
2023-10-31 22:08:00,034 INFO    :b'                - value: 22'
2023-10-31 22:08:00,036 INFO    :b"                - dps_mapping[ 68 ]: {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-10-31 22:08:00,037 INFO    :b'                - after evaluate_expression_with_data() value: 0.22'
2023-10-31 22:08:00,038 INFO    :b"sensor_type - b2d9 01 0.22 104 2 00000016 {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}"
^C
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

Oui le voltage est toujours celui du module
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

du coup je reprends

- Oui le voltage il faut Neutre et Phase donc ce n'est pas possible via la pince. Et si je compare par rapport à d'autres modules du meme genre, c'est effectivement comme ca.

- J'ai changé un truc sur le fichier de conf, peux-tu faire toujours sur la branche add-ep-for-tuyats0601

Code : Tout sélectionner

git checkout add-ep-for-tuyats0601
git pull
et simplement relancer le plugin

Tu confirmes également depuis la dernière version et le re-appairage que tu as bien les widgets pour les 2 lignes ?
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
psytgc
Messages : 95
Inscription : 30 juil. 2017, 12:10

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par psytgc »

Bonjour

Non je n ai pas de 2e ligne qui a été creer
je suis sur le plugins 2.123

Code : Tout sélectionner

2023-11-01 11:24:43,381 INFO    :b'        len_data: 8'
2023-11-01 11:24:43,382 INFO    :b'        data: 00000000'
2023-11-01 11:24:43,386 INFO    :b'tuyaReadRawAPS - command 02 dp: 105 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:24:43,389 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 69 dt: 02 data: 00000000'
2023-11-01 11:24:43,391 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 69 dt: 02 data: 00000000'
2023-11-01 11:24:43,392 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 105 2 00000000'
2023-11-01 11:24:43,394 INFO    :b'                - value: 0'
2023-11-01 11:24:43,396 INFO    :b"                - dps_mapping[ 69 ]: {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-11-01 11:24:43,398 INFO    :b'                - after evaluate_expression_with_data() value: 0.0'
2023-11-01 11:24:43,399 INFO    :b"sensor_type - 6740 01 0.0 105 2 00000000 {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}"
2023-11-01 11:24:58,307 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 43 cmd: 02 Payload: 194302008f0102000400000011'
2023-11-01 11:24:58,310 INFO    :b'    status: 00'
2023-11-01 11:24:58,312 INFO    :b'    TransId: 8f'
2023-11-01 11:24:58,314 INFO    :b'    working on remaining payload 0102000400000011 idx: 10'
2023-11-01 11:24:58,316 INFO    :b'        dp: 1'
2023-11-01 11:24:58,317 INFO    :b'        datatype: 2'
2023-11-01 11:24:58,319 INFO    :b'        len_data: 8'
2023-11-01 11:24:58,321 INFO    :b'        data: 00000011'
2023-11-01 11:24:58,323 INFO    :b'tuyaReadRawAPS - command 02 dp: 1 dt: 2 len: 8 data: 00000011 idx: 26'
2023-11-01 11:24:58,325 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 01 dt: 02 data: 00000011'
2023-11-01 11:24:58,327 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 01 dt: 02 data: 00000011'
2023-11-01 11:24:58,329 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 1 2 00000011'
2023-11-01 11:24:58,330 INFO    :b"ts0601_response - unknow dp 6740 01 2 00000011 {'65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-11-01 11:24:58,332 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: 6740/01 dp: 01 data type: 2 data: 00000011'
2023-11-01 11:24:59,299 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 44 cmd: 02 Payload: 1944020090020200040000010f'
2023-11-01 11:24:59,301 INFO    :b'    status: 00'
2023-11-01 11:24:59,303 INFO    :b'    TransId: 90'
2023-11-01 11:24:59,304 INFO    :b'    working on remaining payload 020200040000010f idx: 10'
2023-11-01 11:24:59,306 INFO    :b'        dp: 2'
2023-11-01 11:24:59,308 INFO    :b'        datatype: 2'
2023-11-01 11:24:59,309 INFO    :b'        len_data: 8'
2023-11-01 11:24:59,311 INFO    :b'        data: 0000010f'
2023-11-01 11:24:59,313 INFO    :b'tuyaReadRawAPS - command 02 dp: 2 dt: 2 len: 8 data: 0000010f idx: 26'
2023-11-01 11:24:59,314 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 02 dt: 02 data: 0000010f'
2023-11-01 11:24:59,316 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 02 dt: 02 data: 0000010f'
2023-11-01 11:24:59,318 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 2 2 0000010f'
2023-11-01 11:24:59,319 INFO    :b"ts0601_response - unknow dp 6740 02 2 0000010f {'65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-11-01 11:24:59,321 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: 6740/01 dp: 02 data type: 2 data: 0000010f'
2023-11-01 11:25:00,282 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 45 cmd: 02 Payload: 19450200916502000400000011'
2023-11-01 11:25:00,284 INFO    :b'    status: 00'
2023-11-01 11:25:00,285 INFO    :b'    TransId: 91'
2023-11-01 11:25:00,286 INFO    :b'    working on remaining payload 6502000400000011 idx: 10'
2023-11-01 11:25:00,288 INFO    :b'        dp: 101'
2023-11-01 11:25:00,289 INFO    :b'        datatype: 2'
2023-11-01 11:25:00,290 INFO    :b'        len_data: 8'
2023-11-01 11:25:00,291 INFO    :b'        data: 00000011'
2023-11-01 11:25:00,292 INFO    :b'tuyaReadRawAPS - command 02 dp: 101 dt: 2 len: 8 data: 00000011 idx: 26'
2023-11-01 11:25:00,293 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 65 dt: 02 data: 00000011'
2023-11-01 11:25:00,294 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 65 dt: 02 data: 00000011'
2023-11-01 11:25:00,295 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 101 2 00000011'
2023-11-01 11:25:00,296 INFO    :b'                - value: 17'
2023-11-01 11:25:00,298 INFO    :b"                - dps_mapping[ 65 ]: {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3} (<class 'dict'>)"
2023-11-01 11:25:00,299 INFO    :b'                - after evaluate_expression_with_data() value: 0.17'
2023-11-01 11:25:00,300 INFO    :b"sensor_type - 6740 01 0.17 101 2 00000011 {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}"
2023-11-01 11:25:00,301 INFO    :b'                - after sensor_type() value: 0.17 divisor: 1 rounding: 3'
2023-11-01 11:25:00,302 INFO    :b'ts0601_summation_energy - Current Summation 6740 01 0.17'
2023-11-01 11:25:01,280 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 46 cmd: 02 Payload: 19460200926702000400000000'
2023-11-01 11:25:01,282 INFO    :b'    status: 00'
2023-11-01 11:25:01,283 INFO    :b'    TransId: 92'
2023-11-01 11:25:01,284 INFO    :b'    working on remaining payload 6702000400000000 idx: 10'
2023-11-01 11:25:01,285 INFO    :b'        dp: 103'
2023-11-01 11:25:01,286 INFO    :b'        datatype: 2'
2023-11-01 11:25:01,287 INFO    :b'        len_data: 8'
2023-11-01 11:25:01,288 INFO    :b'        data: 00000000'
2023-11-01 11:25:01,289 INFO    :b'tuyaReadRawAPS - command 02 dp: 103 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:01,290 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 67 dt: 02 data: 00000000'
2023-11-01 11:25:01,291 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 67 dt: 02 data: 00000000'
2023-11-01 11:25:01,293 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 103 2 00000000'
2023-11-01 11:25:01,294 INFO    :b'                - value: 0'
2023-11-01 11:25:01,295 INFO    :b"                - dps_mapping[ 67 ]: {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-11-01 11:25:01,296 INFO    :b'                - after evaluate_expression_with_data() value: 0.0'
2023-11-01 11:25:01,297 INFO    :b"sensor_type - 6740 01 0.0 103 2 00000000 {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}"
2023-11-01 11:25:02,299 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 47 cmd: 02 Payload: 194702009366020004000000f9'
2023-11-01 11:25:02,306 INFO    :b'    status: 00'
2023-11-01 11:25:02,314 INFO    :b'    TransId: 93'
2023-11-01 11:25:02,316 INFO    :b'    working on remaining payload 66020004000000f9 idx: 10'
2023-11-01 11:25:02,317 INFO    :b'        dp: 102'
2023-11-01 11:25:02,319 INFO    :b'        datatype: 2'
2023-11-01 11:25:02,321 INFO    :b'        len_data: 8'
2023-11-01 11:25:02,323 INFO    :b'        data: 000000f9'
2023-11-01 11:25:02,326 INFO    :b'tuyaReadRawAPS - command 02 dp: 102 dt: 2 len: 8 data: 000000f9 idx: 26'
2023-11-01 11:25:02,328 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 66 dt: 02 data: 000000f9'
2023-11-01 11:25:02,330 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 66 dt: 02 data: 000000f9'
2023-11-01 11:25:02,332 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 102 2 000000f9'
2023-11-01 11:25:02,333 INFO    :b'                - value: 249'
2023-11-01 11:25:02,335 INFO    :b"                - dps_mapping[ 66 ]: {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3} (<class 'dict'>)"
2023-11-01 11:25:02,337 INFO    :b'                - after evaluate_expression_with_data() value: 2.49'
2023-11-01 11:25:02,339 INFO    :b"sensor_type - 6740 01 2.49 102 2 000000f9 {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}"
2023-11-01 11:25:02,341 INFO    :b'                - after sensor_type() value: 2.49 divisor: 1 rounding: 3'
2023-11-01 11:25:02,343 INFO    :b'ts0601_production_energy - Production Energy 6740 01 2.49'
2023-11-01 11:25:03,297 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 48 cmd: 02 Payload: 19480200946802000400000016'
2023-11-01 11:25:03,300 INFO    :b'    status: 00'
2023-11-01 11:25:03,302 INFO    :b'    TransId: 94'
2023-11-01 11:25:03,303 INFO    :b'    working on remaining payload 6802000400000016 idx: 10'
2023-11-01 11:25:03,305 INFO    :b'        dp: 104'
2023-11-01 11:25:03,307 INFO    :b'        datatype: 2'
2023-11-01 11:25:03,309 INFO    :b'        len_data: 8'
2023-11-01 11:25:03,311 INFO    :b'        data: 00000016'
2023-11-01 11:25:03,312 INFO    :b'tuyaReadRawAPS - command 02 dp: 104 dt: 2 len: 8 data: 00000016 idx: 26'
2023-11-01 11:25:03,314 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 68 dt: 02 data: 00000016'
2023-11-01 11:25:03,316 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 68 dt: 02 data: 00000016'
2023-11-01 11:25:03,318 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 104 2 00000016'
2023-11-01 11:25:03,320 INFO    :b'                - value: 22'
2023-11-01 11:25:03,322 INFO    :b"                - dps_mapping[ 68 ]: {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-11-01 11:25:03,323 INFO    :b'                - after evaluate_expression_with_data() value: 0.22'
2023-11-01 11:25:03,325 INFO    :b"sensor_type - 6740 01 0.22 104 2 00000016 {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}"
2023-11-01 11:25:04,289 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 49 cmd: 02 Payload: 19490200956a02000400000968'
2023-11-01 11:25:04,293 INFO    :b'    status: 00'
2023-11-01 11:25:04,295 INFO    :b'    TransId: 95'
2023-11-01 11:25:04,296 INFO    :b'    working on remaining payload 6a02000400000968 idx: 10'
2023-11-01 11:25:04,298 INFO    :b'        dp: 106'
2023-11-01 11:25:04,300 INFO    :b'        datatype: 2'
2023-11-01 11:25:04,302 INFO    :b'        len_data: 8'
2023-11-01 11:25:04,304 INFO    :b'        data: 00000968'
2023-11-01 11:25:04,306 INFO    :b'tuyaReadRawAPS - command 02 dp: 106 dt: 2 len: 8 data: 00000968 idx: 26'
2023-11-01 11:25:04,308 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6a dt: 02 data: 00000968'
2023-11-01 11:25:04,309 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6a dt: 02 data: 00000968'
2023-11-01 11:25:04,316 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 106 2 00000968'
2023-11-01 11:25:04,320 INFO    :b'                - value: 2408'
2023-11-01 11:25:04,322 INFO    :b"                - dps_mapping[ 6a ]: {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 11:25:04,323 INFO    :b'                - after evaluate_expression_with_data() value: 240.8'
2023-11-01 11:25:04,325 INFO    :b"sensor_type - 6740 01 240.8 106 2 00000968 {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}"
2023-11-01 11:25:04,326 INFO    :b'                - after sensor_type() value: 240.8 divisor: 1 rounding: 2'
2023-11-01 11:25:04,328 INFO    :b'ts0601_voltage - Voltage 6740 01 240.8'
2023-11-01 11:25:04,334 INFO    :b'UpdateDevice - (        Voltage) 0:240.8;240.8'
2023-11-01 11:25:05,274 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4a cmd: 02 Payload: 194a0200966b02000400000000'
2023-11-01 11:25:05,275 INFO    :b'    status: 00'
2023-11-01 11:25:05,277 INFO    :b'    TransId: 96'
2023-11-01 11:25:05,278 INFO    :b'    working on remaining payload 6b02000400000000 idx: 10'
2023-11-01 11:25:05,279 INFO    :b'        dp: 107'
2023-11-01 11:25:05,280 INFO    :b'        datatype: 2'
2023-11-01 11:25:05,281 INFO    :b'        len_data: 8'
2023-11-01 11:25:05,282 INFO    :b'        data: 00000000'
2023-11-01 11:25:05,283 INFO    :b'tuyaReadRawAPS - command 02 dp: 107 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:05,284 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6b dt: 02 data: 00000000'
2023-11-01 11:25:05,285 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6b dt: 02 data: 00000000'
2023-11-01 11:25:05,286 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 107 2 00000000'
2023-11-01 11:25:05,287 INFO    :b'                - value: 0'
2023-11-01 11:25:05,289 INFO    :b"                - dps_mapping[ 6b ]: {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 11:25:05,290 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:05,291 INFO    :b"sensor_type - 6740 01 0 107 2 00000000 {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}"
2023-11-01 11:25:05,292 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 11:25:05,293 INFO    :b'ts0601_current - Current 6740 01 0.0'
2023-11-01 11:25:06,270 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4b cmd: 02 Payload: 194b0200976e02000400000000'
2023-11-01 11:25:06,272 INFO    :b'    status: 00'
2023-11-01 11:25:06,273 INFO    :b'    TransId: 97'
2023-11-01 11:25:06,274 INFO    :b'    working on remaining payload 6e02000400000000 idx: 10'
2023-11-01 11:25:06,275 INFO    :b'        dp: 110'
2023-11-01 11:25:06,276 INFO    :b'        datatype: 2'
2023-11-01 11:25:06,277 INFO    :b'        len_data: 8'
2023-11-01 11:25:06,278 INFO    :b'        data: 00000000'
2023-11-01 11:25:06,279 INFO    :b'tuyaReadRawAPS - command 02 dp: 110 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:06,280 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6e dt: 02 data: 00000000'
2023-11-01 11:25:06,282 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6e dt: 02 data: 00000000'
2023-11-01 11:25:06,283 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 110 2 00000000'
2023-11-01 11:25:06,284 INFO    :b'                - value: 0'
2023-11-01 11:25:06,285 INFO    :b"                - dps_mapping[ 6e ]: {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 11:25:06,286 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:06,287 INFO    :b"sensor_type - 6740 01 0 110 2 00000000 {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}"
2023-11-01 11:25:06,288 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 11:25:06,289 INFO    :b'ts0601_current - Current 6740 01 0.0'
2023-11-01 11:25:07,287 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4c cmd: 02 Payload: 194c0200986c02000400000000'
2023-11-01 11:25:07,294 INFO    :b'    status: 00'
2023-11-01 11:25:07,301 INFO    :b'    TransId: 98'
2023-11-01 11:25:07,304 INFO    :b'    working on remaining payload 6c02000400000000 idx: 10'
2023-11-01 11:25:07,306 INFO    :b'        dp: 108'
2023-11-01 11:25:07,308 INFO    :b'        datatype: 2'
2023-11-01 11:25:07,310 INFO    :b'        len_data: 8'
2023-11-01 11:25:07,311 INFO    :b'        data: 00000000'
2023-11-01 11:25:07,313 INFO    :b'tuyaReadRawAPS - command 02 dp: 108 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:07,315 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6c dt: 02 data: 00000000'
2023-11-01 11:25:07,317 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6c dt: 02 data: 00000000'
2023-11-01 11:25:07,319 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 108 2 00000000'
2023-11-01 11:25:07,321 INFO    :b'                - value: 0'
2023-11-01 11:25:07,323 INFO    :b"                - dps_mapping[ 6c ]: {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 11:25:07,325 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:07,327 INFO    :b"sensor_type - 6740 01 0 108 2 00000000 {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}"
2023-11-01 11:25:07,328 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 11:25:07,330 INFO    :b'ts0601_instant_power - Instant Power 6740 01 0.0'
2023-11-01 11:25:08,264 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4d cmd: 02 Payload: 194d0200996f02000400000000'
2023-11-01 11:25:08,266 INFO    :b'    status: 00'
2023-11-01 11:25:08,267 INFO    :b'    TransId: 99'
2023-11-01 11:25:08,268 INFO    :b'    working on remaining payload 6f02000400000000 idx: 10'
2023-11-01 11:25:08,269 INFO    :b'        dp: 111'
2023-11-01 11:25:08,270 INFO    :b'        datatype: 2'
2023-11-01 11:25:08,272 INFO    :b'        len_data: 8'
2023-11-01 11:25:08,273 INFO    :b'        data: 00000000'
2023-11-01 11:25:08,274 INFO    :b'tuyaReadRawAPS - command 02 dp: 111 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:08,275 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6f dt: 02 data: 00000000'
2023-11-01 11:25:08,276 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6f dt: 02 data: 00000000'
2023-11-01 11:25:08,277 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 111 2 00000000'
2023-11-01 11:25:08,278 INFO    :b'                - value: 0'
2023-11-01 11:25:08,279 INFO    :b"                - dps_mapping[ 6f ]: {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 11:25:08,280 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:08,282 INFO    :b"sensor_type - 6740 01 0 111 2 00000000 {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}"
2023-11-01 11:25:08,283 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 11:25:08,284 INFO    :b'ts0601_instant_power - Instant Power 6740 01 0.0'
2023-11-01 11:25:09,263 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4e cmd: 02 Payload: 194e02009a0902000400000000'
2023-11-01 11:25:09,264 INFO    :b'    status: 00'
2023-11-01 11:25:09,265 INFO    :b'    TransId: 9a'
2023-11-01 11:25:09,266 INFO    :b'    working on remaining payload 0902000400000000 idx: 10'
2023-11-01 11:25:09,268 INFO    :b'        dp: 9'
2023-11-01 11:25:09,269 INFO    :b'        datatype: 2'
2023-11-01 11:25:09,270 INFO    :b'        len_data: 8'
2023-11-01 11:25:09,271 INFO    :b'        data: 00000000'
2023-11-01 11:25:09,272 INFO    :b'tuyaReadRawAPS - command 02 dp: 9 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:09,273 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 09 dt: 02 data: 00000000'
2023-11-01 11:25:09,275 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 09 dt: 02 data: 00000000'
2023-11-01 11:25:09,276 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 9 2 00000000'
2023-11-01 11:25:09,277 INFO    :b"ts0601_response - unknow dp 6740 09 2 00000000 {'65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value/100', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value/100', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value/100'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value/100'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-11-01 11:25:09,278 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: 6740/01 dp: 09 data type: 2 data: 00000000'
2023-11-01 11:25:10,278 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 4f cmd: 02 Payload: 194f02009b6d02000400000000'
2023-11-01 11:25:10,281 INFO    :b'    status: 00'
2023-11-01 11:25:10,283 INFO    :b'    TransId: 9b'
2023-11-01 11:25:10,285 INFO    :b'    working on remaining payload 6d02000400000000 idx: 10'
2023-11-01 11:25:10,287 INFO    :b'        dp: 109'
2023-11-01 11:25:10,289 INFO    :b'        datatype: 2'
2023-11-01 11:25:10,291 INFO    :b'        len_data: 8'
2023-11-01 11:25:10,293 INFO    :b'        data: 00000000'
2023-11-01 11:25:10,295 INFO    :b'tuyaReadRawAPS - command 02 dp: 109 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:10,297 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6d dt: 02 data: 00000000'
2023-11-01 11:25:10,299 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 6d dt: 02 data: 00000000'
2023-11-01 11:25:10,301 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 109 2 00000000'
2023-11-01 11:25:10,303 INFO    :b'                - value: 0'
2023-11-01 11:25:10,305 INFO    :b"                - dps_mapping[ 6d ]: {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'} (<class 'dict'>)"
2023-11-01 11:25:10,307 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:10,310 INFO    :b"sensor_type - 6740 01 0 109 2 00000000 {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}"
2023-11-01 11:25:11,275 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 50 cmd: 02 Payload: 195002009c7002000400000000'
2023-11-01 11:25:11,278 INFO    :b'    status: 00'
2023-11-01 11:25:11,280 INFO    :b'    TransId: 9c'
2023-11-01 11:25:11,282 INFO    :b'    working on remaining payload 7002000400000000 idx: 10'
2023-11-01 11:25:11,283 INFO    :b'        dp: 112'
2023-11-01 11:25:11,285 INFO    :b'        datatype: 2'
2023-11-01 11:25:11,287 INFO    :b'        len_data: 8'
2023-11-01 11:25:11,289 INFO    :b'        data: 00000000'
2023-11-01 11:25:11,291 INFO    :b'tuyaReadRawAPS - command 02 dp: 112 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:11,293 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 70 dt: 02 data: 00000000'
2023-11-01 11:25:11,294 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 70 dt: 02 data: 00000000'
2023-11-01 11:25:11,296 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 112 2 00000000'
2023-11-01 11:25:11,298 INFO    :b'                - value: 0'
2023-11-01 11:25:11,300 INFO    :b"                - dps_mapping[ 70 ]: {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'} (<class 'dict'>)"
2023-11-01 11:25:11,302 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 11:25:11,303 INFO    :b"sensor_type - 6740 01 0 112 2 00000000 {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}"
2023-11-01 11:25:12,276 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 51 cmd: 02 Payload: 195102009d7102000400000032'
2023-11-01 11:25:12,279 INFO    :b'    status: 00'
2023-11-01 11:25:12,281 INFO    :b'    TransId: 9d'
2023-11-01 11:25:12,283 INFO    :b'    working on remaining payload 7102000400000032 idx: 10'
2023-11-01 11:25:12,284 INFO    :b'        dp: 113'
2023-11-01 11:25:12,286 INFO    :b'        datatype: 2'
2023-11-01 11:25:12,288 INFO    :b'        len_data: 8'
2023-11-01 11:25:12,290 INFO    :b'        data: 00000032'
2023-11-01 11:25:12,292 INFO    :b'tuyaReadRawAPS - command 02 dp: 113 dt: 2 len: 8 data: 00000032 idx: 26'
2023-11-01 11:25:12,294 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 71 dt: 02 data: 00000032'
2023-11-01 11:25:12,296 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 71 dt: 02 data: 00000032'
2023-11-01 11:25:12,297 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 113 2 00000032'
2023-11-01 11:25:12,299 INFO    :b'                - value: 50'
2023-11-01 11:25:12,301 INFO    :b"                - dps_mapping[ 71 ]: {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'} (<class 'dict'>)"
2023-11-01 11:25:12,303 INFO    :b'                - after evaluate_expression_with_data() value: 50'
2023-11-01 11:25:12,305 INFO    :b"sensor_type - 6740 01 50 113 2 00000032 {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}"
2023-11-01 11:25:13,307 INFO    :b'tuyaReadRawAPS - 6740/01 fcf: 19 sqn: 52 cmd: 02 Payload: 195202009e6902000400000000'
2023-11-01 11:25:13,310 INFO    :b'    status: 00'
2023-11-01 11:25:13,312 INFO    :b'    TransId: 9e'
2023-11-01 11:25:13,314 INFO    :b'    working on remaining payload 6902000400000000 idx: 10'
2023-11-01 11:25:13,316 INFO    :b'        dp: 105'
2023-11-01 11:25:13,318 INFO    :b'        datatype: 2'
2023-11-01 11:25:13,320 INFO    :b'        len_data: 8'
2023-11-01 11:25:13,322 INFO    :b'        data: 00000000'
2023-11-01 11:25:13,324 INFO    :b'tuyaReadRawAPS - command 02 dp: 105 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 11:25:13,326 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 69 dt: 02 data: 00000000'
2023-11-01 11:25:13,328 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 6740/01 dp: 69 dt: 02 data: 00000000'
2023-11-01 11:25:13,330 INFO    :b'ts0601_response - 6740 TS0601-PC311-Z-TY 105 2 00000000'
2023-11-01 11:25:13,332 INFO    :b'                - value: 0'
2023-11-01 11:25:13,334 INFO    :b"                - dps_mapping[ 69 ]: {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'} (<class 'dict'>)"
2023-11-01 11:25:13,336 INFO    :b'                - after evaluate_expression_with_data() value: 0.0'
2023-11-01 11:25:13,338 INFO    :b"sensor_type - 6740 01 0.0 105 2 00000000 {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value/100'}"
et un petit export

Merci de ton implication mais te prends pas trop la tete si tu as d autre chose a faire
Pièces jointes
export-6.json
(68.37 Kio) Téléchargé 59 fois
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

que se passe-t-il a l'issue des commandes

Code : Tout sélectionner

git pull
git checkout add-ep-for-tuyats0601
git pull
si ca se passe bien, supprimes toutes les widgets et assure-toi que le device ne soit plus dans le plugin (Device Management WebUI)
alors restart le plugin

et ensuite tu lances l'appairage
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
psytgc
Messages : 95
Inscription : 30 juil. 2017, 12:10

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par psytgc »

Oui j'ai fait cela plus un reboot et maintenant j'ai bien 11 wigdet de montées avec des valeurs pour le voltage qui sont toujours bien affichées.
J ai des valeurs aussi sur les prodmeter mais sur la ligne du dessous dans le widget.

voici les log :

Code : Tout sélectionner

2023-11-01 12:23:25,562 INFO    :b"ts0601_response - unknow dp 26bf 02 2 0000010f {'01': {'store_tuya_attribute': 'Unknow 01_02', 'EvalExp': 'value'}, '65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3, 'domo_ep': 'f1'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3, 'domo_ep': 'f1'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value * 10'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2, 'domo_ep': 'f1'}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2, 'domo_ep': 'f1'}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
2023-11-01 12:23:25,563 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY UNMANAGED Nwkid: 26bf/01 dp: 02 data type: 2 data: 0000010f'
2023-11-01 12:23:26,512 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 37 cmd: 02 Payload: 19370200466502000400000011'
2023-11-01 12:23:26,514 INFO    :b'    status: 00'
2023-11-01 12:23:26,515 INFO    :b'    TransId: 46'
2023-11-01 12:23:26,516 INFO    :b'    working on remaining payload 6502000400000011 idx: 10'
2023-11-01 12:23:26,518 INFO    :b'        dp: 101'
2023-11-01 12:23:26,519 INFO    :b'        datatype: 2'
2023-11-01 12:23:26,520 INFO    :b'        len_data: 8'
2023-11-01 12:23:26,521 INFO    :b'        data: 00000011'
2023-11-01 12:23:26,522 INFO    :b'tuyaReadRawAPS - command 02 dp: 101 dt: 2 len: 8 data: 00000011 idx: 26'
2023-11-01 12:23:26,523 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 65 dt: 02 data: 00000011'
2023-11-01 12:23:26,524 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 65 dt: 02 data: 00000011'
2023-11-01 12:23:26,525 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 101 2 00000011'
2023-11-01 12:23:26,526 INFO    :b'                - value: 17'
2023-11-01 12:23:26,527 INFO    :b"                - dps_mapping[ 65 ]: {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3} (<class 'dict'>)"
2023-11-01 12:23:26,528 INFO    :b'                - after evaluate_expression_with_data() value: 170'
2023-11-01 12:23:26,529 INFO    :b"sensor_type - 26bf 01 170 101 2 00000011 {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3}"
2023-11-01 12:23:26,530 INFO    :b'                - Ep to be used for domo update 01'
2023-11-01 12:23:26,531 INFO    :b'                - after sensor_type() value: 170.0 divisor: 1 rounding: 3'
2023-11-01 12:23:26,532 INFO    :b'ts0601_summation_energy - Current Summation 26bf 01 170.0'
2023-11-01 12:23:27,507 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 38 cmd: 02 Payload: 19380200476702000400000000'
2023-11-01 12:23:27,509 INFO    :b'    status: 00'
2023-11-01 12:23:27,510 INFO    :b'    TransId: 47'
2023-11-01 12:23:27,511 INFO    :b'    working on remaining payload 6702000400000000 idx: 10'
2023-11-01 12:23:27,512 INFO    :b'        dp: 103'
2023-11-01 12:23:27,513 INFO    :b'        datatype: 2'
2023-11-01 12:23:27,515 INFO    :b'        len_data: 8'
2023-11-01 12:23:27,516 INFO    :b'        data: 00000000'
2023-11-01 12:23:27,517 INFO    :b'tuyaReadRawAPS - command 02 dp: 103 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:27,518 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 67 dt: 02 data: 00000000'
2023-11-01 12:23:27,519 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 67 dt: 02 data: 00000000'
2023-11-01 12:23:27,520 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 103 2 00000000'
2023-11-01 12:23:27,521 INFO    :b'                - value: 0'
2023-11-01 12:23:27,522 INFO    :b"                - dps_mapping[ 67 ]: {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3, 'domo_ep': 'f1'} (<class 'dict'>)"
2023-11-01 12:23:27,523 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 12:23:27,524 INFO    :b"sensor_type - 26bf 01 0 103 2 00000000 {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3, 'domo_ep': 'f1'}"
2023-11-01 12:23:27,525 INFO    :b'                - Ep to be used for domo update f1'
2023-11-01 12:23:27,526 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 3'
2023-11-01 12:23:27,527 INFO    :b'ts0601_summation_energy - Current Summation 26bf f1 0.0'
2023-11-01 12:23:28,537 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 39 cmd: 02 Payload: 193902004866020004000000f9'
2023-11-01 12:23:28,544 INFO    :b'    status: 00'
2023-11-01 12:23:28,552 INFO    :b'    TransId: 48'
2023-11-01 12:23:28,555 INFO    :b'    working on remaining payload 66020004000000f9 idx: 10'
2023-11-01 12:23:28,557 INFO    :b'        dp: 102'
2023-11-01 12:23:28,559 INFO    :b'        datatype: 2'
2023-11-01 12:23:28,561 INFO    :b'        len_data: 8'
2023-11-01 12:23:28,563 INFO    :b'        data: 000000f9'
2023-11-01 12:23:28,565 INFO    :b'tuyaReadRawAPS - command 02 dp: 102 dt: 2 len: 8 data: 000000f9 idx: 26'
2023-11-01 12:23:28,567 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 66 dt: 02 data: 000000f9'
2023-11-01 12:23:28,568 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 66 dt: 02 data: 000000f9'
2023-11-01 12:23:28,570 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 102 2 000000f9'
2023-11-01 12:23:28,572 INFO    :b'                - value: 249'
2023-11-01 12:23:28,574 INFO    :b"                - dps_mapping[ 66 ]: {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3} (<class 'dict'>)"
2023-11-01 12:23:28,577 INFO    :b'                - after evaluate_expression_with_data() value: 2490'
2023-11-01 12:23:28,579 INFO    :b"sensor_type - 26bf 01 2490 102 2 000000f9 {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3}"
2023-11-01 12:23:28,581 INFO    :b'                - Ep to be used for domo update 01'
2023-11-01 12:23:28,583 INFO    :b'                - after sensor_type() value: 2490.0 divisor: 1 rounding: 3'
2023-11-01 12:23:28,585 INFO    :b'ts0601_production_energy - Production Energy 26bf 01 2490.0'
2023-11-01 12:23:29,505 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3a cmd: 02 Payload: 193a0200496802000400000016'
2023-11-01 12:23:29,507 INFO    :b'    status: 00'
2023-11-01 12:23:29,508 INFO    :b'    TransId: 49'
2023-11-01 12:23:29,509 INFO    :b'    working on remaining payload 6802000400000016 idx: 10'
2023-11-01 12:23:29,510 INFO    :b'        dp: 104'
2023-11-01 12:23:29,511 INFO    :b'        datatype: 2'
2023-11-01 12:23:29,512 INFO    :b'        len_data: 8'
2023-11-01 12:23:29,513 INFO    :b'        data: 00000016'
2023-11-01 12:23:29,515 INFO    :b'tuyaReadRawAPS - command 02 dp: 104 dt: 2 len: 8 data: 00000016 idx: 26'
2023-11-01 12:23:29,516 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 68 dt: 02 data: 00000016'
2023-11-01 12:23:29,517 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 68 dt: 02 data: 00000016'
2023-11-01 12:23:29,518 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 104 2 00000016'
2023-11-01 12:23:29,519 INFO    :b'                - value: 22'
2023-11-01 12:23:29,520 INFO    :b"                - dps_mapping[ 68 ]: {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3, 'domo_ep': 'f1'} (<class 'dict'>)"
2023-11-01 12:23:29,521 INFO    :b'                - after evaluate_expression_with_data() value: 220'
2023-11-01 12:23:29,522 INFO    :b"sensor_type - 26bf 01 220 104 2 00000016 {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3, 'domo_ep': 'f1'}"
2023-11-01 12:23:29,524 INFO    :b'                - Ep to be used for domo update f1'
2023-11-01 12:23:29,525 INFO    :b'                - after sensor_type() value: 220.0 divisor: 1 rounding: 3'
2023-11-01 12:23:29,526 INFO    :b'ts0601_production_energy - Production Energy 26bf f1 220.0'
2023-11-01 12:23:30,500 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3b cmd: 02 Payload: 193b02004a6a02000400000963'
2023-11-01 12:23:30,501 INFO    :b'    status: 00'
2023-11-01 12:23:30,503 INFO    :b'    TransId: 4a'
2023-11-01 12:23:30,504 INFO    :b'    working on remaining payload 6a02000400000963 idx: 10'
2023-11-01 12:23:30,505 INFO    :b'        dp: 106'
2023-11-01 12:23:30,507 INFO    :b'        datatype: 2'
2023-11-01 12:23:30,508 INFO    :b'        len_data: 8'
2023-11-01 12:23:30,509 INFO    :b'        data: 00000963'
2023-11-01 12:23:30,515 INFO    :b'tuyaReadRawAPS - command 02 dp: 106 dt: 2 len: 8 data: 00000963 idx: 26'
2023-11-01 12:23:30,516 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6a dt: 02 data: 00000963'
2023-11-01 12:23:30,517 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6a dt: 02 data: 00000963'
2023-11-01 12:23:30,518 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 106 2 00000963'
2023-11-01 12:23:30,519 INFO    :b'                - value: 2403'
2023-11-01 12:23:30,520 INFO    :b"                - dps_mapping[ 6a ]: {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 12:23:30,521 INFO    :b'                - after evaluate_expression_with_data() value: 240.3'
2023-11-01 12:23:30,522 INFO    :b"sensor_type - 26bf 01 240.3 106 2 00000963 {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}"
2023-11-01 12:23:30,524 INFO    :b'                - Ep to be used for domo update 01'
2023-11-01 12:23:30,525 INFO    :b'                - after sensor_type() value: 240.3 divisor: 1 rounding: 2'
2023-11-01 12:23:30,526 INFO    :b'ts0601_voltage - Voltage 26bf 01 240.3'
2023-11-01 12:23:30,529 INFO    :b'UpdateDevice - (        Voltage) 0:240.3;240.3'
2023-11-01 12:23:31,497 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3c cmd: 02 Payload: 193c02004b6b02000400000000'
2023-11-01 12:23:31,499 INFO    :b'    status: 00'
2023-11-01 12:23:31,500 INFO    :b'    TransId: 4b'
2023-11-01 12:23:31,502 INFO    :b'    working on remaining payload 6b02000400000000 idx: 10'
2023-11-01 12:23:31,503 INFO    :b'        dp: 107'
2023-11-01 12:23:31,504 INFO    :b'        datatype: 2'
2023-11-01 12:23:31,505 INFO    :b'        len_data: 8'
2023-11-01 12:23:31,507 INFO    :b'        data: 00000000'
2023-11-01 12:23:31,508 INFO    :b'tuyaReadRawAPS - command 02 dp: 107 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:31,509 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6b dt: 02 data: 00000000'
2023-11-01 12:23:31,510 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6b dt: 02 data: 00000000'
2023-11-01 12:23:31,511 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 107 2 00000000'
2023-11-01 12:23:31,512 INFO    :b'                - value: 0'
2023-11-01 12:23:31,513 INFO    :b"                - dps_mapping[ 6b ]: {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 12:23:31,515 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 12:23:31,516 INFO    :b"sensor_type - 26bf 01 0 107 2 00000000 {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}"
2023-11-01 12:23:31,517 INFO    :b'                - Ep to be used for domo update 01'
2023-11-01 12:23:31,518 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 12:23:31,519 INFO    :b'ts0601_current - Current 26bf 01 0.0'
2023-11-01 12:23:32,496 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3d cmd: 02 Payload: 193d02004c6e02000400000000'
2023-11-01 12:23:32,498 INFO    :b'    status: 00'
2023-11-01 12:23:32,499 INFO    :b'    TransId: 4c'
2023-11-01 12:23:32,500 INFO    :b'    working on remaining payload 6e02000400000000 idx: 10'
2023-11-01 12:23:32,501 INFO    :b'        dp: 110'
2023-11-01 12:23:32,502 INFO    :b'        datatype: 2'
2023-11-01 12:23:32,503 INFO    :b'        len_data: 8'
2023-11-01 12:23:32,504 INFO    :b'        data: 00000000'
2023-11-01 12:23:32,505 INFO    :b'tuyaReadRawAPS - command 02 dp: 110 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:32,506 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6e dt: 02 data: 00000000'
2023-11-01 12:23:32,507 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6e dt: 02 data: 00000000'
2023-11-01 12:23:32,509 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 110 2 00000000'
2023-11-01 12:23:32,510 INFO    :b'                - value: 0'
2023-11-01 12:23:32,511 INFO    :b"                - dps_mapping[ 6e ]: {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2, 'domo_ep': 'f1'} (<class 'dict'>)"
2023-11-01 12:23:32,512 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 12:23:32,513 INFO    :b"sensor_type - 26bf 01 0 110 2 00000000 {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2, 'domo_ep': 'f1'}"
2023-11-01 12:23:32,514 INFO    :b'                - Ep to be used for domo update f1'
2023-11-01 12:23:32,516 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 12:23:32,517 INFO    :b'ts0601_current - Current 26bf f1 0.0'
2023-11-01 12:23:33,515 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3e cmd: 02 Payload: 193e02004d6c02000400000000'
2023-11-01 12:23:33,523 INFO    :b'    status: 00'
2023-11-01 12:23:33,529 INFO    :b'    TransId: 4d'
2023-11-01 12:23:33,531 INFO    :b'    working on remaining payload 6c02000400000000 idx: 10'
2023-11-01 12:23:33,533 INFO    :b'        dp: 108'
2023-11-01 12:23:33,534 INFO    :b'        datatype: 2'
2023-11-01 12:23:33,536 INFO    :b'        len_data: 8'
2023-11-01 12:23:33,538 INFO    :b'        data: 00000000'
2023-11-01 12:23:33,539 INFO    :b'tuyaReadRawAPS - command 02 dp: 108 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:33,541 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6c dt: 02 data: 00000000'
2023-11-01 12:23:33,542 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6c dt: 02 data: 00000000'
2023-11-01 12:23:33,544 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 108 2 00000000'
2023-11-01 12:23:33,546 INFO    :b'                - value: 0'
2023-11-01 12:23:33,547 INFO    :b"                - dps_mapping[ 6c ]: {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2} (<class 'dict'>)"
2023-11-01 12:23:33,549 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 12:23:33,550 INFO    :b"sensor_type - 26bf 01 0 108 2 00000000 {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}"
2023-11-01 12:23:33,552 INFO    :b'                - Ep to be used for domo update 01'
2023-11-01 12:23:33,554 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 12:23:33,555 INFO    :b'ts0601_instant_power - Instant Power 26bf 01 0.0'
2023-11-01 12:23:34,515 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 3f cmd: 02 Payload: 193f02004e6f02000400000000'
2023-11-01 12:23:34,521 INFO    :b'    status: 00'
2023-11-01 12:23:34,527 INFO    :b'    TransId: 4e'
2023-11-01 12:23:34,529 INFO    :b'    working on remaining payload 6f02000400000000 idx: 10'
2023-11-01 12:23:34,531 INFO    :b'        dp: 111'
2023-11-01 12:23:34,532 INFO    :b'        datatype: 2'
2023-11-01 12:23:34,535 INFO    :b'        len_data: 8'
2023-11-01 12:23:34,536 INFO    :b'        data: 00000000'
2023-11-01 12:23:34,538 INFO    :b'tuyaReadRawAPS - command 02 dp: 111 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:34,540 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6f dt: 02 data: 00000000'
2023-11-01 12:23:34,541 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 6f dt: 02 data: 00000000'
2023-11-01 12:23:34,543 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 111 2 00000000'
2023-11-01 12:23:34,544 INFO    :b'                - value: 0'
2023-11-01 12:23:34,546 INFO    :b"                - dps_mapping[ 6f ]: {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2, 'domo_ep': 'f1'} (<class 'dict'>)"
2023-11-01 12:23:34,548 INFO    :b'                - after evaluate_expression_with_data() value: 0'
2023-11-01 12:23:34,549 INFO    :b"sensor_type - 26bf 01 0 111 2 00000000 {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2, 'domo_ep': 'f1'}"
2023-11-01 12:23:34,551 INFO    :b'                - Ep to be used for domo update f1'
2023-11-01 12:23:34,552 INFO    :b'                - after sensor_type() value: 0.0 divisor: 1 rounding: 2'
2023-11-01 12:23:34,554 INFO    :b'ts0601_instant_power - Instant Power 26bf f1 0.0'
2023-11-01 12:23:35,486 INFO    :b'tuyaReadRawAPS - 26bf/01 fcf: 19 sqn: 40 cmd: 02 Payload: 194002004f0902000400000000'
2023-11-01 12:23:35,487 INFO    :b'    status: 00'
2023-11-01 12:23:35,488 INFO    :b'    TransId: 4f'
2023-11-01 12:23:35,489 INFO    :b'    working on remaining payload 0902000400000000 idx: 10'
2023-11-01 12:23:35,490 INFO    :b'        dp: 9'
2023-11-01 12:23:35,491 INFO    :b'        datatype: 2'
2023-11-01 12:23:35,492 INFO    :b'        len_data: 8'
2023-11-01 12:23:35,493 INFO    :b'        data: 00000000'
2023-11-01 12:23:35,494 INFO    :b'tuyaReadRawAPS - command 02 dp: 9 dt: 2 len: 8 data: 00000000 idx: 26'
2023-11-01 12:23:35,495 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 09 dt: 02 data: 00000000'
2023-11-01 12:23:35,496 INFO    :b'tuya_response - Model: TS0601-PC311-Z-TY Nwkid: 26bf/01 dp: 09 dt: 02 data: 00000000'
2023-11-01 12:23:35,498 INFO    :b'ts0601_response - 26bf TS0601-PC311-Z-TY 9 2 00000000'
2023-11-01 12:23:35,499 INFO    :b"ts0601_response - unknow dp 26bf 09 2 00000000 {'01': {'store_tuya_attribute': 'Unknow 01_02', 'EvalExp': 'value'}, '65': {'store_tuya_attribute': 'Meter A', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3}, '66': {'store_tuya_attribute': 'ProducedEnergy A', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3}, '67': {'store_tuya_attribute': 'Meter B', 'EvalExp': 'value * 10', 'sensor_type': 'cons_metering', 'domo_round': 3, 'domo_ep': 'f1'}, '68': {'store_tuya_attribute': 'ProducedEnergy B', 'EvalExp': 'value * 10', 'sensor_type': 'prod_metering', 'domo_round': 3, 'domo_ep': 'f1'}, '69': {'store_tuya_attribute': 'Energy A+B', 'EvalExp': 'value * 10'}, '6a': {'store_tuya_attribute': 'Voltage', 'EvalExp': 'value/10', 'sensor_type': 'voltage', 'domo_round': 2}, '6b': {'store_tuya_attribute': 'Current A', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2}, '6c': {'store_tuya_attribute': 'Power A', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2}, '6d': {'store_tuya_attribute': 'Power Factor A', 'EvalExp': 'value'}, '6e': {'store_tuya_attribute': 'Current B', 'EvalExp': 'value', 'sensor_type': 'current', 'domo_round': 2, 'domo_ep': 'f1'}, '6f': {'store_tuya_attribute': 'Power B', 'EvalExp': 'value', 'sensor_type': 'power', 'domo_round': 2, 'domo_ep': 'f1'}, '70': {'store_tuya_attribute': 'Power Factor B', 'EvalExp': 'value'}, '71': {'store_tuya_attribute': 'AC_Frequency', 'EvalExp': 'value'}, '72': {'store_tuya_attribute': 'Power Direction A', 'EvalExp': 'value'}, '73': {'store_tuya_attribute': 'Power Direction B', 'EvalExp': 'value'}, '74': {'store_tuya_attribute': 'Update Frequency', 'EvalExp': 'value'}}"
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

ecoute je sais pas.

eventuellement envoies moi le module je regarderais et notamment pourrais comparer avec la passerelle Tuya.
Dernière modification par pipiche le 03 nov. 2023, 20:57, modifié 1 fois.
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
psytgc
Messages : 95
Inscription : 30 juil. 2017, 12:10

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par psytgc »

oui si tu veux
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: Nouvel Objet : Compteur d'énergie bilatéral bidirectionnel Tuya Smart Zigbee

Message par pipiche »

tu as reçu mon MP ?
Zigbee for Domoticz - Clef zzh-p (electrolama) 45 devices.

Si vous appréciez ce que je fais, vous pouvez contribuer par un don Paypal , ce qui me permettra notamment l'achat d’équipements et de les tester/valider pour le plugin.
Wiki ici
chat sur Keybase.io
Répondre