diff --git a/esphome.yaml b/esphome.yaml index 4be4d92..30b4659 100644 --- a/esphome.yaml +++ b/esphome.yaml @@ -328,6 +328,12 @@ globals: restore_value: true initial_value: '10' + ##### Temperature Correction ##### + - id: temperature_correction_global + type: float + restore_value: true + initial_value: '0.0' + ##### Save Display DIM Brightness for NSPanel reboot - id: sleep_modus_global type: int @@ -442,6 +448,8 @@ sensor: b_constant: 3950 reference_temperature: 25°C reference_resistance: 10kOhm + filters: + - lambda: return x + id(temperature_correction_global); # on_value: # then: # - wait_until: @@ -713,6 +721,24 @@ number: id: display_dim_brightness_global value: !lambda 'return int(x);' + ##### Temperature Correction ##### + - platform: template + name: ${device_name} Temperature Correction + id: temperature_correction + entity_category: config + unit_of_measurement: '°C' + min_value: -10 + max_value: 10 + initial_value: 0 + step: 1 + restore_value: true + optimistic: true + set_action: + then: + - globals.set: + id: temperature_correction_global + value: !lambda 'return int(x);' + ##### START - DISPLAY START CONFIGURATION ##### display: