Long press Harmony hub

Hi I have a pellet burner that I want to be able to control from outside my home. I currently have it working with Harmony hub and the Harmony app. a short press of the power button wakes the fire up and I have a script to run this that works as expected

service: remote.send_command
1_wake_fire:
  alias: 1.Wake Fire
  sequence:
  - action: remote.send_command
    metadata: {}
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0
      device: '81631590'
      command: PowerToggle
    target:
      area_id: living_room
      device_id: 2df7de36ea3f06e42b2bca9953ac1f9c
      entity_id: remote.harmonyhub
  description: ''

I have added a release delay to the script, (press and hold that works on the original remote and Harmony app)

2_fire_on:
  alias: 2.Fire On
  sequence:
  - action: remote.send_command
    metadata: {}
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 10
      device: '81631590'
      command: PowerToggle
    target:
      area_id: living_room
      device_id: 2df7de36ea3f06e42b2bca9953ac1f9c
      entity_id: remote.harmonyhub
  description: ''

But this does not work, it just wakes the fire like a short press of the power button on the remote.
Press and hold works in the harmony app, any ideas where I am going wrong?

Hello Parisno,
Welcome to the forum. Let’s see if I can be of any assistance.

Most likely the press and hold would be a different command, not the same command as the short press one

. I don’t know how to determine that command, but it would need to be a different one.

I have no experience here, but that is my guess…

Thank you and thanks for the suggestion, I don’t think its a different command because the harmony app only has three commands (see config below) and that works fine from my phone if I just keep “PowerToggle” pressed.

{
    "Activities": {
        "-1": "PowerOff"
    },
    "Devices": {
        "FM Fire": {
            "commands": [
                "PowerToggle",
                "TempCooler",
                "TempHotter"
            ],
            "id": "81631590"
        }
    }
}
1 Like

Can no-one help with this, tried all sorts without any luck??