Helps if you use OpenHAB 3.4 syntax, did not notice docs were pointing me to 4.x and I did not even realize it.
This should look better for the .items
Location Explorer_Location "Explorer Location [%s]" <explorer> (Explorer, Position) {channel="mqtt:topic:explorer:Position"[profile="transform:JS", function="location.js"] }
It still does not work, its null even tho I see the thing as:
/car/explorer/track/pos {"_type":"pos","sog":0.0,"loc":{"lat":39.48573666666667,"lon":-77.90973},"_stamp":"2023-07-24T21:08:35.642716","alt":143.8,"nsat_glonass":0,"utc":"21:08:35","fix":"3D","nsat":6,"date_utc":"2023-07-24","cog":101.5}
/car/explorer/track/pos {"_type":"pos","sog":0.0,"loc":{"lat":39.48573666666667,"lon":-77.90972833333333},"_stamp":"2023-07-24T21:08:40.663619","alt":143.6,"nsat_glonass":0,"utc":"21:08:40","fix":"3D","nsat":6,"date_utc":"2023-07-24","cog":101.5}
/car/explorer/track/pos {"_type":"pos","sog":0.0,"loc":{"lat":39.48574166666667,"lon":-77.90972333333333},"_stamp":"2023-07-24T21:08:45.684330","alt":143.2,"nsat_glonass":0,"utc":"21:08:45","fix":"3D","nsat":6,"date_utc":"2023-07-24","cog":101.5}
/car/explorer/track/pos {"_type":"pos","sog":0.0,"loc":{"lat":39.485755,"lon":-77.90970666666666},"_stamp":"2023-07-24T21:08:50.704714","alt":142.2,"nsat_glonass":0,"utc":"21:08:50","fix":"3D","nsat":6,"date_utc":"2023-07-24","cog":101.5}
/car/explorer/track/pos {"_type":"pos","sog":0.0,"loc":{"lat":39.48575666666667,"lon":-77.90971},"_stamp":"2023-07-24T21:08:55.725098","alt":142.7,"nsat_glonass":0,"utc":"21:08:55","fix":"3D","nsat":6,"date_utc":"2023-07-24","cog":101.5}