mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
[MAX31888] Add temperature sensor (#13567)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
pre-commit-ci-lite[bot]
J. Nick Koston
parent
a68cf669aa
commit
f9f41ef16e
@@ -0,0 +1,9 @@
|
||||
sensor:
|
||||
- platform: max31888
|
||||
one_wire_id: one_wire_bus
|
||||
address: 0x1C0000031EDD2A54
|
||||
name: MAX31888 Temperature 1
|
||||
- platform: max31888
|
||||
one_wire_id: one_wire_bus
|
||||
name: MAX31888 Temperature 2
|
||||
index: 1
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
one_wire: !include ../../test_build_components/common/one_wire/esp32-idf.yaml
|
||||
max31888: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
one_wire: !include ../../test_build_components/common/one_wire/esp8266-ard.yaml
|
||||
max31888: !include common.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
packages:
|
||||
one_wire: !include ../../test_build_components/common/one_wire/rp2040-ard.yaml
|
||||
max31888: !include common.yaml
|
||||
@@ -125,6 +125,11 @@ Components using `modbus` packages automatically get `uart` as well.
|
||||
- **RP2040**: SCL=GPIO5, SDA=GPIO4
|
||||
- **BK72xx**: SCL=P20, SDA=P21
|
||||
|
||||
### 1-Wire
|
||||
- **ESP32 IDF**: GPIO4
|
||||
- **ESP8266**: GPIO13
|
||||
- **RP2040**: GPIO10
|
||||
|
||||
### I2C Low Frequency (10kHz)
|
||||
Same pin allocations as standard I2C, but with 10kHz frequency for components requiring slower speeds.
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Common 1-Wire configuration for esp32-idf tests
|
||||
# Provides a shared 1-Wire bus that all components can use
|
||||
|
||||
substitutions:
|
||||
one_wire_pin: GPIO4
|
||||
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
id: one_wire_bus
|
||||
pin: ${one_wire_pin}
|
||||
@@ -0,0 +1,10 @@
|
||||
# Common 1-Wire configuration for esp8266-ard tests
|
||||
# Provides a shared 1-Wire bus that all components can use
|
||||
|
||||
substitutions:
|
||||
one_wire_pin: GPIO13
|
||||
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
id: one_wire_bus
|
||||
pin: ${one_wire_pin}
|
||||
@@ -0,0 +1,10 @@
|
||||
# Common 1-Wire configuration for rp2040-ard tests
|
||||
# Provides a shared 1-Wire bus that all components can use
|
||||
|
||||
substitutions:
|
||||
one_wire_pin: GPIO10
|
||||
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
id: one_wire_bus
|
||||
pin: ${one_wire_pin}
|
||||
Reference in New Issue
Block a user