Hi - hope you don't mind me sharing another scenario here I just ran into - your thread gave me inspiration, and I was searching the forum and RM documents trying to find a similar example and I could not so here goes...
I'm using the community Rachio app which has a lot of device attributes - I was trying to get the nextrun which is either written like "Apr 28, 2025 - 2:45:00 PM" or in epoch time "1745880300000" and I struggling with trying to convert either to useable datetime (kept getting a fail when attempting to use the epoch time directly ... well after growing weary of trying to parse out the text string it finally hit me that need to add another hop!
So this works now:
I have to, read the device attribute as string, convert the string to a number, write the number variable to epoch time, and last correct for the time zone.
Figured I would share incase this helps someone else out.