SmartShunt ve.direct to ESPHOME node

Overview

VictronSmartShunt-ESPHOME

SmartShunt ve.direct to ESPHOME node

A configured uart component is required.

Example:

victron:
  uart_id: the_uart

sensor:
  - platform: victron
    battery_voltage:
      id: bv
    battery_current:
      id: bc

The uart_id is optional.

All sensors are optional.

  - platform: victron
    battery_voltage:
      name: "Battery Voltage"  
      id: bv

    battery_current:
      name: "Battery Current" 
      id: bc

    fw_version:
      name: "fw"  
      id: fw

    pid:
      name: "pid"  
      id: pid

    instantaneous_power:
      name: "instantaneous power"  
      id: instantaneous_power      

    time_to_go:
      name: "time to go"  
      id: time_to_go

    consumed_amp_hours:
      name: "consumed amp hours"
      id: consumed_amp_hours  
      unit_of_measurement: Ah

    min_battery_voltage:
      name: "Min battery voltage"
      id: min_battery_voltage   

    max_battery_voltage: 
      name: "Max battery voltage"
      id: max_battery_voltage     

    amount_of_charged:
      name: "Amount of charged"
      id:  amount_of_charged   
      filters:
        - multiply: 0.001
      unit_of_measurement: kWh

    bmv_alarm:
      name: "BMV alarm"
      id: bmv_alarm
      
    bmv_pid:
      name: "bmv - pid"
      id: bmv_pid

    last_full_charge:
      name: "Time since last full charge"
      id: last_full_charge

    deepest_discharge:
      name: "Depth of the deepest discharge"
      id: deepest_discharge   
      unit_of_measurement: Ah

    last_discharge:
      name: "Depth of the last discharge"
      id: last_discharge
      unit_of_measurement: Ah

    discharged_energy:
      name: "Amount of discharged energy"
      id: discharged_energy   
      filters:
        - multiply: 0.001
      unit_of_measurement: kWh

    state_of_charge:
      id: state_of_charge
      name: "SoC"  

Install: copy folder victron in custom_components folder to ~/config/esphome/custom_components/victron

Full example in smartshunt.yaml

Big thanks for help to ssieb

