Code check for iTach IP2IR

Following the instructions from @tinglis1 Here and Here I got the blaster to work with no issues using the code provided along with a couple tweaks from the iTach API. my issue is when i add a second notifier for an additional IR command i get

16-12-26 16:16:59 homeassistant.util.yaml: while parsing a block mapping
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 1, column 1
expected , but found ‘-’
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 163, column 1

my config is below, line 163 is the start of the second notify - name: receiver

I have tried indenting like i usually do for multiples but it just doesn’t like it. I appreciate any help with getting this working.

notify:
#  - platform: ip2sl
#    name: ip2cc
#    host: ip2ccip
#    port: 4998
#
#script:
#  activate_gate:
#    sequence:
#      - service: notify.ip2sl
#        data:
#            message: "setstate,1:1,1"
#
#      - delay:
#        seconds: 1
#
#      - service: notify.ip2sl
#        data:
#            message: "setstate,1:1,0"

- name: tv
  platform: ip2sl
  host: ip2irip
  port: 4998
  timeout: 10

script:
  tv_on:
    sequence:
      - service: notify.ip2sl
        data:
            message: sendir,1:3,1,38000,1,1,172,172,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,21,22,21,22,64,22,64,22,21,22,21,22,64,22,21,22,64,22,64,22,21,22,21,22,64,22,64,22,21,22,1820"
  tv_off:
    sequence:
      - service: notify.ip2sl
        data:
            message: "sendir,1:3,1,38000,1,1,173,173,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,21,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,65,21,65,21,21,21,21,21,65,21,65,21,65,21,65,21,21,21,21,21,65,21,65,21,21,21,1832"

- name: receiver
  platform: ip2sl
  host: ip2irip
  port: 4998
  timeout: 10

script:
  receiver_on:
    sequence:
      - service: notify.ip2sl
        data:
            message: "sendir,1:2,1,38000,1,1,172,172,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,21,22,21,22,64,22,64,22,21,22,21,22,64,22,21,22,64,22,64,22,21,22,21,22,64,22,64,22,21,22,1820"
  receiver_off:
    sequence:
      - service: notify.ip2sl
        data:
            message: "sendir,1:2,1,38000,1,1,173,173,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,21,21,65,21,65,21,65,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,65,21,65,21,21,21,21,21,65,21,65,21,65,21,65,21,21,21,21,21,65,21,65,21,21,21,1832"

You need to move the (five lines of code of the) second “notify” platform immediately after the first one, and keep the scripts together (ie remove the second “script:”).

The scripts for the receiver need to refer to the second notify platform - but if you’re using the same physical itach device for both the TV and receiver (it looks like you have the same host ip) you don’t need the second “notify” - just the additional scripts.

Thank you for your reply. I did figure out the separate scripts part while I was waiting and since you brought up the multiple devices I realized in the documentation is states The notifier will bind to the service notify.NOTIFIER_NAME which means pultiple devices can go in one script also, just naming the service to route the correct IP of the device. Thanks for this lesson.