I can’t get this to work.
Long story short, this thread made me think about the intent listener.
So I added android.bluetooth.device.action.BATTERY_LEVEL_CHANGED
to listen for and added the automation as above.
I see this very briefly in states:
And the app has this setting:
And automation is this:
alias: New Automation
description: ''
trigger:
- platform: event
event_type: android.intent_received
context:
user_id:
- 1ebf075a6b72488494cbf1bc09bfadc6
- afc9fe441ceb4b468205fd29fdaa42ac
condition: []
action:
- service: notify.mobile_app_andreas
data:
message: >-
Intent received by user {% set person =
states.person|selectattr('attributes.user_id', 'eq',
trigger.event.context.user_id)|first %}{{
person.attributes.friendly_name }} with action {{
trigger.event.data.intent }}
data:
ttl: 0
priority: high
mode: single
And it never fires…
I have force closed the app and restarted it.
I have also tried without the context of trigger, which I assume means trigger on all events?
Node red does not either notice any events.