#victron #esphome #smartshunt #bmv #ve.direct 
Comments
  • Smart shunt filter data import (not issue)

    Smart shunt filter data import (not issue)

    hello sir,

    For a project, I have to find a way to import individual data from the smart shunt. To get the data dump in the first place I have used python code from Github. Using a VE direct cable I was able to get data every second. The problem is that I only need the voltage, current, power and SOC and not all data that the smart shunt sends every second. Do you have an idea how to only get the right data from the data dump?

    All information that I used to get the data from the smart shunt you can find here karioja/vedirect.

    your sincerely, livestyle4

    opened by livestyle4 6
  • Fix typo in instantaneous

    Fix typo in instantaneous

    Thank you for this amazing project!

    Just fixing a minor typo. Validated this way https://github.com/yoannchaudet/ESPHome-configuration/blob/e6c90b78f7b12b94a25da9e6fff9f8ae660733fe/device.shed-controller.yaml#L79.

    image

    It's a breaking change since the typo was in the sensor name.

    opened by yoannchaudet 1
  • ld.exe: cannot find crt1-sim.o

    ld.exe: cannot find crt1-sim.o

    Hi,

    I've spent hours trying trying to make this work, but no such luck. Do I have a defective board? Arduino: 1.8.15 (Windows 10), Board: "SparkFun ESP32 Thing, 80MHz, Default, 921600, None"

    C:\Users\kevin\OneDrive\Documents\SmartShuntWiFi\SmartShuntWiFi.ino:138:32: warning: multi-character character constant [-Wmultichar]

     val = Vser.readStringUntil('\r\r\n');              // this is the line that reads the value of the label
    
                                ^
    

    C:\Users\kevin\OneDrive\Documents\SmartShuntWiFi\SmartShuntWiFi.ino: In function 'void loop()':

    C:\Users\kevin\OneDrive\Documents\SmartShuntWiFi\SmartShuntWiFi.ino:138:40: warning: large integer implicitly truncated to unsigned type [-Woverflow]

     val = Vser.readStringUntil('\r\r\n');              // this is the line that reads the value of the label
    
                                        ^
    

    At global scope:

    cc1plus.exe: warning: unrecognized command line option '-Wno-frame-address'

    c:/users/kevin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory

    c:/users/kevin/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory

    collect2.exe: error: ld returned 1 exit status

    Multiple libraries were found for "WiFiUdp.h"

    Used: C:\Users\kevin\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\libraries\WiFi

    Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

    Not used: C:\Users\kevin\OneDrive\Documents\Arduino\libraries\WiFi

    Not used: C:\Users\kevin\OneDrive\Documents\Arduino\libraries\WiFiEspAT

    Multiple libraries were found for "SoftwareSerial.h"

    Used: C:\Users\kevin\OneDrive\Documents\Arduino\libraries\EspSoftwareSerial

    Not used: C:\Users\kevin\OneDrive\Documents\Arduino\libraries\espsoftwareserial-master

    exit status 1

    Error compiling for board SparkFun ESP32 Thing.

    This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

    opened by kevinkey619 1
  • Rename component to victron_smart_shunt

    Rename component to victron_smart_shunt

    Do you agree to rename this component to victron_smart_shunt? Without the name clash between VictronMPPT-ESPHOME and VictronSmartShunt-ESPHOME both components could be used simultaneously at the same ESP (on different UARTs).

    opened by syssi 1
  • Correct pinouts on README.md

    Correct pinouts on README.md

    For the SmartShunt, the TX pin seems to be next to the VCC pin rather than next to GND as was shown in the first drawing (the second drawing for the UART-TTL was correct). Additionally, the orientation of the UART-TTL jack drawing has been rotated to reflect the orientation on the Victron SmartShunt. The required UART section was also added to the sample yaml configs.

    opened by derekyle 0
  • Create LICENSE

    Create LICENSE

    MIT License

    Copyright (c) 2021 KinDR007

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    opened by KinDR007 0
  • Victron BMV 700

    Victron BMV 700

    Hello, i just wanted to ask if the victron BMV 700 is supported. Victron itself says that the smartshunt is a BMV 712 just without display and potential free relay. The BMV 700 is a BMV 712, just without bluetooth and the ability to measure the middle voltage of a battery bank. So it should not be so hard to support it, if it doesnt work right now, should it?

    opened by MrJoki007 1
  • Add support for battery temperature

    Add support for battery temperature

    This PR addresses https://github.com/KinDR007/VictronSmartShunt-ESPHOME/issues/18.

    Creates a battery_temperature sensor that returns a value when a temperature probe is connected to the auxiliary port of a Smart Shunt.

    Tested with my setup:

    image

    opened by yoannchaudet 0
  • Fix typo in instantaneous

    Fix typo in instantaneous

    Thank you for this amazing project!

    Just fixing a minor typo. Validated this way https://github.com/yoannchaudet/ESPHome-configuration/blob/e6c90b78f7b12b94a25da9e6fff9f8ae660733fe/device.shed-controller.yaml#L79.

    image

    It's a breaking change since the typo was in the sensor name.

    opened by yoannchaudet 0
  • Energy monitoring in HA

    Energy monitoring in HA

    Hi, [request for enhancement]

    Would it be possible, please, to add an entity into the code to allow Home Assistant to pick it up for Baterry monitoring (Energy dashboard)?

    image

    image

    opened by zbyndatvrd 3
  • BLE version ?

    BLE version ?

    Hi thanks for your great job to ESPhomify this Victron device. Seems Victron released the BLE protocol: https://community.victronenergy.com/questions/93919/victron-bluetooth-ble-protocol-publication.html

    Maybe there is a hope to add it in your current implementation ?

    Sébastien

    opened by SeByDocKy 1
  • Battery Temperature

    Battery Temperature

    Hello,

    First of all, this is awesome. Thanks for putting this together, worked like a charm.

    I have a VictronSmartShunt with a temperature sensor connected to the aux, would it be possible to pull temperature?

    Cheers, Dick

    opened by icdragon 4
Owner
null
This repository uses a ROS node to subscribe to camera (hikvision) and lidar (livox) data. After the node merges the data, it publishes the colored point cloud and displays it in rviz.

fusion-lidar-camera-ROS 一、介绍 本仓库是一个ROS工作空间,其中ws_fusion_camera/src有一个工具包color_pc ws_fusion_camera │ README.md │ └───src │ └───package: c

hongyu wang 23 Dec 7, 2022
ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.

esphome-xiaomi_bslamp2 Warning: this code is still under development This code might not yet be production-ready. At this point, it is declared beta-q

Maurice Makaay 136 Dec 27, 2022
Simple ESPHome Wiegand custom component

