mirror of
https://github.com/dlitz/esphome-configs-dlitz.git
synced 2026-04-15 22:03:26 -06:00
Import YAML files into repository
This commit is contained in:
26
common/shelly-ntc-temperature.yaml
Normal file
26
common/shelly-ntc-temperature.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
substitutions:
|
||||
# shelly_ntc_temperature_pin: GPIO3
|
||||
|
||||
sensor:
|
||||
- platform: ntc
|
||||
id: ntc_temperature
|
||||
name: "NTC Temperature"
|
||||
entity_category: diagnostic
|
||||
unit_of_measurement: "°C"
|
||||
accuracy_decimals: 1
|
||||
icon: "mdi:thermometer"
|
||||
sensor: temp_resistance_reading
|
||||
calibration:
|
||||
b_constant: 3350
|
||||
reference_resistance: 10kOhm
|
||||
reference_temperature: 298.15K
|
||||
- platform: resistance
|
||||
id: temp_resistance_reading
|
||||
sensor: temp_analog_reading
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kOhm
|
||||
- platform: adc
|
||||
id: temp_analog_reading
|
||||
pin: ${shelly_ntc_temperature_pin}
|
||||
attenuation: 12db
|
||||
|
||||
Reference in New Issue
Block a user