mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-01-02 19:47:29 +01:00
Remove old style platform and change dallas to one_wire
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user