mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-01-02 11:37:28 +01:00
Remove old style platform and change dallas to one_wire
This commit is contained in:
@@ -9,9 +9,9 @@ esphome:
|
||||
|
||||
esp32:
|
||||
board: esp32doit-devkit-v1
|
||||
# framework:
|
||||
framework:
|
||||
# type: arduino
|
||||
# # type: esp-idf
|
||||
type: esp-idf
|
||||
|
||||
external_components:
|
||||
- source: components
|
||||
@@ -25,12 +25,12 @@ switch:
|
||||
id: sensor_power
|
||||
restore_mode: ALWAYS_ON
|
||||
|
||||
dallas:
|
||||
- pin: GPIO25
|
||||
update_interval: 10s
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: GPIO25
|
||||
|
||||
sensor:
|
||||
- platform: dallas
|
||||
index: 0
|
||||
- platform: dallas_temp
|
||||
name: $name Dallas
|
||||
id: temp
|
||||
id: temp
|
||||
update_interval: 10 s
|
||||
Reference in New Issue
Block a user