Get value from MQTT and set a variable

Here’s a way to do this (hit the v icon on the right to view the flow)