Andre-Schuiki / esphome_im350

GNU General Public License v3.0
13 stars 8 forks source link

Platform not found: sonor.siemens_im350 #3

Open grisu122 opened 2 years ago

grisu122 commented 2 years ago
cv.Optional(CONF_COUNTER_READING_P_IN): sensor.sensor_schema(UNIT_WATT_HOURS, ICON_POWER, 2),
TypeError: sensor_schema() takes from 0 to 1 positional arguments but 3 were given

modification /siemens_im350/sensor.py starting in line 79

    cv.Optional(CONF_COUNTER_READING_P_IN): sensor.sensor_schema(unit_of_measurement=UNIT_WATT_HOURS, icon=ICON_POWER, accuracy_decimals=2),
    cv.Optional(CONF_COUNTER_READING_P_OUT): sensor.sensor_schema(unit_of_measurement=UNIT_WATT_HOURS, icon=ICON_POWER, accuracy_decimals=2),
    cv.Optional(CONF_COUNTER_READING_Q_IN): sensor.sensor_schema(unit_of_measurement=UNIT_VOLT_AMPS_REACTIVE_HOURS, icon=ICON_POWER, accuracy_decimals=2),
    cv.Optional(CONF_COUNTER_READING_Q_OUT): sensor.sensor_schema(unit_of_measurement=UNIT_VOLT_AMPS_REACTIVE_HOURS, icon=ICON_POWER, accuracy_decimals=2),
    cv.Optional(CONF_POWER_USAGE_IN): sensor.sensor_schema(unit_of_measurement=UNIT_WATT, icon=ICON_POWER, accuracy_decimals=2),
    cv.Optional(CONF_POWER_USAGE_OUT): sensor.sensor_schema(unit_of_measurement=UNIT_WATT, icon=ICON_POWER, accuracy_decimals=2),
chrzr commented 2 years ago

I ran into the same issue a few days ago. After updating to the newest version of the integration I am supposedly only getting back empty messages from the IM350. Any idea what could cause this?

Thanks in advance!

Edit: I just tried it with a different ESP32 board and I also swapped the transistor just to be sure. Still the same.