syssi / esphome-soyosource-gtn-virtual-meter

ESPHome component to simulate the current clamp to control the Soyosource GTN1200 limiter
Apache License 2.0
78 stars 21 forks source link

soyosource_modbus need a name now #43

Closed IceOnly closed 2 years ago

IceOnly commented 2 years ago

I got the following error:

soyosource_modbus: [source /config/esphome/soyosource.yaml:37]

  'name' is a required option for [0].
  - [source /config/esphome/soyosource.yaml:37]
    {}

There is this name used for? Can i change

soyosource_modbus:

to

soyosource_modbus:
   name: ${name}

Would be nice if the readme will be updated :)

syssi commented 2 years ago

The name is used as prefix for the log messages. If you have multiple inverters the prefix/name is helpful to distinguish between the different devices.

syssi commented 2 years ago

I've added a default (name: "unnamed") now to avoid the breaking change and disturbing more people. :-)