I have 4 ds18B20 sensors attached to my board. 3 shows in Ha but one doesn’t see.
MY esp code:
esphome:
name: kc868-a8
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "u9rxA1MvgMGcsVmHpKIAllouRop1d3GpyCwx1AuO+AQ="
ota:
password: "9f274038fdd58af658c1552a34a24c13"
web_server:
port: 80
#wifi:
# ssid: !secret wifi_ssid
# password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Kc868-A8 Fallback Hotspot"
# password: "bhSSvT9Gsa0v"
#captive_portal:
# Example configuration entry for ESP32
i2c:
sda: 4
scl: 5
scan: true
id: bus_a
# Example configuration entry
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
# Optional manual IP
#manual_ip:
#static_ip: 192.168.1.199
#gateway: 192.168.1.1
#subnet: 255.255.255.0
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24
- id: 'pcf8574_hub_in_1' # for input channel 9-16
address: 0x22
dallas:
- pin: GPIO14
cover:
- platform: time_based
name: "Fűtés keverő"
id: futes_kevero_cover
open_action:
- switch.turn_on: futes_out3
open_duration: 125sec
close_action:
- switch.turn_on: futes_out4
close_duration: 125sec
stop_action:
- switch.turn_off: futes_out3
- switch.turn_off: futes_out4
- platform: time_based
name: "Hűtés keverő"
id: hutes_kevero_cover
open_action:
- switch.turn_on: futes_out1
open_duration: 125sec
close_action:
- switch.turn_on: futes_out2
close_duration: 125sec
stop_action:
- switch.turn_off: futes_out1
- switch.turn_off: futes_out2
# Individual outputs
switch:
- platform: gpio
name: "futes_out1"
id: futes_out1
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out2"
id: futes_out2
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out3"
id: futes_out3
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out4"
id: futes_out4
pin:
pcf8574: pcf8574_hub_out_1
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out5"
id: futes_out5
pin:
pcf8574: pcf8574_hub_out_1
number: 4
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out6"
id: futes_out6
pin:
pcf8574: pcf8574_hub_out_1
number: 5
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out7"
id: futes_out7
pin:
pcf8574: pcf8574_hub_out_1
number: 6
mode: OUTPUT
inverted: true
- platform: gpio
name: "futes_out8"
id: futes_out8
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: true
binary_sensor:
- platform: gpio
name: "input1"
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
- platform: gpio
name: "input2"
pin:
pcf8574: pcf8574_hub_in_1
number: 1
mode: INPUT
inverted: true
- platform: gpio
name: "input3"
pin:
pcf8574: pcf8574_hub_in_1
number: 2
mode: INPUT
inverted: true
- platform: gpio
name: "input4"
pin:
pcf8574: pcf8574_hub_in_1
number: 3
mode: INPUT
inverted: true
- platform: gpio
name: "input5"
pin:
pcf8574: pcf8574_hub_in_1
number: 4
mode: INPUT
inverted: true
- platform: gpio
name: "input6"
pin:
pcf8574: pcf8574_hub_in_1
number: 5
mode: INPUT
inverted: true
- platform: gpio
name: "input7"
pin:
pcf8574: pcf8574_hub_in_1
number: 6
mode: INPUT
inverted: true
- platform: gpio
name: "input8"
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: true
sensor:
- platform: dallas
address: 0x69030494972f9328
name: "Fűtés előre menő_id1"
id: futes_elore
- platform: dallas
address: 0xd203129497296d28
name: "Hűtés előre menő_id3"
id: hutes_elore
- platform: dallas
address: 0x3b3c01e0762ef628
name: "Hűtés vissztérő_id4"
- platform: dallas
address: 0x7603129497519a28
name: "Teszt2"
id: teszt2
- platform: homeassistant
name: "Nappali temp"
id: nappali_temp
entity_id: sensor.nsnappali_temperature
climate:
#PÕRANDAKLIIMA
- platform: thermostat
name: Fűtés keverő vezérlés
id: futes_kevero
icon: mdi:heater
visual:
min_temperature: 20 °C
max_temperature: 50 °C
temperature_step: 0.1 °C
min_idle_time: 1s
min_heating_run_time: 1s
min_cooling_run_time: 1s
min_heating_off_time: 1s
min_cooling_off_time: 1s
set_point_minimum_differential: 1
heat_overrun: 0.0
heat_deadband: 0.0
cool_overrun: 0.0
cool_deadband: 0.0
sensor: futes_elore
heat_action:
- script.execute: futes_kervero_nyit
- switch.turn_off: futes_out1
cool_action:
- script.execute: futes_kevero_zar
- switch.turn_off: futes_out2
idle_action:
- script.stop: futes_kervero_nyit
- script.stop: futes_kevero_zar
- switch.turn_off: futes_out1
- switch.turn_off: futes_out2
preset:
- name: küte
default_target_temperature_low: 20 °C
default_target_temperature_high: 45 °C
- platform: thermostat
name: Hűtés keverő vezérlés
id: hutes_kevero
icon: mdi:heater
visual:
min_temperature: 20 °C
max_temperature: 50 °C
temperature_step: 0.1 °C
min_idle_time: 1s
min_heating_run_time: 1s
min_cooling_run_time: 1s
min_heating_off_time: 1s
min_cooling_off_time: 1s
set_point_minimum_differential: 1
heat_overrun: 0.0
heat_deadband: 0.0
cool_overrun: 0.0
cool_deadband: 0.0
sensor: hutes_elore
heat_action:
- script.execute: hutes_kervero_nyit
- switch.turn_off: futes_out3
cool_action:
- script.execute: hutes_kevero_zar
- switch.turn_off: futes_out4
idle_action:
- script.stop: hutes_kervero_nyit
- script.stop: hutes_kevero_zar
- switch.turn_off: futes_out3
- switch.turn_off: futes_out4
preset:
- name: küte
default_target_temperature_low: 20 °C
default_target_temperature_high: 45 °C
- platform: thermostat
name: Nappali termosztát
id: nappali_thermostat
icon: mdi:heater
visual:
min_temperature: 20 °C
max_temperature: 30 °C
temperature_step: 0.2 °C
min_idle_time: 1s
min_heating_run_time: 10min
min_cooling_run_time: 10min
min_heating_off_time: 5min
min_cooling_off_time: 5min
set_point_minimum_differential: 0.2
heat_overrun: 0.0
heat_deadband: 0.0
cool_overrun: 0.0
cool_deadband: 0.0
sensor: nappali_temp
heat_action:
- switch.turn_on: futes_out5
cool_action:
- switch.turn_on: futes_out5
idle_action:
- switch.turn_off: futes_out5
script:
#PÕRANDA3T
- id: futes_kervero_nyit
then:
- repeat:
count: 100
then:
- switch.turn_on: futes_out1
- delay: 1s
- switch.turn_off: futes_out1
- delay: 35s
- id: futes_kevero_zar
then:
- repeat:
count: 100
then:
- switch.turn_on: futes_out2
- delay: 1s
- switch.turn_off: futes_out2
- delay: 35s
#PÕRANDA3T
- id: hutes_kervero_nyit
then:
- repeat:
count: 100
then:
- switch.turn_on: futes_out3
- delay: 1s
- switch.turn_off: futes_out3
- delay: 35s
- id: hutes_kevero_zar
then:
- repeat:
count: 100
then:
- switch.turn_on: futes_out4
- delay: 1s
- switch.turn_off: futes_out4
- delay: 35s