I have 2 DS18B20’s connected to the central heating supply and return pipes next to my boiler. I want to monitor te temps and calculate the delta T between the supply and return.
These values and delta T are only needed when the boiler is running. when the boiler is not busy these temps are not valuable and not neede to be reported to Home Assistant.
I have a binary sensor from my openTherm integration that states the boiler is running.
Can someone elaborate how i can import the home assistant binary sensor in esphome and use that as condition to report the temps?
esphome:
name: chtemp
friendly_name: Central heating temperatures
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "SoMw20UjV81pgTZG3rgHBFyyTsxfJxDUi9ZhcPacULw="
ota:
- platform: esphome
password: "7e36b4cb54e9ee107c7666cdd7cb9abe"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.188.138
gateway: 192.168.188.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ch_temp Fallback Hotspot"
password: "8aeGdhZw8vFO"
captive_portal:
one_wire:
- platform: gpio
pin: GPIO2
sensor:
# Uptime sensor.
- platform: uptime
name: ch_temp Uptime
# WiFi Signal sensor.
- platform: wifi_signal
name: ch_temp WiFi Signal
update_interval: 120s
- platform: dallas_temp
address: 0x760823c09876fe28
name: ch_supply_temp
update_interval: 20s
unit_of_measurement: "°C"
icon: "mdi:thermometer-chevron-up"
device_class: "temperature"
state_class: "measurement"
accuracy_decimals: 4
filters:
- delta: 0.01
- platform: dallas_temp
address: 0x1a0623c310999128
name: ch_return_temp
update_interval: 20s
unit_of_measurement: "°C"
icon: "mdi:thermometer-chevron-down"
device_class: "temperature"
state_class: "measurement"
accuracy_decimals: 4
filters:
- delta: 0.01