I have a dashboard that I would like to open on my phone whenever I start charging wirelessly, so I am trying to use the command_activity notification to achive this. Here is what I have so far.
alias: James phone open dashboard
description: ""
trigger:
- platform: state
entity_id:
- sensor.le2123_charger_type
to: wireless
condition: []
action:
- service: notify.mobile_app_le2123
data:
message: command_activity
data:
intent_package_name: io.homeassistant.companion.android
intent_action: android.intent.action.MAIN
intent_category: android.intent.category.LAUNCHER
mode: single
Unfortunately, when I run this, the android device shows the following error in a toast notification.
Unable to send activity intent, please check command format
In case you still finding a solution, here is my functional code for open specific lovelace view based on service call.
Based on this I am able to popup remote control (lovelace view) to control my TV on mobile by voice assist (additional automation).