Remove old style platform and change dallas to one_wire

This commit is contained in:
2025-01-21 12:43:30 +01:00
parent d4a45add3e
commit 27d5c17422
4 changed files with 15 additions and 13 deletions

View File

@@ -7,9 +7,9 @@ substitutions:
esphome:
name: mcu-${device}
comment: ${comment}
platform: ESP8266
board: esp01_1m
esp8266:
board: esp01_1m
packages:
common: !include common/common_esp8266.yaml

View File

@@ -6,7 +6,8 @@ substitutions:
esphome:
name: mcu-${device}
comment: ${comment}
platform: ESP8266
esp8266:
board: esp01_1m
packages:

View File

@@ -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

View File

@@ -6,8 +6,6 @@ substitutions:
esphome:
name: mcu-${device}
comment: ${comment}
platform: ESP8266
board: esp01_1m
# on_boot:
# priority: -10
# then:
@@ -21,6 +19,9 @@ esphome:
# - delay: 2s
# - switch.turn_off: relay_5
esp8266:
board: esp01_1m
packages:
common: !include common/common_esp8266.yaml