JSY-MK-194T Energy Counter¶
The JSY-MK-194T energy counter shares common code with the JSY-MK-194T power meter to communicate with the module. The rest of this documentation explains how to configure this common part and how to configure a JSY-MK-194T energy counter.
1 – Common Part: Communication with the JSY-MK-194T¶
This file manages communication with the board. If you wish, you can expose JSY-MK-194T measurements in Home Assistant; see the example below.
packages:
solar_router:
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
refresh: 1s
files:
# JSY-MK-194T management
- path: solar_router/jsy-mk-194t_common.yaml
vars:
uart_tx_pin: GPIO26
uart_rx_pin: GPIO27
uart_baud_rate: 4800
AP_Ch2_internal: "false" # optional, allows displaying one of the JSY-MK-194T sensors
List of available JSY-MK-194T sensors:
U_Ch1_internal: "true" # Voltage on Channel 1
I_Ch1_internal: "true" # Current on Channel 1
AP_Ch1_internal: "true" # Active Power on Channel 1
PAE_Ch1_internal: "true" # Positive Active Energy on Channel 1
PF_Ch1_internal: "true" # Power Factor on Channel 1
NAE_Ch1_internal: "true" # Negative Active Energy on Channel 1
PD_Ch1_internal: "true" # Power Direction on Channel 1
PD_Ch2_internal: "true" # Power Direction on Channel 2
frequency_internal: "true" # Frequency
# Voltage on Channel 2 not implemented => same as Voltage on Channel 1
I_Ch2_internal: "true" # Current on Channel 2
AP_Ch2_internal: "true" # Active Power on Channel 2
PAE_Ch2_internal: "true" # Positive Active Energy on Channel 2
PF_Ch2_internal: "true" # Power Factor on Channel 2
NAE_Ch2_internal: "true" # Negative Active Energy on Channel 2
2 – Enabling the Energy Counter¶
To enable the energy counter, simply add it to your configuration as shown in the example below:
packages:
solar_router:
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
refresh: 1s
files:
- path: solar_router/energy_counter_jsy-mk-194t.yaml
For a complete implementation example, refer to the JSY-MK-194T example.
