I want Opentracks (GitHub - OpenTracksApp/OpenTracks: OpenTracks is a sport tracking application that completely respects your privacy.) to start recording when I start a bike ride. I tried making an automation with the Opentracks API
alias: start opentracks
description: ""
triggers:
- trigger: state
entity_id:
- sensor.sm_a556b_detected_activity
to: on_bicycle
for:
hours: 0
minutes: 0
seconds: 30
conditions: []
actions:
- data:
message: command_activity
data:
intent_package_name: de.dennisguse.opentracks
intent_class_name: de.dennisguse.opentracks.publicapi.StartRecording
intent_extras: TRACK_NAME:Track,TRACK_DESCRIPTION:Description of my track,TRACK_CATEGORY:A bike ride
action: notify.mobile_app_sm_a556b
mode: single
I get the notification on my phone but Opentracks doesn’t start recording. API access is enabled in the app and the permissions should be ok. What am I doing wrong?