Duplicate Sensors

The Macos app has these 2 sensors:

  • binary_sensor.pierres_imac_active

  • sensor.pierres_imac_active

They both have the same attributes. What is the difference and why are there 2 sensors?

A binary_sensor has only on/off state where a sensor has a state that is a value of some kind.

I understand the difference between a binary sensor and a sensor.

These 2 sensors have exactly the same attributes. Why are there 2 of them?