You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the programming code I copied and adopted for my esp8266 ESPHOME device in Homeassistant!
In Homeassistant there is not any entity available when I install the code and after it goes online!?
This is my soyo018-vmeter.yaml
substitutions:
name: soyo018-vmeter
device_description: "Monitor a Soyosource GTN and control the power output on demand both via RS485"
external_components_source: github://syssi/esphome-soyosource-gtn-virtual-meter@main
tx_pin: GPIO1
rx_pin: GPIO3
then it is fine, but I miss the values of the Battery Voltage and Amps, and all others in Homeassistant, but I can manage the soyo device over the esp8266 web interface.
At least the yaml code for the lovelace card would be nice to have. the picture of the lovelace is nice but not usable..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is the programming code I copied and adopted for my esp8266 ESPHOME device in Homeassistant!
In Homeassistant there is not any entity available when I install the code and after it goes online!?
This is my soyo018-vmeter.yaml
substitutions:
name: soyo018-vmeter
device_description: "Monitor a Soyosource GTN and control the power output on demand both via RS485"
external_components_source: github://syssi/esphome-soyosource-gtn-virtual-meter@main
tx_pin: GPIO1
rx_pin: GPIO3
esphome:
name: ${name}
friendly_name: ${name}
comment: ${device_description}
min_version: 2024.6.0
project:
name: "syssi.esphome-soyosource-gtn-virtual-meter"
version: 2.2.0
esp8266:
board: d1_mini
external_components:
refresh: 0s
Enable Home Assistant API
api:
encryption:
key: "uF6MDN/9mqT2ySVt2JuDizaGh/BwNtk34dEQJnGb8V8="
ota:
password: "7efa.... individual code"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.18
gateway: 192.168.1.1
subnet: 255.255.255.0
dns1: 192.168.1.8
dns2: 8.8.8.8
domain: .local
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Soyo018-Vmeter Fallback Hotspot"
password: "wXAFdvyl56FU"
logger:
level: DEBUG
logs:
api.service: WARN
ota: WARN
sensor: DEBUG
uart:
baud_rate: 4800
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
debug:
direction: BOTH
soyosource_modbus:
id: modbus0
uart_id: uart_0
flow_control_pin: GPIO12
Optional settings
The name is used as prefix for some log messages and should
help to distinguish between different instances/devices
name: soyo018_inverter
soyosource_virtual_meter:
id: virtualmeter0
soyosource_modbus_id: modbus0
The state of this sensor (instantaneous power in watt) is used as source
power_id: powermeter0
Optional settings
power_sensor_inactivity_timeout: 20s
power_demand_calculation: NEGATIVE_MEASUREMENTS_REQUIRED
min_power_demand: 0
max_power_demand: 900
zero_output_on_min_power_demand: true
Split/distribute the power demand if you have multiple inverters attached to the same RS485 bus
power_demand_divider: 1
A positive buffer value (10) tries to avoid exporting power to the grid (demand - 10 watts)
A negative buffer value (-10) exports power to the grid (demand + 10 watts)
buffer: 10
The operation_status_id sensor is expected here. Passing the operation_status won't work
The state is used to suspend the limiter if the operation status of the inverter isn't 0x0 (normal)
operation_status_id: operation_status_id0
The update interval is important and defaults to 3 seconds. If the demand is sent too frequently
or rarely the interverter stops. TODO: Identify and validate the lower and upper update limit
update_interval: 3s
soyosource_inverter:
soyosource_modbus_id: modbus0
binary_sensor:
soyosource_inverter_id: inverter0
fan_running:
name: "${name} fan running"
number:
soyosource_virtual_meter_id: virtualmeter0
buffer:
name: "${name} buffer"
initial_value: 10
restore_value: true
manual_power_demand:
name: "${name} manual power demand"
max_value: 900
max_power_demand:
name: "${name} max power demand"
initial_value: 600
max_value: 900
restore_value: true
power_demand_divider:
name: "${name} power demand divider"
initial_value: 1
restore_value: true
sensor:
platform: soyosource_virtual_meter
soyosource_virtual_meter_id: virtualmeter0
power_demand:
name: "${name} power demand"
platform: soyosource_inverter
soyosource_inverter_id: inverter0
operation_status_id:
name: "${name} operation status id"
id: operation_status_id0
battery_voltage:
name: "${name} battery voltage"
battery_current:
name: "${name} battery current"
battery_power:
name: "${name} battery power"
ac_voltage:
name: "${name} ac voltage"
ac_frequency:
name: "${name} ac frequency"
temperature:
name: "${name} temperature"
import smartmeter reading from homeassistant
requires the "api" component see above
id: powermeter0
name: "${name} smartmeter instantaneous power"
entity_id: sensor.p_netz
filters:
switch:
soyosource_virtual_meter_id: virtualmeter0
manual_mode:
name: "${name} manual mode"
restore_mode: RESTORE_DEFAULT_ON
emergency_power_off:
name: "${name} emergency power off"
restore_mode: RESTORE_DEFAULT_OFF
text_sensor:
platform: soyosource_virtual_meter
soyosource_virtual_meter_id: virtualmeter0
operation_mode:
name: "${name} limiter operation mode"
platform: soyosource_inverter
soyosource_inverter_id: inverter0
operation_status:
name: "${name} operation status"
captive_portal:
..... it compiles and upload without error!
this is the Logfile after boot:
logs_soyo018-vmeter_run.txt
PS: when I flash the same esp8266 device with the firmware of this project
https://github.com/KlausLi/Esp-Soyosource-Controller?tab=readme-ov-file#readme
then it is fine, but I miss the values of the Battery Voltage and Amps, and all others in Homeassistant, but I can manage the soyo device over the esp8266 web interface.
At least the yaml code for the lovelace card would be nice to have. the picture of the lovelace is nice but not usable..
please and Thank you for your HELP!
Karl
Beta Was this translation helpful? Give feedback.
All reactions