String is easy any thing is convertible to string - but string les usable later
Number are easy too because thay not have formating except decimal separator in some local use comma (like mine) and other use dot (like english). You may converty any string to decimal number freely with aditional formating information
Date is hard because each locales and techlogy may have diffrent format (dd.MM.YYYY or YYYY-MM-dd, 12/24 hours). with additional information it can be easy formated.
For Switch and contact you need just hint what mean on or closed any other string values are oposite state.
For color you need to now thre is 3 number how separted ? and what they means HSB or RGB ? are they in decimal format or hexadecimal ? âŠ
and so one
This why I think about formating hint for âtype convertorâ.
Easy way is put into formating also requeste Target type and formating without any âautomatic detectionâ of target item.
This featury I can provide in couple of hours for all transforamtion and we may have it soon as posible if the commit is accepted.
Or we may spend more time a prepare super duper generic without âformating hintâ,but automatic solution, but we may have it 3.0.0 because it requeres changes in core classes.
[rlkoshak] do you know somebody from OH team (older developers) who can decide what is better for OH?