Get BroadLink RM2 pro commands and run them from HASS

Hi,
I didn’t find any guide of how to do it from the very beginning.
I’m using HASS.IO, if someone can guide me through how it can be done, it will be great.
How do i get the code of each and every command from BroadLink?

Thanks,
Guy