Combining two sensor values into one

I have two sensor that I want to combine into one. I have one sensor that shows the current layer my 3d printer is on and another sensor listing to total amount of layers. I want to combine them to show in a “Chip” card as [Current layer] / [Total layers].

Is there a way to do this easily?

Thanks,
Rob

One option is to use a Template Sensor Helper.

For the State template field you would use something like:

{{ states('sensor.current_layer_sensor_id') }} / {{ states('sensor.total_layer_sensor_id') }}

Make sure to use the correct entity IDs from your sensors. If you want to add the new sensor to your 3D printer’s device, you can select it from the “Device” drop-down. Leave the other fields blank.

Thank you so much…that worked perfectly.