Harmony Remote Trouble getting Device to work in UI

I have added IR controlled candles to my Harmony Hub and can control the device thru the Harmony app on my phone.
I can also control it by executing the service:

{
“entity_id”:“remote.harmony”,
“command”:“PowerOff”,
“device”:“47807873”
}

I am trying to get it to get it to operate in the UI with the following snippit in my configuration.yaml file but nothing happens. However when using that config, it absolutely “crushes” my device.

remote:

  • platform: harmony
    name: Harmony Remote
    host: 172.22.1.145

input_boolean:
candlepower:
name: Candles
initial: off
icon: mdi:candle

automation:

  • alias: “Turn on LED Candles”
    hide_entity: True
    trigger:

    • platform: state
      entity_id: input_boolean.candlepower
      from: ‘off’
      to: ‘on’
      action:
      service: remote.send_command
      data_template:
      command: PowerOn
      device: 47807873
      entity_id: remote.harmony
  • alias: “Turn off LED Candles”
    hide_entity: True
    trigger:

    • platform: state
      entity_id: input_boolean.candlepower
      from: ‘on’
      to: ‘off’
      action:
      service: remote.send_command
      data_template:
      command: PowerOff
      device: 47807873
      entity_id: remote.harmony

OK, didn’t format it properly in the op

remote:
  - platform: harmony
    name: Harmony Remote
    host: 172.22.1.145

input_boolean:
  candlepower:
    name: Candles
    initial: off
    icon: mdi:candle

automation:
  - alias: "Turn on LED Candles"
    hide_entity: True
    trigger:
      - platform: state
        entity_id: input_boolean.candlepower
        from: 'off'
        to: 'on'
    action:
      service: remote.send_command
      data_template:
        command: PowerOn
        device: 47807873
        entity_id: remote.harmony

  - alias: "Turn off LED Candles"
    hide_entity: True
    trigger:
      - platform: state
        entity_id: input_boolean.candlepower
        from: 'on'
        to: 'off'
    action:
      service: remote.send_command
      data_template:
        command: PowerOff
        device: 47807873
        entity_id: remote.harmony