Skip to content
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

Request support for WIFI dual meter 智能电表 v5jlnn5hwyffkhp3 #2336

Open
ciscolyon69 opened this issue Sep 27, 2024 · 8 comments
Open

Request support for WIFI dual meter 智能电表 v5jlnn5hwyffkhp3 #2336

ciscolyon69 opened this issue Sep 27, 2024 · 8 comments
Labels
new device Unsupported device unreleased Will be in next release

Comments

@ciscolyon69
Copy link

Log message

2024-09-27 16:06:22.126 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'cz', 'id': 'bf832a18fd48478619uo1v', 'ip': '82.66.84.40', 'local_key': '1T5|/0fkH{S8G<y^', 'name': 'Arrivee', 'node_id': '', 'online': True, 'product_id': 'bbcg1hrkrj5rifsd', 'product_name': 'WIFI dual meter', 'uid': 'eu1725288851572rPBNs', 'uuid': '49421fca9b5aba56', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.126 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bf832a18fd48478619uo1v
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'zndb', 'id': 'bf6f5e4b2d05327f08mlci', 'ip': '82.66.84.40', 'local_key': 'e1AfOCh6z8sV&1^&', 'name': 'four - plaque de cuisson', 'node_id': '', 'online': True, 'product_id': 'v5jlnn5hwyffkhp3', 'product_name': '智能电表', 'uid': 'eu1725288851572rPBNs', 'uuid': '3377220ca18a2f28', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bf6f5e4b2d05327f08mlci
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'zndb', 'id': 'bfcc5759424285d17aiwmf', 'ip': '82.66.84.40', 'local_key': '/K}o)t#tXFZb>KR?', 'name': 'Cumulus-Magasin', 'node_id': '', 'online': True, 'product_id': 'v5jlnn5hwyffkhp3', 'product_name': '智能电表', 'uid': 'eu1725288851572rPBNs', 'uuid': 'a8a11466db3903fc', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bfcc5759424285d17aiwmf
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'zndb', 'id': 'bfec7216a99227dbd7z9f5', 'ip': '82.66.84.40', 'local_key': '&OvGLN-IP6Xryb`A', 'name': '1:est - 2:centre', 'node_id': '', 'online': True, 'product_id': 'v5jlnn5hwyffkhp3', 'product_name': '智能电表', 'uid': 'eu1725288851572rPBNs', 'uuid': 'fd60450754689e34', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.127 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bfec7216a99227dbd7z9f5
2024-09-27 16:06:22.128 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'zndb', 'id': 'bf85c72a0ba81b5599ezvx', 'ip': '82.66.84.40', 'local_key': '78Be#.c&)5Fd*@Z7', 'name': '3:ouest - 4:total', 'node_id': '', 'online': True, 'product_id': 'v5jlnn5hwyffkhp3', 'product_name': '智能电表', 'uid': 'eu1725288851572rPBNs', 'uuid': '12b6232ca2d768ff', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.128 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bf85c72a0ba81b5599ezvx
2024-09-27 16:06:22.128 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found device: {'category': 'zndb', 'id': 'bf208da25b03bc80efegli', 'ip': '82.66.84.40', 'local_key': 'zdZEmh1sE:o=S(KV', 'name': 'Pompe a chaleur A:etage B:rdc', 'node_id': '', 'online': True, 'product_id': 'v5jlnn5hwyffkhp3', 'product_name': '智能电表', 'uid': 'eu1725288851572rPBNs', 'uuid': '7013b43d54e65e63', 'support_local': True, 'device_cid': None, 'version': None}
2024-09-27 16:06:22.128 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Adding device: bf208da25b03bc80efegli
2024-09-27 16:06:22.128 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Device count: 6
2024-09-27 16:06:22.129 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Hub count: 0
2024-09-27 16:06:26.933 DEBUG (Thread-6) [pychromecast.socket_client] [Freebox Player POP(7d4ce299-de49-7655-8d13-010b06002d97.local.):8009] Not connected, sleeping for 5.0s. Services: {MDNSServiceInfo(name='Freebox-Player-POP-7d4ce299de4976558d13010b06002d97._googlecast._tcp.local.')}
2024-09-27 16:06:27.673 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Scanning network to get IP address for bfec7216a99227dbd7z9f5.
2024-09-27 16:06:31.410 DEBUG (MainThread) [custom_components.tuya_local.config_flow] Found: {'ip': '192.168.1.143', 'version': '3.4', 'id': 'bfec7216a99227dbd7z9f5', 'product_id': 'v5jlnn5hwyffkhp3', 'data': {'ip': '192.168.1.143', 'gwId': 'bfec7216a99227dbd7z9f5', 'active': 2, 'encrypt': True, 'productKey': 'v5jlnn5hwyffkhp3', 'version': '3.4', 'token': True, 'wf_cfg': True, 'name': '', 'key': '', 'mac': '', 'id': 'bfec7216a99227dbd7z9f5', 'ability': 0, 'dev_type': 'default', 'origin': 'broadcast'}}
2024-09-27 16:06:31.934 DEBUG (Thread-6) [pychromecast.socket_client] [Freebox Player POP(7d4ce299-de49-7655-8d13-010b06002d97.local.):8009] Not connected, sleeping for 5.0s. Services: {MDNSServiceInfo(name='Freebox-Player-POP-7d4ce299de4976558d13010b06002d97._googlecast._tcp.local.')}
2024-09-27 16:06:32.818 DEBUG (MainThread) [custom_components.tuya_local.device] Refreshing device state for Test
2024-09-27 16:06:32.818 INFO (MainThread) [custom_components.tuya_local.device] Setting protocol version for Test to 3.4
2024-09-27 16:06:33.038 DEBUG (SyncWorker_13) [custom_components.tuya_local.device] Test refreshed device state: {"dps": {"1": 850, "2": 416, "101": 2289, "102": 4923, "103": 5023, "104": 98, "105": 1128, "106": 2427, "107": 469, "108": 239, "109": 98, "110": 1205, "111": 2596, "112": 381, "113": 177, "114": 469, "115": 239, "116": 381, "117": 177, "118": 39, "119": 0, "120": 38, "121": 0, "122": 77, "123": 0, "124": true, "125": true, "138": false, "140": false}}
2024-09-27 16:06:33.038 DEBUG (SyncWorker_13) [custom_components.tuya_local.device] new state (incl pending): {"updated_at": 1727445993.0378652, "1": 850, "2": 416, "101": 2289, "102": 4923, "103": 5023, "104": 98, "105": 1128, "106": 2427, "107": 469, "108": 239, "109": 98, "110": 1205, "111": 2596, "112": 381, "113": 177, "114": 469, "115": 239, "116": 381, "117": 177, "118": 39, "119": 0, "120": 38, "121": 0, "122": 77, "123": 0, "124": true, "125": true, "138": false, "140": false}
2024-09-27 16:06:33.098 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config 9in1_airquality_monitor.yaml
2024-09-27 16:06:33.099 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Air Quality, missing required DPs: [{'3': 'int'}, {'4': 'int'}, {'5': 'int'}, {'6': 'int'}, {'7': 'int'}, {'9': 'int'}, {'22': 'int'}, {'23': 'bool'}, {'28': 'str'}]
2024-09-27 16:06:33.100 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Air Quality, DPs have incorrect type: [{'1': 'str'}]
2024-09-27 16:06:33.132 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config AlecoAir_D25_Traditio.yaml
...............................

