Can't see temperature values in Homebridge

Hi all,

I have a pool temperature sensor (Inkbird IBS-M1) which I am connecting via Local Tuya. I can get Home Assistant to see the correct temperature and display it in Lovelace however I cannot see how to get the temperature through to HomeKit.

I have the home bridge integration working to share some Tuya switches so I know that is working ok.

Any help or guidance would be appreciated.


Answering my own question here in case someone has the same issue in the future.

Added the following to configuration.yaml:

  - sensor:
      - name: Pool Temperature
        unit_of_measurement: °C
        state: >
         {{ ( states('sensor.pool_temperature') | round(1) | float )}}