MQTT to usable light entity (not autodiscoverred)

I think you misunderstood the purpose of the Solution tag. It identifies the suggestion that resolves the problem, not the post that duplicates/re-packages/summarizes someone else’s suggestion.

It’s the custom of this community to assign it to the post that resolves the original problem. Your first post clearly shows a value key in the JSON payload with a numeric value. That’s what I addressed in my first post with a template that correctly evaluates the payload’s numeric value.

Your second post introduced a different problem which was ultimately solved for you by petro in a separate topic you created. Copying that solution into this one and then tagging your own post as the Solution is, to be diplomatic, not the suggested practice in this forum.

For more information, refer to guideline 21 in the FAQ.