Invert binary sensor

Hi, I would like to invert the logic of just one of these. 25, its an LDR and it outputs when the light is off. So HA says “ON” which actually means its dark. confusing. Ive tried to add the
invert_logic: true
but it only can invert all the sensors.

how can i do this please?

`binary_sensor:

  • platform: rpi_gpio
    ports:
    23: PIR Kitchen
    8: PIR Dining
    18: PIR Lounge
    25: Light Kitchen/Lounge `

Hi @deanelliott, you can use the Template Binary Sensor for this.

lovely. thanks. Just what I was looking.