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

Added Hiking DDS238-2 WIFI Energy Meter #98

Merged
merged 2 commits into from May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions src/docs/devices/Hiking-DDS238-2-WIFI/index.md
@@ -0,0 +1,129 @@
---
title: Hiking DDS238-2 WIFI Single Phase 65A Energy Meter
date-published: 2021-05-15
type: misc
standard: global
---

## Manufacturer

Hiking TOMZN (Tuya)

## Product Images

![Product Image](hiking_DDS238-2.jpg "Product Image")

## Available from

[aliexpress.com](https://www.aliexpress.com/item/1005002409492948.html)

## Flashing info

I flashed the compiled config using tasmotizer with no issues. Desolding the ESP-Board is required as the TX/RX pins are connected to the Tuya MCU, guide [here](https://github.com/krikk/Hiking-DDS238-2-WIFI-Din-Rail-Energy-Meter-flashing-Tasmota) for Tasmota with photo's.

## GPIO Pinout

| Pin | Function |
| ------ | ----------------- |
| GPIO1 | Tuya MCU Tx |
| GPIO3 | Tuya MCU Rx |
| GPIO14 | LED (inverted) |
| GPIO16 | Button (inverted) |

## Basic Configuration

```yaml
# Basic Config
---
substitutions:
device_name: energy_meter
friendly_name: "Energy Meter"

esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m

wifi:
ssid: !secret wifissid
password: !secret wifipassword
ap:
ssid: ${friendly_name}
password: !secret esphome_admin_password

captive_portal:

logger:
baud_rate: 0

api:

ota:

uart:
rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600

tuya:

switch:
- platform: "tuya"
name: "${friendly_name} Switch"
id: power
switch_datapoint: 1

binary_sensor:
- platform: gpio
pin: 16
id: button
on_press:
then:
- switch.toggle: power

sensor:
- platform: "tuya"
name: "${friendly_name} Current"
sensor_datapoint: 18
accuracy_decimals: 2
unit_of_measurement: "A"
icon: "mdi:flash"
filters:
- multiply: 0.001

- platform: "tuya"
name: "${friendly_name} Power"
sensor_datapoint: 19
accuracy_decimals: 1
unit_of_measurement: "W"
icon: "mdi:flash"
filters:
- multiply: 0.1

- platform: "tuya"
name: "${friendly_name} Voltage"
sensor_datapoint: 20
unit_of_measurement: "V"
accuracy_decimals: 1
icon: "mdi:flash"
filters:
- multiply: 0.1

- platform: "tuya"
name: "${friendly_name} kWh +"
sensor_datapoint: 101
unit_of_measurement: "kWh"
accuracy_decimals: 3
icon: "mdi:flash"
filters:
- multiply: 0.01

- platform: "tuya"
name: "${friendly_name} kWh -"
sensor_datapoint: 9
unit_of_measurement: "kWh"
accuracy_decimals: 3
icon: "mdi:flash"
filters:
- multiply: 0.01
```