I was able to convert a integer to a integer string such as 1001010.
Now I want each of those binary positions to translate to individual boolean bit values to use as device attributes.
Any suggestions?
I think the string node seems to be a good start
I found this on Stack Overflow that could be helpful for you. You should be able to do something like this in the Function Node.
var bitString = 1001010;
var arrayOfDigitsAsStrings = bitString.toString().split('');
var arrayOfDigits = arrayOfDigitsAsStrings.map(Number)
console.log(arrayOfDigits); // [1, 0, 0, 1, 0, 1, 0]
Then, you can put that value back on the payload in the Function Node using:
payload.arrayOfDigits = arrayOfDigits
After that, you can use the Device State Node to report your values.