https://github.com/phinix-org/circutor_cvm-bd
CIRCUTOR CVM-BD Power Meter / Analyzer ESPHome Integration
https://github.com/phinix-org/circutor_cvm-bd
esphome esphome-component hass home-assistant modbus rs485
Last synced: 2 months ago
JSON representation
CIRCUTOR CVM-BD Power Meter / Analyzer ESPHome Integration
- Host: GitHub
- URL: https://github.com/phinix-org/circutor_cvm-bd
- Owner: phinix-org
- License: apache-2.0
- Created: 2025-04-04T14:15:52.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T08:02:01.000Z (2 months ago)
- Last Synced: 2025-04-05T08:30:01.891Z (2 months ago)
- Topics: esphome, esphome-component, hass, home-assistant, modbus, rs485
- Homepage:
- Size: 1.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **CIRCUTOR CVM-BD Power Meter / Analyzer ESPHome Integration**
The CVM-BD Power Meter is a programable measuring instrument
supports RS485 Modbus Protocol communication.## **Requirements**
- ESP32 device with 320KB RAM, 4MB Flash and RS485 Adapter
- Recommended devices, with RS485 on board:
- [T-CAN485](https://lilygo.cc/products/t-can485)
- [KAmodESP32 POW RS485](https://wiki.kamamilabs.com/index.php?title=KAmodESP32_POW_RS485)
- any other ESP32 device with RS485 interface
- [ESPhome](https://github.com/esphome/esphome/releases)
- [HomeAssistant](https://www.home-assistant.io/)
- esphome should installed on your computer or HASS instance (ESPHome Builder)## **ESP configuration**
Example configuration in `lilygo-jk0.yaml`
lilygo-jk0.yaml - click here to expand
```yaml
substitutions:
modbus_contr_addr: "10"
modbus_contr_id: cvmesphome:
name: esp32-s3
friendly_name: ESP32-S3 ESP Circutor CVM-BD-RED
platformio_options:
build_flags: -DBOARD_HAS_PSRAM
board_build.arduino.memory_type: qio_opi
board_build.f_flash: 80000000L
board_build.flash_mode: qioesp32:
board: esp32-s3-devkitc-1
framework:
type: arduino# Enable logging
logger:
level: DEBUG
# level: VERY_VERBOSE# Enable Home Assistant API
api:
encryption:
key: ""ota:
- platform: esphome
password: ""wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esp32-S3 Fallback Hotspot"
password: ""captive_portal:
time:
- platform: homeassistant
id: homeassistant_time
uart:
id: mod_uart
tx_pin: GPIO43
rx_pin: GPIO44
baud_rate: 19200
stop_bits: 1
rx_buffer_size: 512
debug:
# direction: BOTH
# dummy_receiver: false
# after:
# delimiter: "\n"
# sequence:
# - lambda: UARTDebug::log_string(direction, bytes);
# - lambda: UARTDebug::log_hex(direction, bytes);modbus:
flow_control_pin: GPIO9
id: modbus1
uart_id: mod_uartmodbus_controller:
- id: ${modbus_contr_id}
address: ${modbus_contr_addr}
modbus_id: modbus1
setup_priority: -10
update_interval: 1s
command_throttle: 75mssensor: !include ./include/cvm-bd.yaml
text_sensor: !include ./include/cvm-bd-t.yaml
```## **Known issues**
## **TO DO**
## **Licence**
|[](https://www.apache.org/licenses/LICENSE-2.0)|
|-|
| Apache License, Version 2.0 |## **References**
*