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:
@@ -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
|
||||
|
||||
@@ -6,7 +6,8 @@ substitutions:
|
||||
esphome:
|
||||
name: mcu-${device}
|
||||
comment: ${comment}
|
||||
platform: ESP8266
|
||||
|
||||
esp8266:
|
||||
board: esp01_1m
|
||||
|
||||
packages:
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user