esphome: name: miner_sensors friendly_name: Miner Sensors esp32: board: esp32dev framework: type: esp-idf # Enable logging logger: # Enable Home Assistant API api: encryption: key: "your api key here" ota: - platform: esphome password: "password here" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Temp-Sensors Fallback Hotspot" password: "your p/w here" captive_portal: one_wire: - platform: gpio pin: GPIO4 sensor: - platform: dallas_temp address: 0xb200000076516928 # One Wire Address name: "Stage 1 Incoming Water Temp" #sensor #1 update_interval: 2min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: dallas_temp address: 0xc100000076484428 # One Wire Address name: "Stage 1 Outgoing Water Temp" #sensor #2 update_interval: 2min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: dallas_temp address: 0xca00000074eb2228 # One Wire Address name: "Stage 2 Incoming Water Temp" #sensor #3 update_interval: 2min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: dallas_temp address: 0x4e00000076199a28 # One Wire Address name: "Stage 2 Outgoing Water Temp" #sensor #4 update_interval: 2min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: dallas_temp address: 0xc500000075181528 # One Wire Address name: "Indoor Temp" #sensor #5 update_interval: 10min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: dallas_temp address: 0x0f0000007354cf28 # One Wire Address name: "Outdoor Temp" #sensor #6 update_interval: 10min filters: - lambda: return x * (9.0/5.0) + 32.0; unit_of_measurement: "°F" accuracy_decimals: 1 - platform: pulse_counter pin: GPIO32 # Change to correct GPIO pin name: "Stage 1 Water Flow Rate" id: water_flow_rate unit_of_measurement: "G/min" update_interval: 1s filters: # Conversion formula: (pulses per minute / 98) = G/min # Adjust 98.0 to the specific sensor's pulses/liter - lambda: return (x / 196.0 / 3.8); - platform: pulse_counter pin: GPIO33 # Change to correct GPIO pin name: "Stage 1 Aux Water Flow Rate" id: water_flow_rate_1 unit_of_measurement: "G/min" update_interval: 5s filters: # Conversion formula: (pulses per minute / 98) = G/min # Adjust 98.0 to the specific sensor's pulses/liter - lambda: return (x / 196.0 / 3.8 * 1.09); - platform: pulse_counter pin: GPIO34 # Change to correct GPIO pin name: "Stage 2 Water Flow Rate" id: water_flow_rate_2 unit_of_measurement: "G/min" update_interval: 1s filters: # Conversion formula: (pulses per minute / 98) = L/min # Adjust 98.0 to the specific sensor's pulses/liter - lambda: return (x / 98.0 / 3.8); - platform: pulse_counter pin: GPIO35 # Change to correct GPIO pin name: "Stage 2 Aux Water Flow Rate" id: water_flow_rate_3 unit_of_measurement: "G/min" update_interval: 5s filters: # Conversion formula: (pulses per minute / 98) = L/min # Adjust 98.0 to the specific sensor's pulses/liter - lambda: return (x / 98.0 / 3.8 * 1.09);