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: esphome:
name: mcu-${device} name: mcu-${device}
comment: ${comment} comment: ${comment}
platform: ESP8266
board: esp01_1m
esp8266:
board: esp01_1m
packages: packages:
common: !include common/common_esp8266.yaml common: !include common/common_esp8266.yaml

View File

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

View File

@@ -9,9 +9,9 @@ esphome:
esp32: esp32:
board: esp32doit-devkit-v1 board: esp32doit-devkit-v1
# framework: framework:
# type: arduino # type: arduino
# # type: esp-idf type: esp-idf
external_components: external_components:
- source: components - source: components
@@ -25,12 +25,12 @@ switch:
id: sensor_power id: sensor_power
restore_mode: ALWAYS_ON restore_mode: ALWAYS_ON
dallas: one_wire:
- pin: GPIO25 - platform: gpio
update_interval: 10s pin: GPIO25
sensor: sensor:
- platform: dallas - platform: dallas_temp
index: 0
name: $name Dallas name: $name Dallas
id: temp id: temp
update_interval: 10 s

View File

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