Node Red JSON for Apple TV on/off

Hey guys,

I’m looking though the doco for the Apple TV integration and trying to figure out how to convert it to JSON for Node Red.

Can anyone that’s using NR share there on/off commands?

Thanks :slight_smile:

So this works as an automation in HA, but when I convert it to JSON… I just get an error and I have no idea why?

Send command to the remote… as I say, exact same as an automation works a treat. Clearly something wrong with my syntax, but dont know what?

Not sure how the data field should look, but the data field would look like this in YAML format.

data:
  delay_secs: 1
  command:
    - home_hold
    - select

is that correct?

Could it be that data should be left out, because it is already in the field called data?

Yep, it’s already in the data field.

Thanks guys, appreciate it.

So the issue was not having anything in domain LOL :frowning:

JSON was fine actually.

Here is what it should look like if anyone is looking for the same thing at some point.