Hi I have a template like this which works perfectly. Except I would like to change it so that the midea_ac is at the same temperature as the climate living room +2deg?
This works because unlike states, which are always strings, attributes can be other types, like numbers as in this case. If it wasn’t a number you would have to convert it to one with either the floating point |float or |int integer filter, like this:
The (0) in brackets is what |float produces if the sensor has some value that can’t be converted to a number, like if the state was 'unknown' because it was off-line.