kellerza / sunsynk

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

PROFILES system_mode, where are the select entities? #76

Closed ASomerN closed 1 year ago

ASomerN commented 1 year ago

Hi,

Amazing work on the addon, I've recently updated to version: 2022.11.29-0.2.5

I'm looking to set the battery to charge dynamically based on tariff updates (these can occur outside preset times).

I've set the profile system_mode.

PORT: /dev/ttyUSB0
DEVICE: /dev/ttyUSB0
DRIVER: pymodbus
SUNSYNK_ID: "**********"
SENSOR_PREFIX: sunsynk_
SENSORS:
  - total_pv_power
  - total_battery_charge
  - total_battery_discharge
  - total_grid_export
  - total_grid_import
  - battery_soc
  - grid_power
  - pv1_power
  - pv2_power
  - battery_power
  - load_power
  - grid_frequency
READ_SENSORS_BATCH_SIZE: 60
NUMBER_ENTITY_MODE: auto
PROFILES:
  - system_mode
MODBUS_SERVER_ID: 1
MQTT_HOST: core-mosquitto
MQTT_PORT: 1883
MQTT_USERNAME: *
MQTT_PASSWORD: *
DEBUG: 0

Everything I've previously set up (sensors) is still there and updating.

When implementing the system settings example: (with changed prefixes) nothing is available.

Am I supposed to be defining these writeable sensors or should they be written on the initial connection when the add-on starts?

Thanks,

ASomerN commented 1 year ago

question answered by this issue: https://github.com/kellerza/sunsynk/issues/77