Fix initial set value

This commit is contained in:
Joshua Boniface 2025-05-20 12:43:36 -04:00
parent decf2ad244
commit 1600417026

View File

@ -74,10 +74,11 @@ esp32:
CONFIG_OPTIMIZATION_LEVEL_RELEASE: "y" CONFIG_OPTIMIZATION_LEVEL_RELEASE: "y"
globals: globals:
# Defaults to -5 due to heating from the ESP
- id: temperature_offset - id: temperature_offset
type: float type: float
restore_value: true restore_value: true
initial_value: "0.0" initial_value: "-5.0"
- id: humidity_offset - id: humidity_offset
type: float type: float
@ -832,13 +833,11 @@ switch:
number: number:
# Temperature offset: # Temperature offset:
# A calibration from -10 to +5 for the temperature sensor # A calibration from -10 to +5 for the temperature sensor
# Defaults to -4 due to heating from the ESP
- platform: template - platform: template
name: "Temperature Offset" name: "Temperature Offset"
id: temperature_offset_setter id: temperature_offset_setter
min_value: -10 min_value: -10
max_value: 5 max_value: 5
default: -4
step: 0.1 step: 0.1
lambda: |- lambda: |-
return id(temperature_offset); return id(temperature_offset);