esphome-wiegand Simple ESPHome Wiegand custom component Based on this code: https://github.com/Luisiado/wiegand_esphome_module To use: Drop wiegand_de

Av 24 Dec 26, 2022
A collection of my ESPHome components.

ESPHome components A collection of my ESPHome components. To use this repository you should confugure it inside your yaml-configuration: external_comp

null 89 Jan 4, 2023
ESPHome BLE Keyboard

ESPHome BLE Keyboard The firmware implements the ability to connect your esp32 device as a BLE keyboard and send keystrokes via Home Assistant Table o

Dmitry Mamontov 33 Dec 29, 2022
Projects related to sync'ing esphome devices with other protocols: DDP, E131, etc...

esphome sync This project is due to a desire to leverage WLED's new virtual strip (via DDP) feature or software like xLights or LEDFx to controls ESP

tony 12 Dec 24, 2022
Custom ESPHome Component for generic Sit-Stand-Desks

ESPHomeGenericSitStandDesk I have one of those generic relatively cheap Sit Stand Desks. In an effort to monitor my desk usage I developed this overki

Till 18 Dec 27, 2022
EspHoMaTriX - A simple DIY status display with an 8x32 RGB LED panel implemented with esphome.io

EspHoMaTriX (ehmtx) A simple DIY status display with an 8x32 RGB LED panel implemented with esphome.io Introduction There are some status displays out

LuBeDa 55 Dec 29, 2022
ESPHome component to send and receive HDMI-CEC messages.

HDMI-CEC ESPHome Component An ESPHome component that supports receiving and transmitting HDMI-CEC messages to connected HDMI devices. The ultimate goa

John Boiles 23 Dec 16, 2022
The Pizza Compass will determine your location and direct you to the nearest pizza place. It’s like a regular compass, but better!

Pizza_Compass A Particle project named Pizza_Compass Welcome to your project! Every new Particle project is composed of 3 important elements that you'

Joe Grand 68 Aug 16, 2022
FastPath_MP: An FPGA-based multi-path architecture for direct access from FPGA to NVMe SSD

FastPath_MP Description This repository stores the source code of FastPath_MP, an FPGA-based multi-path architecture for direct access from FPGA to NV

Beehive lab 21 Sep 12, 2022
Some source code to demonstrate avoiding certain direct syscall detections by locating and JMPing to a legitimate syscall instruction within NTDLL.

hiding-your-syscalls What is this? This repository contains all of the source code from my blog post about avoiding direct syscall detections, which y

null 198 Dec 1, 2022
Demonstrates implementation of the Windows 10 Acrylic Effect on C++ Win32 Apps using DWM Private APIs and Direct Composition

Win32 Acrylic Effect A Demonstration of Acrylic Effect on C++ Win32 applications using Direct Composition and DWM private APIs. Table of Contents Over

Selastin 132 Dec 21, 2022
The QPEP-Enhanced Direct Sparse Odometry (DSO) with Loop Closure

QPEP-DSO: Quadratic Pose Estimation Problems (QPEP) Enhanced Direct Sparse Odometry with Loop Closure Code Arch The codes are motivated by DSO (https:

Jin Wu 8 Jun 23, 2022
Direct Digital Synthesis DDS with microcontroller

Direct Digital Synthesis DDS with microcontroller DDS is a cool thing. To understand how it works is even cooler. So I wrote a little tutorial about D

weigu 2 Nov 8, 2022
Implementation of Monocular Direct Sparse Localization in a Prior 3D Surfel Map (DSL)

Implementation of Monocular Direct Sparse Localization in a Prior 3D Surfel Map (DSL)

Haoyang Ye 93 Nov 30, 2022
Direct LiDAR Odometry: Fast Localization with Dense Point Clouds

Direct LiDAR Odometry: Fast Localization with Dense Point Clouds DLO is a lightweight and computationally-efficient frontend LiDAR odometry solution w

VECTR at UCLA 369 Dec 30, 2022
This repo includes SVO Pro which is the newest version of Semi-direct Visual Odometry (SVO) developed over the past few years at the Robotics and Perception Group (RPG).

rpg_svo_pro This repo includes SVO Pro which is the newest version of Semi-direct Visual Odometry (SVO) developed over the past few years at the Robot

Robotics and Perception Group 1k Dec 26, 2022
raincoat is a shellcode injector that uses direct syscall invoking.

raincoat is a shellcode injector that uses direct syscall invoking. by liz @realhaxorleet & ellyysium @ellyysium opening the code may cause brain dama

null 5 Jan 29, 2022