Automation help extracting a value from MQTT

Troon is correct, but maybe read this topic:

Sonoff RF Bridge. Strategies for receiving data - Share your Projects! - Home Assistant Community