How to pass a dictionary to HA from Apple Shortcuts using Companion App?

Hi there!

I’m trying to figure out how do I pass custom data from my iPhone to an automation in HA using Apple Shortcuts with the Companion App “nodes”. Here’s my automation:

- id: 'iPhone Battery'
  alias: iPhone Battery
  trigger:
    - platform: webhook              
      webhook_id: battery_level
  action:
    - service: input_text.set_value
      entity_id: input_text.iphone_battery
      data:
        value: "{{ trigger.data.battery_level }}"

(That trigger won’t be used anymore)

And here is my Shortcut

What’s inside of that “data”

Error I get inside HA:

Error when calling service during mobile_app webhook (device name: iPhone 17): extra keys not allowed @ data[‘data’]

I tried passing “battery_level” directly without using extra “data-dictionary”, doesn’t work either. When I don’t pass anything additional HA says:

Error while executing automation automation.iphone_battery: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘data’

Couldn’t find any information on that topic anywhere. Does anybody know how to do that?