@ ccurtis, thanks for your reply, If I take this approach, I have to use two more chips for flip flops for controlling 4 devices and 8 switches (2 switches for each device for ON and OFF) right?. I am looking for a simple approach with just 4 push to make switches for controlling 4 devices, 1 switch per 1 device for both on and off. I have seen an commercial remote with works on PT2272 (I believe this one and HT chips work in the similar way) without any flip flops. So looking for the way how to achieve the same with HT12E and HT12D. Not sure if that is possible.