Since the labels are the same, this is straightforward:
expr: ipmi_temperature_celsius and (ipmi_temperature_state == 2)
The $value of the alert is now ipmi_temperature_celsius - but the value will only be passed through if there is a matching RHS timeseries (with any value, but in this case it's filtered so that the RHS timeseries is filtered out unless the value is 2).
PromQL expressions with comparison operators are like filters. For example:
expr: ipmi_temperature_celsius > 40
is not a true/false, but rather it passes through timeseries where the value is > 40, and excludes timeseries where the value is <= 40.
See: