I like using a Bluetooth headset with Kodi or Emulation Station.
For that I have installed pulseaudio.
Sound is excellent but the profile a2dp is not automatically connecting. Even if switch-on-connect is available into /etc/pulse/default.pa.
Then I have to lunch pacmd set-card-profile bluez_card.E4_22_A5_BD_4B_7D a2dp_sink to get a2dp time to time.
I have test with this udev rule: ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="E4:22:A5:BD:4B:7D", RUN+="/usr/bin/pacmd set-card-profile bluez_card.E4_22_A5_BD_4B_7D a2dp_sink"
But no luck, pulseaudio is not start as a daemon. I get this message : No PulseAudio daemon running, or not running as session daemon.
Any idea how to solve this ?