Bonjour,
Je souhaite associer 2 sondes DS18B20 sur mon Sonoff 4ch Pro R3.
Le data de mes sondes est installés sur le pin TX du Sonoff. Comment dois-je l’intégrer dans le fichier .yaml.
Voici mon fichier actuelle auquel j’ai ajouté les sondes.
# Basic Config
esphome:
name: sonoff4chpror3
platform: ESP8266
board: esp01_1m
compile_process_limit: 1
wifi:
ssid: id wifi
password: mdp wifi
logger:
api:
ota:
- platform: esphome
time:
- platform: sntp
id: sntp_time
timezone: Europe/Paris
external_components:
- source: github://dentra/esphome-components
backup:
web_server:
port: 80
# Device Specific Config
binary_sensor:
- platform: status
name: "Sonoff 4ch R2 Status"
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff 4CH Button 1"
on_press:
- switch.toggle: "relay_1"
- platform: gpio
pin:
number: GPIO9
mode: INPUT_PULLUP
inverted: True
name: "Sonoff 4CH Button 2"
on_press:
- switch.toggle: "relay_2"
- platform: gpio
pin:
number: GPIO10
mode: INPUT_PULLUP
inverted: True
name: "Sonoff 4CH Button 3"
on_press:
- switch.toggle: "relay_3"
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
inverted: True
name: "Sonoff 4CH Button 4"
on_press:
- switch.toggle: "relay_4"
- platform: status
name: "Sonoff 4CH Pro Status"
switch:
- platform: gpio
name: "Relay 1"
pin: GPIO12
id: "relay_1"
- platform: gpio
name: "Relay 2"
pin: GPIO5
id: "relay_2"
- platform: gpio
name: "Relay 3"
pin: GPIO4
id: "relay_3"
- platform: gpio
name: "Relay 4"
pin: GPIO15
id: "relay_4"
one_wire::
- platform: gpio
pin: GPIO2
sensor:
- platform: one_wire
address: 0x1234567812345628
name: temperature
update_interval: 120s
D’autre part sur un autre sonfoof 4CH Pro je suis ajouter 2 sondes de niveau d’eau (niveau haut niveau bas) sonde avec juste un contact sec. Comment dois je modifier le fichier .yaml sachant que j’utiliserais donc le pin TX pour l’une et le RX pour l’autre.
merci pour vos retour