Skip to content

epsolar error "Platform not found: 'sensor.epsolar'" #59

Description

@oliwitte

The problem

Hi, I just found your code to add eppsolar mppt cahrge controller to esphome, tahnks a lot for your work. I'm trying to impement your code via esphome in my home assistant server, bit always get the aboce error. I know this is due to missing header files, but I have no clue how to include them and there's nothing about this in your documentation. Can you give me a hint or add information about this to the docs? Thanks a lot and best regards, Oliver

Which version of ESPHome has the issue?

2026.3.1

What type of installation are you using?

Home Assistant Add-on

What platform are you using?

ESP8266

Component causing the issue

sensor.epsolar

YAML Config

esphome:
  name: d1-epever-rs485
  friendly_name: D1-EPEver-RS485
  comment: "Read EPEver solar charger via RS485-to-TTL board"

esp8266:
  board: d1_mini

# Enable logging
logger:
  level: DEBUG

time:
  - platform: sntp
    id: sntp_time
    timezone: "CET-1CEST,M3.5.0,M10.5.0/3"
    servers: "de.pool.ntp.org"

# Enable Home Assistant API
api:
  encryption:
    key: "<not shown>"

ota:
  - platform: esphome
    password: "<not shown>"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  min_auth_mode: WPA2

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "D1-Epever-Rs485 Fallback Hotspot"
    password: "<not shown>"

mqtt:
  broker: 192.168.1.124

uart:
  id: mod_bus
  tx_pin: GPIO1
  rx_pin: GPIO3
  baud_rate: 115200
  stop_bits: 1

modbus:
  id: modbus_epsolar
  # ctrl_pin: 5    # if you need to set the driver enable (DE) pin high before transmitting data configure it here
  uart_id: mod_bus

sensor:
  - platform: epsolar
    modbus_id: modbus_epsolar
    id: traceran
    ## the Modbus device addr 
    address: 0x1    
    array_rated_voltage:
      name: "array_rated_voltage"
    array_rated_current:
      name: "array_rated_current"
    array_rated_power:
      name: "array_rated_power"
    battery_rated_voltage:
      name: "battery_rated_voltage"
    battery_rated_current:
      name: "battery_rated_current"
    battery_rated_power:
      name: "battery_rated_power"
    charging_mode:
      name: "charging_mode"
    rated_current_of_load:
      name: "rated_current_of_load"
    pv_input_voltage:
      name: "PV array input voltage"
    pv_input_current:
      name: "PV array input current"
    pv_power:
      name: "PV array input power"
    battery_power:
      name: "Battery Power"
  #    address: 0x3100
    load_voltage:
      name: "Load Voltage"
    load_current:
      name: "Load Current"
    load_power:
      name: "Load Power"
    battery_temperature:
      name: "Battery Temperature"
    device_temperature:
      name: "Device Temperature"
    battery_soc:
      name: "Battery Remaining Capacity"
    remote_battery_temperature:
      name: "Remote Battery Temperature"
    max_pv_voltage_today:
      name: "Maximum PV voltage today"
    min_pv_voltage_today:
      name: "Minimum PV voltage today"
    max_battery_voltage_today:
      name: "Maximum battery voltage today"
    min_battery_today:
      name: "Minimum battery voltage today"
    consumed_energy_today:
      name: "Consumed energy today"
    consumed_energy_month:
      name: "Consumed Energy Month"
    consumed_energy_year:
      name: "Consumed energy year"
    consumed_energy_total:
      name: "Consumed energy total"
    generated_energy_today:
      name: "Generated energy today"
    generated_energy_month:
      name: "Generated energy month"
    generated_energy_year:
      name: "Generated energy year"
    generated_energy_total:
      name: "Generated energy total"
    co2_reduction:
      name: "CO2 reduction"
    battery_voltage:
      name: "Battery voltage"
    battery_current:
      name: "Battery current"
    battery_type:
      name: "Battery Type"
    battery_resistence_error:
      name: "Battery Alert"
    battery_status:
      name: "Battery Status"
    charging_status:
      name: "Charging Status"
    discharging_status:
      name: "Discharging Status"
    battery_capacity:
      name: "Battery Capacity"
    temperature_compensation_coefficient:
      name: "temperature compensation coefficient"
    high_volt_disconnect:
      name: "high volt disconnect"
    charging_limit_voltage:
      name: "charging limit voltage"
    over_voltage_reconnect:
      name: "Over voltage reconnect"
    equalization_voltage:
      name: "Equalization Voltage"
    boost_voltage:
      name: "boost voltage"
    float_voltage:
      name: "float voltage"
    line_impedance:
      name: "Line Impedance"
    load_control_mode:
      name: 'Load Control Mode'
      filters:
        - lambda: return x + 0.0;
    is_night:
      name: "is night"
    device_overtemperature:
      name: "Over temperature inside the device"
    force_load_on:
      name: 'force_load the on/off'
      filters:
      - invert:      
    sync_rtc: true
    sensors:
      - id: length_of_night_hours
        address: 0x9065
        offset: 0
        unit_of_measurement: "h" ## for any other unit the value is returned in minutes 
        name: 'Length of night'
        modbus_functioncode: read_holding_registers
        value_type: U_SINGLE
        scale_factor: 1.0

    binary_sensors:
      - id: default_load_mode
        modbus_functioncode: read_holding_registers
        address: 0x906A
        offset: 0
        name: 'Default Load On/Off'
        bitmask: 1
    update_interval: 30s      

captive_portal:

Anything in the logs that might be useful for us?

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions