Hey i have a sensor which is working and represent 16 bin array as singed decimal number .
bit 16 gives negative prefix
i would like to filter each bit in order to get he input states,
What would be the best solution for it ?
Can i run python script to insulate particular bit status?
The latest HA release added bitwise filters to its templating extensions which you could use. See the end of the list. And, yes, Python also has bitwise operators you could use to extract bits. Which route is easier probably ultimately depends on what you want to do with the data and your coding background.