Ios notification is broken (location attachment)

Hi
I have an automation which was working couple months ago. I think template changes could cause this issue

My automation sends notification with location when widget was tapped

- id: '000_1'
  alias: Smth wrong from Argo
  initial_state: true
  trigger:
  - platform: event
    event_type: ios.action_fired
    event_data:
      actionID: _____
      actionName: _____
      sourceDeviceID: _____
      sourceDeviceName: _____
      sourceDevicePermanentID: _____
  action:
  - service: notify.mobile_app_argo
    data:
      message: 'Π‘Π²ΡΠΆΠΈΡ‚Π΅ΡΡŒ с Π½ΠΈΠΌ'
      title: 'Арго Π½Π°ΠΆΠ°Π» Π½Π° Ρ‚Ρ€Π΅Π²ΠΎΠΆΠ½ΡƒΡŽ ΠΊΠ½ΠΎΠΏΠΊΡƒ'
      data:
        push:
          category: map
          sound:
            name: default
            critical: 1
            volume: 1.0
        action_data:
          latitude: "{{states.person.argishti.attributes.latitude}}"
          longitude: "{{states.person.argishti.attributes.longitude}}"

I receive the notification with text but without a map. I just see red issue that latitude was not sent or it was a string’. I checked template editor and it is a string, but it should be ok…

One thing I did not do correctly from the beginning (and it was perfectly working) - I did not use data_template because documentation is really frustrating and it is not clear at all where I should use data_template (but now I have tried it everywhere - did not help)

Guys, help. This is an important automation which hopefully never will be triggered (it is a red button - sends to family that something is wrong and attaches location). I just was checking if everything is fine…

I believe this is an issue in HA Core. Some investigation happened here.

I see. Will be waiting for the fix
But what about data_template? Where should it be, according to documentation?

The data_template mentioned in the documentation should be replacing data in the line after service: (so the first data can be changed by data_template). Not sure if that is still needed as there were some changes to this a while ago so data_template is not needed anymore and just using data should work as well.

1 Like