2024-09-27 16:06:37.978 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config dcenta_dual_meter.yaml
2024-09-27 16:06:37.979 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Dual meter, missing required DPs: [{'127': 'int'}, {'128': 'int'}, {'129': 'int'}]
2024-09-27 16:06:37.980 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Dual meter, DPs have incorrect type: [{'102': 'str'}, {'104': 'str'}, {'124': 'int'}, {'125': 'int'}]
2024-09-27 16:06:38.012 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config deakon_evi_waterheatpump.yaml



.............................
2024-09-27 16:06:48.134 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config matsee_2way_energymeter.yaml
2024-09-27 16:06:48.135 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Bidirectional energy meter, missing required DPs: [{'127': 'int'}, {'128': 'int'}, {'129': 'int'}]
2024-09-27 16:06:48.136 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Not match for Bidirectional energy meter, DPs have incorrect type: [{'102': 'str'}, {'104': 'str'}, {'124': 'int'}, {'125': 'int'}]
2024-09-27 16:06:48.167 DEBUG (MainThread) [custom_components.tuya_local.helpers.device_config] Loaded device config maxcio_aromadiffuser.yaml

DPS information

{
        "name": "1:est - 2:centre",
        "id": "bfec7216a99227dbd7z9f5",
        "key": "&OvGLN-IP6Xryb`A",
        "mac": "38:2c:e5:1c:a0:6e",
        "uuid": "fd60450754689e34",
        "sn": "10015960300164",
        "category": "zndb",
        "product_name": "\u667a\u80fd\u7535\u8868",
        "product_id": "v5jlnn5hwyffkhp3",
        "biz_type": 18,
        "model": "\u66f4\u6362\u4e92\u611f\u5668",
        "sub": false,
        "icon": "https://images.tuyaeu.com/smart/icon/ay1565138036928sSi0S/08fb722104684db4e9717b6d0841d71d.png",
        "mapping": {
            "1": {
                "code": "forward_energy_total",
                "type": "Integer",
                "values": {
                    "unit": "kW\u00b7h",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "2": {
                "code": "reverse_energy_total",
                "type": "Integer",
                "values": {
                    "unit": "kW\u00b7h",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "101": {
                "code": "f_ac_v",
                "type": "Integer",
                "values": {
                    "unit": "V",
                    "min": 0,
                    "max": 99999999,
                    "scale": 1,
                    "step": 1
                }
            },
            "102": {
                "code": "f_ac_line_freq",
                "type": "Integer",
                "values": {
                    "unit": "Hz",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "103": {
                "code": "total_power",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": -99999999,
                    "max": 99999999,
                    "scale": 1,
                    "step": 1
                }
            },
            "104": {
                "code": "power_factor_a",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "105": {
                "code": "current_a",
                "type": "Integer",
                "values": {
                    "unit": "mA",
                    "min": 0,
                    "max": 99999999,
                    "scale": 0,
                    "step": 1
                }
            },
            "106": {
                "code": "power_a",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": 0,
                    "max": 99999999,
                    "scale": 1,
                    "step": 1
                }
            },
            "107": {
                "code": "forward_energy_a",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "108": {
                "code": "reverse_energy_a",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "109": {
                "code": "power_factor_b",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "110": {
                "code": "current_b",
                "type": "Integer",
                "values": {
                    "unit": "mA",
                    "min": 0,
                    "max": 99999999,
                    "scale": 0,
                    "step": 1
                }
            },
            "111": {
                "code": "power_b",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": 0,
                    "max": 99999999,
                    "scale": 1,
                    "step": 1
                }
            },
            "112": {
                "code": "forward_energy_b",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "113": {
                "code": "reverse_energy_b",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "114": {
                "code": "forward_energy_a_total",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "115": {
                "code": "reverse_energy_a_total",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "116": {
                "code": "forward_energy_b_total",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "117": {
                "code": "reverse_energy_b_total",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "118": {
                "code": "forward_energy_a_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "119": {
                "code": "reverse_energy_a_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "120": {
                "code": "forward_energy_b_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "121": {
                "code": "reverse_energy_b_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "122": {
                "code": "forward_energy_total_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "123": {
                "code": "reverse_energy_total_hour",
                "type": "Integer",
                "values": {
                    "unit": "KWH",
                    "min": 0,
                    "max": 99999999,
                    "scale": 2,
                    "step": 1
                }
            },
            "124": {
                "code": "power_direction_a",
                "type": "Boolean",
                "values": {}
            },
            "125": {
                "code": "power_direction_b",
                "type": "Boolean",
                "values": {}
            },
            "126": {
                "code": "report_rate_control",
                "type": "Integer",
                "values": {
                    "unit": "s",
                    "min": 10,
                    "max": 180,
                    "scale": 0,
                    "step": 10
                }
            },
            "127": {
                "code": "voltage_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "128": {
                "code": "freq_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "129": {
                "code": "current_a_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "130": {
                "code": "power_a_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "131": {
                "code": "energy_a_calibration_fwd",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "132": {
                "code": "energy_a_calibration_rev",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "133": {
                "code": "current_b_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "134": {
                "code": "power_b_calibration",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "135": {
                "code": "energy_b_calibration_fwd",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "136": {
                "code": "energy_b_calibration_rev",
                "type": "Integer",
                "values": {
                    "unit": "",
                    "min": 800,
                    "max": 1200,
                    "scale": 3,
                    "step": 1
                }
            },
            "137": {
                "code": "power_setting",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": 200,
                    "max": 20000,
                    "scale": 0,
                    "step": 100
                }
            },
            "138": {
                "code": "power_alarm",
                "type": "Boolean",
                "values": {}
            },
            "139": {
                "code": "power_setting_2",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": 200,
                    "max": 20000,
                    "scale": 0,
                    "step": 100
                }
            },
            "140": {
                "code": "power_alarm_2",
                "type": "Boolean",
                "values": {}
            }
        },
        "ip": "192.168.1.143",
        "version": "3.4"
    }
]

Product ID

v5jlnn5hwyffkhp3

Product Name

智能电表 "\u667a\u80fd\u7535\u8868"

Information about how the device functions

hello I am a noob
I have a "Matsee 2-way Energy Meter bbcg1hrkrj5rifsd" which works thank you
I bought a pack of 5 "Matsee 2-way Energy Meter v5jlnn5hwyffkhp3" which are not detected
I modified locally my file custom_components/tuya_local/devices/matsee_2way_energymeter.yaml
it is not detected !!
I did something wrong ?

name: Bidirectional energy meter
products:

  • id: z95s7p3z54xbsjnl
    name: MatSee Plus bidirectional 2 channel clamp meter
  • id: bbcg1hrkrj5rifsd
    name: MatSee Plus bidirectional 2 channel clamp meter
  • id: v5jlnn5hwyffkhp3
    name: MatSee Plus bidirectional 2 channel clamp meter
    primary_entity:
    entity: sensor

https://fr.aliexpress.com/item/1005007538738122.html

➜ /config python -m tinytuya scan
TinyTuya (Tuya device scanner) [1.15.1]
Scanning on UDP ports 6666 and 6667 and 7000 for devices for 18 seconds...
New Broadcast from App at 192.168.1.201 - {'from': 'app', 'ip': '192.168.1.201'}

Unknown v3.4 Device Product ID = v5jlnn5hwyffkhp3 [Valid Broadcast]:
Address = 192.168.1.175 Device ID = bfcc5759424285d??? (len:22) Local Key = Version = 3.4 Type = default, MAC =
No Stats for 192.168.1.175: DEVICE KEY required to poll for status
Unknown v3.4 Device Product ID = bbcg1hrkrj5rifsd [Valid Broadcast]:
Address = 192.168.1.182 Device ID = bf832a18fd484786??? (len:22) Local Key = Version = 3.4 Type = default, MAC =
No Stats for 192.168.1.182: DEVICE KEY required to poll for status

@ciscolyon69 ciscolyon69 added the new device Unsupported device label Sep 27, 2024
@make-all make-all added the full_info All info needed was provided label Sep 27, 2024
@sabolcik
Copy link

sabolcik commented Sep 29, 2024

I seem to be having a similar situation with a new TUYA WiFi Meter. The model is shown as: "PC311_W_TY".

The DPS values shown above seem to match the attributes I can configure. The device is detected by local TUYA, but none of the attributes are configured. All my other devices were automatically detected and configured.

If there is some particular log files I can show that would be helpful I would be happy to upload.

Would this device also be supported in the update described above?

@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release and removed full_info All info needed was provided labels Oct 4, 2024
@ciscolyon69
Copy link
Author

i don't know the right way to check
I upload the file in my HA and reboot the HA
https://github.com/make-all/tuya-local/blob/bd1ac7c5a7aa844108c5d193e89385fddc3896b7/custom_components/tuya_local/devices/matsee_2wayv2_energymeter.yaml
the dual meter are detect in first chose "matsee_2wayv2_energymeter"
A rapid check show a inversion between power,Current... A and B channel.
How can I help ? log ?

@make-all
Copy link
Owner

make-all commented Oct 7, 2024

Sorry, I don't understand what you mean by "inversion". The config was made to match the DPS information above.

@make-all make-all removed the awaiting confirmation Wating for confirmation the issue is solved label Oct 7, 2024
@make-all
Copy link
Owner

make-all commented Oct 7, 2024

Running your log message above through my debug tools gives:

matsee_2wayv2_energymeter matched 100%
  sensor_energy:
   sensor: 8.5
   hourly: 0.77
  sensor_energy_produced:
    sensor: 4.16
    hourly: 0.0
  sensor_voltage:
    sensor: 228.9
    calibration: None
  sensor_frequency:
    sensor: 49.23
    calibration: None
  sensor_power:
    sensor: 502.3
  sensor_power_factor_a:
    sensor: 0.98
  sensor_current_a:
    sensor: 1.128
    calibration: None
  sensor_power_a:
    sensor: 242.7
    calibration: None
  sensor_energy_consumption_a:
    sensor: 4.69
    total: 4.69
    hourly: 0.39
    calibration: None
  sensor_energy_produced_a:
    sensor: 2.39
    total: 2.39
    hourly: 0.0
    calibration: None
  sensor_power_factor_b:
    sensor: 0.98
  sensor_current_b:
    sensor: 1.205
    calibration: None
  sensor_power_b:
    sensor: 259.6
    calibration: None
  sensor_energy_consumption_b:
    sensor: 3.81
    total: 3.81
    hourly: 0.38
    calibration: None
  sensor_energy_produced_b:
    sensor: 1.77
    total: 1.77
    hourly: 0.0
    calibration: None
  sensor_direction_a:
    sensor: out
  sensor_direction_b:
    sensor: out
  number_reporting_rate:
    value: None
  number_power_setting_1:
    value: None
  switch_power_alarm_1:
    switch: False
  number_power_setting_2:
    value: None
  switch_power_alarm_2:
    switch: False

The values seem to be consistent: Voltage of 228.9 is within the expected range for a 220-240V country.
Total power 502.3W matches Power A+Power B (242.7+259.6)
Current 1.128A is roughly what you would expect to get 242.7W from 228.9V (AC never matches P=VI exactly)

@ciscolyon69
Copy link
Author

I check your code and it looks good.
The boiler is on clamp A 1000W and I can read the value on channel A on "Smart Life".
It appears on channel B on home assistant !!!!

@make-all
Copy link
Owner

make-all commented Oct 7, 2024

So A and B are swapped from what is documented.

I do notice the "Direction" sensors appear to be reversed, but that is because the values were not clearly documented, so I had to guess whether true was in or out.

@ciscolyon69
Copy link
Author

I think the problem comes from the firmware that does not match the hardware?? (I checked on 5 different meters)
they must have reversed in "smart life"
in this case what is the good practice?
leave it like that (with the risk of bugs returning) or reverse it?
thanks for the excellent work

make-all added a commit that referenced this issue Oct 7, 2024
- A and B channels appear to be swapped from what is documented in the protocol
- Guess at direction values was wrong

Issue #2336
@ciscolyon69
Copy link
Author

thanks for all
I upload the file and reboot the server, noting more.
It woks
All the best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device Unsupported device unreleased Will be in next release
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants