Normally the user need to go to command-line and enter tdtool --learn [device-id] to perform this action. Adding this feature in Home Assistant would render the integration more user friendly.
With the upcoming Tellstick and Tellstick Duo i Hass.io there will be no way for users to perform this action since they do not have direct access to the cli that hosts the daemon. --edit-- this is now made possible via service calls from home assistant to the hassio addon.
I could settle with the possibility to issue the learn command from the Home Assistant service caller. Just drill down and input the corresponding device id entered in the tellstick configuration.
Optionally or version 2 might be more user friendly by incorporating a Learn button in the web ui if a device is of self learning type: