Sensor calibration

how can i offset my sensor readings from the temperature and humidity ?
so i can calibrate my sensors

http://prntscr.com/iwqlm8 (sensors are next to eachother when i took this snapshot)

how i have it configured in my yaml
- platform: mqtt
state_topic: “sensornode8”
name: “SN8 Humidity”
unit_of_measurement: “%”
value_template: ‘{{ value_json.humidity | round(1) }}’
- platform: mqtt
state_topic: “sensornode8”
name: “SN8 LDR”
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: “LUX”
value_template: ‘{{ value_json.ldr }}’
- platform: mqtt
state_topic: “sensornode8”
name: “SN8 PIR”
value_template: ‘{{ value_json.motion }}’
- platform: mqtt
state_topic: “sensornode8”
name: “SN8 Temperature”
unit_of_measurement: “°C”
value_template: ‘{{ value_json.temperature | round(1) }}’
- platform: mqtt
state_topic: “sensornode8”
name: “SN8 Real Feel”
unit_of_measurement: “°C”
value_template: ‘{{ value_json.heatIndex | round(1) }}’

apply simple maths to the value_template

http://jinja.pocoo.org/docs/dev/templates/#math

add 7 to the temperature, untested :
value_template: ‘{{ (value_json.temperature | round(1)) + 7 }}’

See this feature request here:

1 Like

please don’t revive 4 year old threads