esphome:
name: a8s
platform: ESP32
board: esp32dev
wifi:
ssid: "KinCony"
password: "a12345678"
captive_portal:
uart:
id: mod_bus
tx_pin: 33
rx_pin: 32
baud_rate: 9600
stop_bits: 1
parity: EVEN
modbus:
id: modbus1
uart_id: mod_bus
modbus_controller:
- id: a8s
address: 0x01
modbus_id: modbus1
setup_priority: -10
update_interval: 5s
sensor:
- platform: modbus_controller
modbus_controller_id: a8s
name: "Voltage"
id: modbus_voltage
register_type: holding
address: 0x64
unit_of_measurement: "V"
value_type: FP32
accuracy_decimals: 2
- platform: modbus_controller
modbus_controller_id: a8s
name: "Current"
id: modbus_current
register_type: holding
address: 0x6A
unit_of_measurement: "A"
value_type: FP32
accuracy_decimals: 2
- platform: modbus_controller
modbus_controller_id: a8s
name: "Active Power"
id: modbus_Active_Power
register_type: holding
address: 0x76
unit_of_measurement: "kW"
value_type: FP32
accuracy_decimals: 2
- platform: modbus_controller
modbus_controller_id: a8s
name: "Power Factor"
id: modbus_Power_Factor
register_type: holding
address: 0x8E
unit_of_measurement: ""
value_type: FP32
accuracy_decimals: 2
- platform: modbus_controller
modbus_controller_id: a8s
name: "Grid Frequency"
id: modbus_Grid_Frequency
register_type: holding
address: 0x90
unit_of_measurement: "hz"
value_type: FP32
accuracy_decimals: 2
- platform: modbus_controller
modbus_controller_id: a8s
name: "Total Energy"
id: modbus_Total_Energy
register_type: holding
address: 0x0
unit_of_measurement: "kWh"
value_type: FP32
accuracy_decimals: 2
# Enable logging
logger:
# Enable Home Assistant API
api:
yaml file for KC868-A8S download:
HA_modbus_energy-meter.txt (Size: 1.91 KB / Downloads: 650)
KinCony energy meter RS485 modbus protocol document:
KinCony-energy-meter-rs485-modbus-protocol.pdf (Size: 117.75 KB / Downloads: 756)