Need help with Logitech Harmony Setup

Dont know what went wrong.

Nothing has changed.

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 17.3753
  longitude: 78.4744
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 500
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Asia/Kolkata

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

group: !include groups.yaml
automation: !include automations.yaml

switch:
  - platform: template'
    switches:
      switch_xbox:
        friendly_name: 'Switch xbox'
        value_template: "{{ is_state('remote.bedroom', 'Switch xbox') }}"
        turn_on:
          service: remote.turn_on
          entity_id: remote.bedroom
          data:
            activity: 25977203
        turn_off:
          service: remote.turn_off
          entity_id: remote.bedroom
          data:
            activity: 25977203

  - platform: tplink
    host: 192.178.1.4   

dont know what has gone wrong again.

I’m unsure. Attempt to restart home assistant again and see if the switches show up.

Here’s how I set up my template switches. I also have this in a GitHubGist.

- platform: template
  switches:
    VIRTUAL_SWITCH_NAME:
      value_template: "{{ is_state_attr('remote.REMOTE_NAME', 'current_activity', 'ACTIVITY NAME') }}"
      turn_on:
        service: remote.turn_on
        entity_id: remote.REMOTE_NAME 
        data:
          activity: "ACTIVITY_ID"
      turn_off:
        service: remote.turn_off
        entity_id: remote.REMOTE_NAME
        data:
          activity: "-1"