I see, it took me some time to figure this out.
I have Czech version of the software, so the actuall spelling may be little bit different.
1) Install SPB Phone Suite.
2) Activate Today plugin.
3) Hold on speaker icon, select "edit profiles"
4) Do not touch any profiles (just yet, you can change them later if you like)
5) Go to "rules" tab
6) Delete all rules
7) Add rule "Choose profile `Headset` if Bluetooth headset is connected" - do not worry, it works with wired one also
8) Add rule "Choose profile `Silent` if Bluetooth headset is disconnected"
9) Go back to Today screen
10) Click the speaker icon, chose "Activate the rules" at the bottom (it should show white `A` in red squere in the left upper corner of the icon)