[HELP] Dynamic device_id Join Joaoapps

Hi everyone, I’m looking for a dynamic way to update the device_id of Join Joaoapps using a sensor updated with MQTT. This is my configuration:

notify:
  - platform: joaoapps_join
    api_key: !secret simone_join_api_key
    device_id: "{{ states('input_text.smartphone_di_simone_device_id') }}"
    name: smartphone_di_simone_join
joaoapps_join:
  - name: smartphone_di_simone
    device_id: "{{ states('input_text.smartphone_di_simone_device_id') }}"
    api_key: !secret simone_join_api_key

but unfortunately, it doesn’t work. Can anyone help me?

You can drag and drop pictures into your post on these forums, but please don’t post pictures of text. Post your code as text correctly formatted as per: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

I formally apologize, I will delete the post to rephrase it

You can edit it. No need for a new post.