Add support for PJ-1103A Dual Channel Smart Meter (#4454)
* Add support for PJ-1103A Dual Channel Smart Meter
Product: https://www.aliexpress.com/item/1005005000000000000.html
Cloud DPS:
[{"id": 1, "name": "total_forward_energy", "type": "Integer", "format": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 2, "name": "total_reverse_energy", "type": "Integer", "format": "{\"unit\":\"kW·h\",\"min\":0,\"max\":99999999,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 101, "name": "voltage_a", "type": "Integer", "format": "{\"unit\":\"V\",\"min\":0,\"max\":5000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 102, "name": "current_a", "type": "Integer", "format": "{\"unit\":\"A\",\"min\":0,\"max\":1000,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 103, "name": "power_a", "type": "Integer", "format": "{\"unit\":\"W\",\"min\":0,\"max\":100000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 104, "name": "power_b", "type": "Integer", "format": "{\"unit\":\"W\",\"min\":-100000,\"max\":100000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 105, "name": "current_b", "type": "Integer", "format": "{\"unit\":\"A\",\"min\":0,\"max\":1000,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 106, "name": "voltage_b", "type": "Integer", "format": "{\"unit\":\"V\",\"min\":0,\"max\":5000,\"scale\":1,\"step\":1}", "enumMap": {}}, {"id": 107, "name": "power_factor_a", "type": "Integer", "format": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 108, "name": "power_factor_b", "type": "Integer", "format": "{\"unit\":\"%\",\"min\":0,\"max\":100,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 109, "name": "frequency", "type": "Integer", "format": "{\"unit\":\"Hz\",\"min\":4500,\"max\":6500,\"scale\":2,\"step\":1}", "enumMap": {}}, {"id": 110, "name": "switch_a", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 111, "name": "switch_b", "type": "Boolean", "format": "{}", "enumMap": {}}, {"id": 112, "name": "alarm_a", "type": "Integer", "format": "{}", "enumMap": {}}, {"id": 113, "name": "alarm_b", "type": "Integer", "format": "{}", "enumMap": {}}]
Device ID: bff05c08176488ef7d4dst
Protocol: 3.5
* feat (pj1103a_dual_channel_meter): remove product specific name
Name under products is not really recommended unless there is a significant difference, and this one was almost identical to the top level name.
PR #4454
---------
Co-authored-by: thepkc <deathwolf@gmail.com>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>