Multiple Tp link power sensors

Hi, i have tried all sorts of combinations, i am trying to get the power information from multiple TP link HS110 switches, The first lot of code (dryer) works but when i repeat with the second instance it comes up will all kinds of errors. Im sure its a quick fix but im new to HA and struggling

Thanks in advance

#TP Link Switch
tplink:
  discovery: false
  switch:
    - host: 192.168.99.101
    
sensor:
  - platform: tplink
    sensors:
      dryer_tp_switch_watts:
        friendly_name_template: 'Dryer Current'
        value_template: '{{ states.switch.dryer.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      dryer_tp_switch_today_kwh:
        friendly_name_template: 'Dryer Todays Consumption'
        value_template: '{{ states.switch.dryer.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      dryer_tp_switch_total_kwh:
        friendly_name_template: 'Dryer Total Consumption'
        value_template: '{{ states.switch.dryer.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

tplink:
  discovery: false
  switch:
    - host: 192.168.99.103
    
sensor:
  - platform: tplink
    sensors:
      washing_tp_switch_watts:
        friendly_name_template: 'Washing Current'
        value_template: '{{ states.switch.washing.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      washing_tp_switch_today_kwh:
        friendly_name_template: 'Washing Todays Consumption'
        value_template: '{{ states.switch.washing.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_total_kwh:
        friendly_name_template: 'Washing Total Consumption'
        value_template: '{{ states.switch.washing.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

Try this:

#TP Link Switch
tplink:
  discovery: false
  switch:
    - host: 192.168.99.101
    - host: 192.168.99.103
    
sensor:
  - platform: tplink
    sensors:
      dryer_tp_switch_watts:
        friendly_name_template: 'Dryer Current'
        value_template: '{{ states.switch.dryer.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      dryer_tp_switch_today_kwh:
        friendly_name_template: 'Dryer Todays Consumption'
        value_template: '{{ states.switch.dryer.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      dryer_tp_switch_total_kwh:
        friendly_name_template: 'Dryer Total Consumption'
        value_template: '{{ states.switch.dryer.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
    
  - platform: tplink
    sensors:
      washing_tp_switch_watts:
        friendly_name_template: 'Washing Current'
        value_template: '{{ states.switch.washing.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      washing_tp_switch_today_kwh:
        friendly_name_template: 'Washing Todays Consumption'
        value_template: '{{ states.switch.washing.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_total_kwh:
        friendly_name_template: 'Washing Total Consumption'
        value_template: '{{ states.switch.washing.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

I think that should be “platform: template”.

sensor:
  - platform: template
    sensors:
      dryer_tp_switch_watts:
        friendly_name_template: 'Dryer Current'
        value_template: '{{ states.switch.dryer.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      dryer_tp_switch_today_kwh:
        friendly_name_template: 'Dryer Todays Consumption'
        value_template: '{{ states.switch.dryer.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      dryer_tp_switch_total_kwh:
        friendly_name_template: 'Dryer Total Consumption'
        value_template: '{{ states.switch.dryer.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_watts:
        friendly_name_template: 'Washing Current'
        value_template: '{{ states.switch.washing.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      washing_tp_switch_today_kwh:
        friendly_name_template: 'Washing Todays Consumption'
        value_template: '{{ states.switch.washing.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_total_kwh:
        friendly_name_template: 'Washing Total Consumption'
        value_template: '{{ states.switch.washing.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

Thanks guys, it ended up a combination, the following worked perfectly

#TP Link Switch

tplink:
  discovery: false
  switch:
    - host: 192.168.99.101
    - host: 192.168.99.103
sensor:
  - platform: template
    sensors:
      dryer_tp_switch_watts:
        friendly_name_template: 'Dryer Current'
        value_template: '{{ states.switch.dryer.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      dryer_tp_switch_today_kwh:
        friendly_name_template: 'Dryer Todays Consumption'
        value_template: '{{ states.switch.dryer.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      dryer_tp_switch_total_kwh:
        friendly_name_template: 'Dryer Total Consumption'
        value_template: '{{ states.switch.dryer.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_watts:
        friendly_name_template: 'Washing Current'
        value_template: '{{ states.switch.washing.attributes["current_power_w"] | float }}'
        unit_of_measurement: 'W'
      washing_tp_switch_today_kwh:
        friendly_name_template: 'Washing Todays Consumption'
        value_template: '{{ states.switch.washing.attributes["today_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'
      washing_tp_switch_total_kwh:
        friendly_name_template: 'Washing Total Consumption'
        value_template: '{{ states.switch.washing.attributes["total_energy_kwh"] | float }}'
        unit_of_measurement: 'kWh'

This works perfectly on HA 0.107.7 but after upgrade to latest HA 0.114.2, then no tplink sensor being created. What happens? Any breaking changes from 107.7 to 114.2 ? Anybody experience the same or only me?