mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
106 lines
2.1 KiB
YAML
106 lines
2.1 KiB
YAML
substitutions:
|
|
devicename: kitchen-appliance-temps
|
|
entity_name: kitchen_appliance_temps
|
|
friendly_name: Kitchen Appliance Temps
|
|
platform: ESP32
|
|
board: esp32dev
|
|
static_ip: !secret kitchen-appliance-temps-ip
|
|
|
|
# Enable logging
|
|
logger:
|
|
level: DEBUG
|
|
|
|
packages:
|
|
wifi: !include common/wifi.yaml
|
|
device_base: !include common/device_base.yaml
|
|
|
|
i2c:
|
|
sda: GPIO21
|
|
scl: GPIO22
|
|
scan: true
|
|
id: i2c_bus_a
|
|
|
|
spi:
|
|
clk_pin: GPIO18
|
|
miso_pin: GPIO19
|
|
mosi_pin: GPIO23
|
|
id: spi_bus_a
|
|
|
|
mcp23017:
|
|
- id: 'mcp23017_hub_a'
|
|
address: 0x20
|
|
|
|
sensor:
|
|
- platform: max31855
|
|
#- platform: max6675
|
|
name: "Oven Temperature"
|
|
cs_pin: GPIO25
|
|
#update_interval: 5s
|
|
update_interval: 1s
|
|
unit_of_measurement: "°C"
|
|
device_class: temperature
|
|
state_class: measurement
|
|
accuracy_decimals: 0
|
|
filters:
|
|
- or:
|
|
- heartbeat: 60s
|
|
- delta: 18.0
|
|
- lambda: !lambda |-
|
|
if (x > 320) return {};
|
|
if (x < -10) return {};
|
|
return x;
|
|
|
|
- platform: max31855
|
|
name: "Fridge Temperature"
|
|
cs_pin: GPIO32
|
|
update_interval: 5s
|
|
unit_of_measurement: "°C"
|
|
device_class: temperature
|
|
state_class: measurement
|
|
accuracy_decimals: 0
|
|
filters:
|
|
- or:
|
|
- heartbeat: 60s
|
|
- delta: 1.8
|
|
- lambda: !lambda |-
|
|
if (x > 320) return {};
|
|
if (x < -10) return {};
|
|
return x;
|
|
|
|
- platform: max31855
|
|
name: "Freezer Temperature"
|
|
cs_pin: GPIO33
|
|
update_interval: 5s
|
|
unit_of_measurement: "°C"
|
|
device_class: temperature
|
|
state_class: measurement
|
|
accuracy_decimals: 0
|
|
filters:
|
|
- or:
|
|
- heartbeat: 60s
|
|
- delta: 1.8
|
|
- lambda: !lambda |-
|
|
if (x > 320) return {};
|
|
if (x < -10) return {};
|
|
return x;
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
name: "Fridge Door"
|
|
pin:
|
|
mcp23xxx: mcp23017_hub_a
|
|
number: 0
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
inverted: false
|
|
|
|
- platform: gpio
|
|
name: "Freezer Door"
|
|
pin:
|
|
mcp23xxx: mcp23017_hub_a
|
|
number: 1
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
inverted: false |