Invert sensor input states?

Not sure if this is a Home Assistant or ESPHome question.

I just upgraded my Alarm Panel from the previous Konnected firmware to ESPHome. When doing so the state of the sensors has inverted.

Is there a convenient way to invert them via ESPHome, or something I’ve missed in HA without needing to creating sensor templates?

I think I may have solved this. So for anyone else in the same situation here are the details.

The solution was in ESPHome. I had an instance of this running in it’s own Docker container, but I instead added the ESPHome add-in within HA. Following this article allowed me to adopt it.

I then edited the device’s ESPHome yaml with the following for each sensor.

binary_sensor:
  - id: !extend zone1
    pin:
      inverted: true

@snow rider useful instructions. i tackled the issue