07-03-2023, 02:51 PM
Hi Xu Wei,
Good day, I need assitance for two things.
1. My DHT sensor not reading temperature and the ESPHome log messages output below.
I have tried connecting my DHT11 sensor to both S1 & S2 input terminals and getting the same error for reading the temperature.
2. I am trying to make the Touch Wall Panel Switch glow when turning on inputs, I know KC868-A8 not having a digital input, but i made a small adjustment and patched a wire from relay 1 GND output terminal in the PCB and connected to Switch D1. K1 is connected to input.
All looks good, but the LED is turning ON when the switch 1 is turned off and LED is Off when switch 1 is turned ON.
Connection Details:
A8 Board Input 1 --> Wall Switch K1
A8 Board Relay 1 Digital Input GND soldered from PCB --> Wall Switch D1
A8 Board S1 --> DTH11 Data terminal , VCC and Ground connected in the S1-S4 terminal block VCC & GND.
My ESPHome code block is a below, I tried several 'Inverted : true" at switch component and binalry_sensor component in yaml file, but I am missing some basic part.
Need your help to overcome my Two issues.
Good day, I need assitance for two things.
1. My DHT sensor not reading temperature and the ESPHome log messages output below.
Code:
[20:03:03][C][dallas.sensor:075]: DallasComponent:
[20:03:03][C][dallas.sensor:076]: Pin: GPIO14
[20:03:03][C][dallas.sensor:077]: Update Interval: 60.0s
[20:03:03][W][dallas.sensor:080]: Found no sensors!
[20:03:03][C][dallas.sensor:089]: Device 'study_room_temperature_sensor'
[20:03:03][C][dallas.sensor:089]: Device Class: 'temperature'
[20:03:03][C][dallas.sensor:089]: State Class: 'measurement'
[20:03:03][C][dallas.sensor:089]: Unit of Measurement: '°C'
[20:03:03][C][dallas.sensor:089]: Accuracy Decimals: 1
[20:03:03][C][dallas.sensor:097]: Address: 0x1c0000031edd2a28
[20:03:03][C][dallas.sensor:098]: Resolution: 12
[20:03:55][E][dallas.sensor:112]: Requesting conversion failed
[20:03:55][D][sensor:094]: 'study_room_temperature_sensor': Sending state nan °C with 1 decimals of accuracy
I have tried connecting my DHT11 sensor to both S1 & S2 input terminals and getting the same error for reading the temperature.
2. I am trying to make the Touch Wall Panel Switch glow when turning on inputs, I know KC868-A8 not having a digital input, but i made a small adjustment and patched a wire from relay 1 GND output terminal in the PCB and connected to Switch D1. K1 is connected to input.
All looks good, but the LED is turning ON when the switch 1 is turned off and LED is Off when switch 1 is turned ON.
Connection Details:
A8 Board Input 1 --> Wall Switch K1
A8 Board Relay 1 Digital Input GND soldered from PCB --> Wall Switch D1
A8 Board S1 --> DTH11 Data terminal , VCC and Ground connected in the S1-S4 terminal block VCC & GND.
My ESPHome code block is a below, I tried several 'Inverted : true" at switch component and binalry_sensor component in yaml file, but I am missing some basic part.
Need your help to overcome my Two issues.
Code:
#
esphome:
name: a8-study-room
platform: ESP32
board: esp32dev
# Example configuration entry for ESP32
i2c:
sda: 4
scl: 5
scan: true
id: bus_a
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "********************************************"
ota:
password: "0fb1fa5d2db965e28cfb201d5afaf06c"
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: "************"
captive_portal:
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24
- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x22
# Individual outputs
switch:
- platform: gpio
name: "Study Room Fan"
id: a8_study_room_fan
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: false
binary_sensor:
- platform: gpio
name: "a8_study_room_fan"
on_press:
then:
- switch.toggle: a8_study_room_fan
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode:
input: true
dallas:
- pin: 14
sensor:
- platform: dallas
address: 0x1c0000031edd2a28
name: "study_room_temperature_sensor"