Need help adjusting uncalibrated temperature sensor values

Hi
I have a number of generic temperature/humidity sensors dotted around the house that are captured by an RFXTRX interface. The temperature sensor is wildly out and needs to be calibrated with an offset. They look like:

sensor:
  platform: rfxtrx
  automatic_add: true
  devices:
    "0a520902dd0002652b0159":
      name: Shack Environment
      data_type: 
        - Temperature
        - Humidity

I can see how I could use value_template to offset the temp if the sensor was temperature only, but I’m not sure how to do it when it also gives humidity.

1 Like

I don’t think you can use a value_template for this sensor definition, at least I did not see anything in the docs. You probably need to create two additional template sensor one for temperature and one for humidity.

1 Like