Getting sensor state data as string into the rest platform

Ok, thnx for feedback, appreciated