<!--
This form is for reporting a new device.
When adding information, be su…re to place it outside the comment blocks which
contain instructions, as these will be hidden in the submitted report.
If you are not getting any log messages when trying to add the device, then
you probably want help, which you can get by posting in
[Discussions](https://github.com/make-all/tuya-local/discussions).
Thank you for reporting a new device to add support for. Please provide as much of the information requested below as you can.
New device requests will be processed with the following priority:
1. Pull requests
2. Issues containing logs, iot portal info with dp_ids and links that explain the usage.
3. Issues containing partial info, but probably enough to make a good guess at the likely config
4. Issues containing partial info, but some additional info needs to be requested
5. Low effort issues with virtually no useful information
Due to increasing volume of requests, it is likely that those in
category 5 will be closed without further discussion. Those in
category 4 are likely to take some time to make it to the top of the
priority stack.
-->
# Log Message
<!--
Please paste the message from HA log (Settings / System / Logs)
that shows the DPS returned from the device. It is important to paste
the log message from tuya-local, rather than another source, as other
sources can strip quotes for example, which loses information about
whether certain dps are integers or strings.
-->
```
Device matches zigbee_zth08ztu_temphumid_sensor with quality of 8%. DPS: {"updated_at": 1694119083.099237, "1": 0, "2": 0, "101": 0, "105": 0, "106": 0, "107": 0, "108": 0, "109": 0, "110": 100, "111": 5890, "112": 2270, "113": 0, "114": 0, "115": 0, "116": 1000, "117": 1000, "118": 1000, "119": 1000, "121": 100, "122": 1000, "123": 1000, "124": 1000, "125": 1000, "127": 1000, "128": 1000, "129": 10}
Report this to https://github.com/make-all/tuya-local/issues/
```
# Information about DPS mappings
<!--
If you have an iot.tuya.com account, please go to "Cloud" -> "API
Explorer". Under "Device Control", select the "Query Things Data Model"
function, check the server is set correctly, and enter your device ID.
-->
```
{
"result": {
"model": "{\"modelId\":\"ebtly8\",\"services\":[{\"actions\":[],\"code\":\"\",\"description\":\"\",\"events\":[],\"name\":\"默认服务\",\"properties\":[
{\"abilityId\":1,\"accessMode\":\"rw\",\"code\":\"forward_energy_total\",\"description\":\"\",\"extensions\":{\"attribute\":\"1152\"},\"name\":\"正向总有功电量\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":2,\"accessMode\":\"rw\",\"code\":\"reverse_energy_total\",\"description\":\"\",\"extensions\":{\"attribute\":\"1152\"},\"name\":\"反向总有功电量\",\"typeSpec\":{\"max\":99999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":101,\"accessMode\":\"ro\",\"code\":\"power_a\",\"description\":\"\",\"name\":\"Power_a\",\"typeSpec\":{\"max\":600000,\"min\":0,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"W\"}},
{\"abilityId\":102,\"accessMode\":\"ro\",\"code\":\"direction_a\",\"description\":\"\",\"name\":\"Current_Flow_A\",\"typeSpec\":{\"range\":[\"FORWARD\",\"REVERSE\"],\"type\":\"enum\",\"typeDefaultValue\":\"FORWARD\"}},
{\"abilityId\":103,\"accessMode\":\"ro\",\"code\":\"tbd\",\"description\":\"\",\"name\":\"TBD\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":104,\"accessMode\":\"ro\",\"code\":\"direction_b\",\"description\":\"\",\"name\":\"Current_FLow_B\",\"typeSpec\":{\"range\":[\"FORWARD\",\"REVERSE\"],\"type\":\"enum\",\"typeDefaultValue\":\"FORWARD\"}},
{\"abilityId\":105,\"accessMode\":\"ro\",\"code\":\"power_b\",\"description\":\"\",\"name\":\"Power_b\",\"typeSpec\":{\"max\":600000,\"min\":0,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"W\"}},
{\"abilityId\":106,\"accessMode\":\"ro\",\"code\":\"energy_forword_a\",\"description\":\"\",\"name\":\"Forward_Energy_A\",\"typeSpec\":{\"max\":999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":107,\"accessMode\":\"ro\",\"code\":\"energy_reverse_a\",\"description\":\"\",\"name\":\"Reverse_Energy_A\",\"typeSpec\":{\"max\":999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":108,\"accessMode\":\"ro\",\"code\":\"energy_forword_b\",\"description\":\"\",\"name\":\"Forward_Energy_B\",\"typeSpec\":{\"max\":999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":109,\"accessMode\":\"ro\",\"code\":\"energy_reserse_b\",\"description\":\"\",\"name\":\"energy_reserse_b\",\"typeSpec\":{\"max\":999999,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"KWH\"}},
{\"abilityId\":110,\"accessMode\":\"ro\",\"code\":\"power_factor\",\"description\":\"\",\"name\":\"Power_factor_A\",\"typeSpec\":{\"max\":100,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"\"}},
{\"abilityId\":111,\"accessMode\":\"ro\",\"code\":\"freq\",\"description\":\"\",\"name\":\"AC_Freq\",\"typeSpec\":{\"max\":10000,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"Hz\"}},
{\"abilityId\":112,\"accessMode\":\"ro\",\"code\":\"voltage_a\",\"description\":\"\",\"name\":\"Voltage\",\"typeSpec\":{\"max\":28000,\"min\":0,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"V\"}},
{\"abilityId\":113,\"accessMode\":\"ro\",\"code\":\"current_a\",\"description\":\"\",\"name\":\"Current_A\",\"typeSpec\":{\"max\":1000000,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"mA\"}},
{\"abilityId\":114,\"accessMode\":\"ro\",\"code\":\"current_b\",\"description\":\"\",\"name\":\"Current_B\",\"typeSpec\":{\"max\":1000000,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"mA\"}},
{\"abilityId\":115,\"accessMode\":\"ro\",\"code\":\"total_power\",\"description\":\"\",\"name\":\"Total_Power\",\"typeSpec\":{\"max\":99999999,\"min\":-99999999,\"scale\":1,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":-99999999,\"unit\":\"W\"}},
{\"abilityId\":116,\"accessMode\":\"rw\",\"code\":\"voltage_coef\",\"description\":\"\",\"name\":\"voltage_calibration\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":117,\"accessMode\":\"rw\",\"code\":\"current_a_calibration\",\"description\":\"\",\"name\":\"current_a_calibration\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":118,\"accessMode\":\"rw\",\"code\":\"power_a_calibration\",\"description\":\"\",\"name\":\"power_a_calibration\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":119,\"accessMode\":\"rw\",\"code\":\"energy_a_calibration_fwd\",\"description\":\"\",\"name\":\"energy_a_calibration_fwd\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":120,\"accessMode\":\"wr\",\"code\":\"coef_a_reset\",\"description\":\"\",\"name\":\"coef_a_reset\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":121,\"accessMode\":\"ro\",\"code\":\"power_factor_b\",\"description\":\"\",\"name\":\"Power_factor_B\",\"typeSpec\":{\"max\":100,\"min\":0,\"scale\":2,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":0,\"unit\":\"\"}},
{\"abilityId\":122,\"accessMode\":\"rw\",\"code\":\"freq_calibration\",\"description\":\"\",\"name\":\"频率校准\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":123,\"accessMode\":\"rw\",\"code\":\"current_b_calibration\",\"description\":\"\",\"name\":\"current_b_calibration\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":124,\"accessMode\":\"rw\",\"code\":\"power_b_calibration\",\"description\":\"\",\"name\":\"power_b_calibration\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":125,\"accessMode\":\"rw\",\"code\":\"energy_b_calibration_fwd\",\"description\":\"\",\"name\":\"energy_b_calibration_fwd\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":126,\"accessMode\":\"wr\",\"code\":\"coef_b_reset\",\"description\":\"\",\"name\":\"coef_b_reset\",\"typeSpec\":{\"type\":\"bool\",\"typeDefaultValue\":false}},
{\"abilityId\":127,\"accessMode\":\"rw\",\"code\":\"energy_a_calibration_rev\",\"description\":\"\",\"name\":\"energy_a_calibration_rev\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":128,\"accessMode\":\"rw\",\"code\":\"energy_b_calibration_rev\",\"description\":\"\",\"name\":\"energy_b_calibration_rev\",\"typeSpec\":{\"max\":1200,\"min\":800,\"scale\":3,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":800,\"unit\":\"\"}},
{\"abilityId\":129,\"accessMode\":\"rw\",\"code\":\"report_rate_control\",\"description\":\"\",\"name\":\"report_rate_control\",\"typeSpec\":{\"max\":60,\"min\":3,\"scale\":0,\"step\":1,\"type\":\"value\",\"typeDefaultValue\":3,\"unit\":\"s\"}}]}]}"
},
"success": true,
"t": 1694120113616,
"tid": "d724888f4dc011ee9db51e8ad7cd6da8"
}
```
<!--
If DPS are missing from the output above, go back to the IoT Platform
"Cloud" main page and select your project. Go to the "Devices" tab
and select "Debug Device" next to your device. Select "Device Logs"
and open your browser's Developer Tools window on the Network tab.
For each function that has not yet been linked to a DPS, select the
function from the "Select DP ID" dropdown and press "Search". In the
Developer Tools window, find the "list" request that was issued, and
look in the Request Payload for a "code" parameter. This is the DP id
linked to that function, please add the remaining code and function
name here. If the function name is in Chinese, just paste it.
If you do not have access to iot.tuya.com, please try to identify as
many DPs as possible, by experimenting with your device. Please also
note any ranges and scale factors for input numbers, and possible
values and their meanings for any input strings (enums).
-->
# Product ID
z95s7p3z54xbsjnl
<!--
If you have access to the IoT portal, please paste just the product_id
line from API Explorer: "Devices Management" / "Query Device Details in Bulk".
You will also find the local_key in here, please take care not to post that
publicly. If you do, then re-pairing the device with the mobile app will
refresh the local key.
Although this information is optional and not required, it will be
used in future to identify matching devices.
-->
# Information about how the device functions
<!--
If there is a manual or other explanation available online, please
link to it (even if not in English) Otherwise if it is not obvious
what all the functions do, please give a brief description.
-->
Two-way energy meter bought on aliexpress from MatSee Plus.
Link: https://pt.aliexpress.com/item/1005005885768083.html