kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
221 stars 92 forks source link

DEBUG_DEVICE not found #214

Closed Elsorus closed 10 months ago

Elsorus commented 11 months ago

Issue related to

Sunsynk / mbusd Home Assistant Add-On

Describe the issue/bug

Error message trying to start add-on and saving config: Device /dev/ttyAMA0 does not exist in Sunsynk/Deye Inverter Add-on (multi) (4bb530c7_hass-addon-sunsynk-multi).

Tried changing the setting in YAML from /dev/ttyAMA0 to some of the items listed under dev like /dev/stdout but cannot save the config complaining the DEBUG_DEVICE was not found.

Expected behavior Add-on not starting after Home Assistant OS upgrade to 11.2

Your environment

You configuration

DRIVER: umodbus
INVERTERS:
  - SERIAL_NR: "22073XXXXX"
    HA_PREFIX: SS
    MODBUS_ID: 1
    PORT: tcp://10.0.0.54:502
SENSOR_DEFINITIONS: single-phase
SENSORS:
  - total_pv_energy
  - total_battery_charge
  - total_battery_discharge
  - total_grid_export
  - total_grid_import
  - battery_soc
  - essential_power
  - interter_power
  - grid_power
  - non_essential_power
  - battery_current
  - battery_voltage
  - Day Active Energy
  - inverter_power
  - battery_power
  - Grid Connected Status
  - Grid voltage
  - Load power
  - PV1 power
  - PV2 power
  - settings
  - load_limit
  - grid_connected
SENSORS_FIRST_INVERTER:
  - single-phase
MANUFACTURER: Sunsynk
READ_ALLOW_GAP: 5
READ_SENSORS_BATCH_SIZE: 60
SCHEDULES:
  - KEY: W
    READ_EVERY: 5
    REPORT_EVERY: 60
    CHANGE_ANY: false
    CHANGE_BY: 80
    CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
MQTT_HOST: homeassistant.d
MQTT_PORT: 1883
MQTT_USERNAME: mqttadmin
MQTT_PASSWORD: mqttpwd
DEBUG: 0
DEBUG_DEVICE: /dev/ttyAMA0
kellerza commented 11 months ago

Do you see any other options in visual mode?

Its not being used in your config, so simply select anything that is avaliable

Elsorus commented 11 months ago

Unfortunately, there is nothing displayed. No radio button(s) as is the case in OS version 11.1 image

arzaman commented 11 months ago

Hi same problem here !

don't see any DEBUG_DEVICE list to select proper one image

I have tried to insert several values but always same write error

this is my yaml config file

DRIVER: solarman
INVERTERS:
  - SERIAL_NR: "22xxxxxxxx"
    HA_PREFIX: SS
    MODBUS_ID: 1
    DONGLE_SERIAL_NUMBER: "23xxxxxxxx"
    PORT: tcp://192.168.86.26:8899 (this is static IP address of my solarman wifi dongle)
SENSOR_DEFINITIONS: single-phase
SENSORS:
  - energy_management
  - power_flow_card
  - pv2_power
SENSORS_FIRST_INVERTER:
  - settings
MANUFACTURER: Deye
READ_ALLOW_GAP: 2
READ_SENSORS_BATCH_SIZE: 20
SCHEDULES:
  - KEY: W
    READ_EVERY: 15
    REPORT_EVERY: 60
    CHANGE_ANY: false
    CHANGE_BY: 80
    CHANGE_PERCENT: 0
NUMBER_ENTITY_MODE: auto
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: hass
MQTT_PASSWORD: ""
DEBUG: 0
DEBUG_DEVICE: /dev/ttyAMA0

this is my USB device in HW definition of HA (RPI 3 Model B)

image

thanks for support Davide

kellerza commented 11 months ago

Did this work before an upgrade?

Elsorus commented 11 months ago

This all started after the upgrade from HA OS 11.1 to 11.2. I have some automations that depend on the inverter formation so I rolled back to 11.1 and all is working again

arzaman commented 11 months ago

Did this work before an upgrade?

my first installation so I have no previous experience

home assistant core 2023.11.3 did everthing from scratch

PS did also several restart/browser cache cleaning/different browser used thanks Davide

duanemck commented 11 months ago

Just had the same issue after upgrading to 11.2 Luckily I still had another device listed under DEBUG_DEVICE that I could pick which solved the issue.

image

kellerza commented 11 months ago

It seems /dev/AMA0 was removed in 11.2.

The result is that if you have no actual USB device on your host, which is normal for a install using mbusd on a remote device, you might have an issue

DEBUG_DEVICE should now be optional in 0.6.5

arzaman commented 11 months ago

I try to update/reinstall 0.6.5 but now got an error during installation ..

Can't install ghcr.io/kellerza/hass-addon-sunsynk-multi/aarch64:0.6.5: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=0.6.5&fromImage=ghcr.io%2Fkellerza%2Fhass-addon-sunsynk-multi%2Faarch64&platform=linux%2Farm64: Internal Server Error ("manifest unknown")

kellerza commented 11 months ago

It should now be available

arzaman commented 11 months ago

It works fine now for me ! great and prompt support, thank you Davide

arzaman commented 11 months ago

@kellerza since you are so kind little bit of assistance more (not related to above issue)

all works flowlsessly ...really cool integration with no extra HW !

the only little issue that PV2 voltage/current counters are missing ..just POWER is reporte, PV1 all OK !

image

my inverter DEYE 5KW hybrid inverter SUN-3.6/5/6K-SG03LP1-EU let me know if something I can fix by myself

thanks again Davide

kellerza commented 11 months ago

It might be part of the definitions today (these you add simply by adding the name to config)

if not in the definitions, you can add new definitions with mysensors - search mysensors in the docs. Its fairly easy to add additional ones

arzaman commented 11 months ago

if not in the definitions, you can add new definitions with mysensors - search mysensors in the docs. Its fairly easy to add additional ones

Done ! it works fine now...all KPI available

thanks again ...may I buy you a coffe/beer ? :-)

Elsorus commented 10 months ago

Closing as this was related to the HA OS upgrade and DEBUG_DEVICE was made optional in 0.6.5