turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
44 stars 10 forks source link

The ams platform for the sensor integration does not support platform setup #42

Closed TomaszKn closed 3 years ago

TomaszKn commented 3 years ago

Hi I'm testing you component. When I'm install and config it in configuration.yaml home assistant report problem: ERROR (MainThread) [homeassistant.components.sensor] The ams platform for the sensor integration does not support platform setup. Please remove it from your config.

How fix it?

Core: core-2021.2.3 Supervisor: supervisor-2021.02.9 Operating System Raspbian GNU/Linux 10 (buster) (rpi 4) Docker version 19.03.13

turbokongen commented 3 years ago

You should not have an entry under sensor: It is a component config. Please follow the documentation in the readme for yaml setup.:

ams:
  serial_port: '/dev/ttyUSB0' # Required
  parity: 'N'  # Optional, defaults to 'N'
  meter_manufacturer: 'auto' # Optional, defaults to 'auto'
turbokongen commented 3 years ago

Did this solve your problem?

TomaszKn commented 3 years ago

Yes THX