Use `sensor.id` instead.
Use
sensor.idinstead.