SebuZet / samsungrac

Home Assistant Climate Device for controlling (not only) Samsung AC
65 stars 31 forks source link

Configuration.yaml multiple devices samsung 2787 #23

Open petroionut26 opened 4 years ago

petroionut26 commented 4 years ago

Hy, i added 2 devices in my configuration.yaml, but i only see AC Living Room in my HA, what can i do to control the other one? Thanks alot.

climate: platform: climate_ip config_file: ‘/config/custom_components/climate_ip/samsungroom.yaml’ ip_address: … token: … mac: … name: ‘AC BedRoom’ poll: True debug: true

platform: climate_ip config_file: ‘/config/custom_components/climate_ip/samsungliving.yaml’ ip_address: … token: … mac: … name: ‘AC Living Room’ poll: True debug: true

atxbyea commented 4 years ago

The easiest way is to create two different custom_components, extract the component to "climate_room" and "climate_living" in your "custom_components" folder. Then setup as normal.

petroionut26 commented 4 years ago

[homeassistant.util.yaml.loader]yaml file /config/configuration.yaml contains duplicate key "platform" and "config_file" and the rest, anything i do, same problem, can you help me with an example of good configuration of configuration.yaml? Thanks alot.