mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
rearranging esphome
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
# 3v3 en svp sun 34 35 32 33 25 26 27 14 12 gnd 13 sd2 sd3 gnd 5v
|
||||
substitutions:
|
||||
devicename: hvac-multisensor
|
||||
entity_name: hvac_multisensor
|
||||
friendly_name: HVAC MultiSensor
|
||||
comment: Clever MultiSensor
|
||||
platform: ESP8266
|
||||
board: d1_mini
|
||||
#variant: esp32
|
||||
# framework: esp-idf
|
||||
#framework: arduino
|
||||
static_ip: !secret hvac-multisensor-ip
|
||||
|
||||
packages:
|
||||
network: !include common/wifi.yaml
|
||||
device_base: !include common/device_base.yaml
|
||||
|
||||
esphome:
|
||||
name: ${devicename}
|
||||
friendly_name: ${friendly_name}
|
||||
name_add_mac_suffix: false
|
||||
|
||||
esp8266:
|
||||
board: ${board}
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
#level: VERBOSE
|
||||
|
||||
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: D5
|
||||
|
||||
sensor:
|
||||
- platform: dallas_temp
|
||||
address: 0x5a3c01d6078a2e28
|
||||
name: "Probe 1"
|
||||
id: probe1
|
||||
icon: mdi:thermostat
|
||||
update_interval: 10s
|
||||
filters:
|
||||
- lambda: |-
|
||||
float val = x;
|
||||
if (isnan(val)) {
|
||||
val = 0.0;
|
||||
}
|
||||
return val * (9.0/5.0) + 32.0;
|
||||
- clamp:
|
||||
min_value: 0.0
|
||||
max_value: 150.0
|
||||
- or:
|
||||
- throttle: 60s
|
||||
- delta: 1.0
|
||||
unit_of_measurement: "°F"
|
||||
state_class: measurement
|
||||
|
||||
- platform: dallas_temp
|
||||
address: 0x6b3c01d6077bbb28
|
||||
name: "Probe 2"
|
||||
id: probe2
|
||||
icon: mdi:thermostat
|
||||
update_interval: 10s
|
||||
filters:
|
||||
- lambda: return x * (9.0/5.0) + 32.0;
|
||||
- clamp:
|
||||
min_value: 0.0
|
||||
max_value: 150.0
|
||||
- or:
|
||||
- throttle: 60s
|
||||
- delta: 1.0
|
||||
unit_of_measurement: "°F"
|
||||
state_class: measurement
|
||||
|
||||
- platform: dallas_temp
|
||||
address: 0x2a3c01d6073e0728
|
||||
name: "Probe 3"
|
||||
id: probe3
|
||||
icon: mdi:thermostat
|
||||
update_interval: 10s
|
||||
filters:
|
||||
- lambda: return x * (9.0/5.0) + 32.0;
|
||||
- clamp:
|
||||
min_value: 0.0
|
||||
max_value: 150.0
|
||||
- or:
|
||||
- throttle: 60s
|
||||
- delta: 1.0
|
||||
unit_of_measurement: "°F"
|
||||
state_class: measurement
|
||||
|
||||
- platform: template
|
||||
name: "Delta"
|
||||
id: hvac_delta
|
||||
icon: mdi:thermometer-lines
|
||||
lambda: |-
|
||||
return round( (id(probe1).state - id(probe2).state) * 100.0) / 100.0;
|
||||
update_interval: 10s
|
||||
unit_of_measurement: "°F"
|
||||
state_class: measurement
|
||||
device_class: ""
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
#- lambda: 'return round( (id(probe1).state - id(probe2).state) * 100.0) / 100.0;'
|
||||
- clamp:
|
||||
min_value: -100.0
|
||||
max_value: 100.0
|
||||
- or:
|
||||
- throttle: 60s
|
||||
- delta: 1.0
|
||||
Reference in New Issue
Block a user