Hi,
I am trying to set up a motion detection based on a D1 mini with a LD2410 and a BH1750 sensor. The LD2410 is connected via the uArt port and the BH1750 should work with the i2c.
This is my config:
esphome:
name: motion-livingroom-us
friendly_name: Präsenzmelder Wohnzimmer (oben)
esp8266:
board: d1_mini
# Enable logging
logger:
# level: DEBUG
# hardware_uart: UART0_SWAP
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
- platform: esphome
password: "d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Motion-Livingroom-Us"
password: ""
captive_portal:
light:
- platform: binary
name: "Blue Status Light"
output: light_output
id: led_light
restore_mode: ALWAYS_OFF
output:
- platform: gpio
pin: GPIO2
id: light_output
i2c:
sda: GPIO4
scl: GPIO5
scan: true
id: bus_a
uart:
id: ld2410_uart
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 256000
parity: NONE
stop_bits: 1
ld2410:
uart_id: ld2410_uart
throttle: 1500ms
id: ld2410_comp
select:
- platform: ld2410
distance_resolution:
name: distance resolution
baud_rate:
name: baud rate
out_pin_level:
name: out pin level
button:
- platform: ld2410
factory_reset:
name: "factory reset"
restart:
name: "restart"
query_params:
name: query params
number:
- platform: ld2410
timeout:
name: timeout
max_move_distance_gate:
name: max move distance gate
max_still_distance_gate:
name: max still distance gate
g0:
move_threshold:
name: g0 move threshold
still_threshold:
name: g0 still threshold
g1:
move_threshold:
name: g1 move threshold
still_threshold:
name: g1 still threshold
g2:
move_threshold:
name: g2 move threshold
still_threshold:
name: g2 still threshold
g3:
move_threshold:
name: g3 move threshold
still_threshold:
name: g3 still threshold
g4:
move_threshold:
name: g4 move threshold
still_threshold:
name: g4 still threshold
g5:
move_threshold:
name: g5 move threshold
still_threshold:
name: g5 still threshold
g6:
move_threshold:
name: g6 move threshold
still_threshold:
name: g6 still threshold
g7:
move_threshold:
name: g7 move threshold
still_threshold:
name: g7 still threshold
g8:
move_threshold:
name: g8 move threshold
still_threshold:
name: g8 still threshold
text_sensor:
- platform: ld2410
version:
name: "presence sensor version"
mac_address:
name: "presence sensor mac address"
switch:
- platform: ld2410
engineering_mode:
name: "engineering mode"
bluetooth:
name: control Bluetooth
sensor:
- platform: bh1750
name: "Illuminance"
address: 0x23
update_interval: 15s
- platform: ld2410
moving_distance:
name: "Moving distance (cm)"
still_distance:
name: "Still Distance (cm)"
moving_energy:
name: "Move Energy (%)"
still_energy:
name: "Still Energy (%)"
detection_distance:
name: "Distance Detection (cm)"
g0:
move_energy:
name: g0 move energy
still_energy:
name: g0 still energy
g1:
move_energy:
name: g1 move energy
still_energy:
name: g1 still energy
g2:
move_energy:
name: g2 move energy
still_energy:
name: g2 still energy
g3:
move_energy:
name: g3 move energy
still_energy:
name: g3 still energy
g4:
move_energy:
name: g4 move energy
still_energy:
name: g4 still energy
g5:
move_energy:
name: g5 move energy
still_energy:
name: g5 still energy
g6:
move_energy:
name: g6 move energy
still_energy:
name: g6 still energy
g7:
move_energy:
name: g7 move energy
still_energy:
name: g7 still energy
g8:
move_energy:
name: g8 move energy
still_energy:
name: g8 still energy
binary_sensor:
- platform: ld2410
has_target:
name: Presence
has_moving_target:
name: Moving Target
has_still_target:
name: Still Target
on my D1 mini I have the LD2410 connected like this:
D1 mini ↔ sensor
RX<->TX (with RX on the D1 beeing GPIO3)
TX<->RX (with TX on the D1 beeing GPIO1)
5V<->VCC
GND<->GND
on my D1 mini I have the BH1750 connected like this:
D1 mini ↔ sensor
D1<->SCL (with D1 on the D1 beeing GPIO5)
D2<->SDA (with D2 on the D1 beeing GPIO4)
3V3<->VCC
GND<->GND
i cant get the BH1750 to work. I already tried 3 different sensors. This is what the log says:
INFO Upload took 35.73 seconds, waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.178.162 using esphome API
INFO Successfully connected to motion-livingroom-us @ 192.168.178.162 in 35.626s
INFO Successful handshake with motion-livingroom-us @ 192.168.178.162 in 3.619s
[18:08:18][I][app:100]: ESPHome version 2024.8.3 compiled on Oct 28 2024, 18:04:57
[18:08:18][C][wifi:600]: WiFi:
[18:08:18][C][wifi:428]: Local MAC: 48:55:19:F3:E1:F1
[18:08:18][C][wifi:433]: SSID: 'Eisprinzessin'[redacted]
[18:08:18][C][wifi:436]: IP Address: 192.168.178.162
[18:08:18][C][wifi:439]: BSSID: CC:CE:1E:AC:5F:BE[redacted]
[18:08:18][C][wifi:441]: Hostname: 'motion-livingroom-us'
[18:08:18][C][wifi:443]: Signal strength: -42 dB ▂▄▆█
[18:08:18][C][wifi:447]: Channel: 11
[18:08:18][C][wifi:448]: Subnet: 255.255.255.0
[18:08:18][C][wifi:449]: Gateway: 192.168.178.1
[18:08:18][C][wifi:450]: DNS1: 192.168.178.10
[18:08:18][C][wifi:451]: DNS2: 0.0.0.0
[18:08:18][C][logger:185]: Logger:
[18:08:18][C][logger:186]: Level: DEBUG
[18:08:18][C][logger:188]: Log Baud Rate: 115200
[18:08:18][C][logger:189]: Hardware UART: UART0
[18:08:18][C][i2c.arduino:071]: I2C Bus:
[18:08:18][C][i2c.arduino:072]: SDA Pin: GPIO4
[18:08:18][C][i2c.arduino:073]: SCL Pin: GPIO5
[18:08:18][C][i2c.arduino:074]: Frequency: 50000 Hz
[18:08:18][C][i2c.arduino:086]: Recovery: bus successfully recovered
[18:08:18][I][i2c.arduino:096]: Results from i2c bus scan:
[18:08:18][I][i2c.arduino:098]: Found no i2c devices!
[18:08:18][C][uart.arduino_esp8266:118]: UART Bus:
[18:08:18][C][uart.arduino_esp8266:119]: TX Pin: GPIO1
[18:08:18][C][uart.arduino_esp8266:120]: RX Pin: GPIO3
[18:08:18][C][uart.arduino_esp8266:122]: RX Buffer Size: 256
[18:08:18][C][uart.arduino_esp8266:124]: Baud Rate: 256000 baud
[18:08:18][C][uart.arduino_esp8266:125]: Data Bits: 8
[18:08:18][C][uart.arduino_esp8266:126]: Parity: NONE
[18:08:18][C][uart.arduino_esp8266:127]: Stop bits: 1
[18:08:18][C][uart.arduino_esp8266:129]: Using hardware serial interface.
[18:08:18][W][uart.arduino_esp8266:143]: You're using the same serial port for logging and the UART component. Please disable logging over the serial port by setting logger->baud_rate to 0.
logger->baud_rate to 0.
[18:08:18][C][gpio.output:010]: GPIO Binary Output:
[18:08:18][C][gpio.output:011]: Pin: GPIO2
[18:08:18][C][light:103]: Light 'Blue Status Light'
[18:08:18][C][ld2410:022]: LD2410:
[18:08:18][C][ld2410:024]: TargetBinarySensor 'Presence'
[18:08:18][C][ld2410:024]: Device Class: 'occupancy'
[18:08:18][C][ld2410:025]: MovingTargetBinarySensor 'Moving Target'
[18:08:18][C][ld2410:025]: Device Class: 'motion'
[18:08:18][C][ld2410:026]: StillTargetBinarySensor 'Still Target'
[18:08:18][C][ld2410:026]: Device Class: 'occupancy'
[18:08:18][C][ld2410:068]: EngineeringModeSwitch 'engineering mode'
[18:08:18][C][ld2410:070]: Icon: 'mdi:pulse'
[18:08:18][C][ld2410:079]: Device Class: 'switch'
[18:08:18][C][ld2410:090]: Restore Mode: always OFF
[18:08:18][C][ld2410:068]: BluetoothSwitch 'control Bluetooth'
[18:08:18][C][ld2410:070]: Icon: 'mdi:bluetooth'
[18:08:18][C][ld2410:079]: Device Class: 'switch'
[18:08:18][C][ld2410:090]: Restore Mode: always OFF
[18:08:18][C][ld2410:034]: ResetButton 'factory reset'
[18:08:18][C][ld2410:034]: Icon: 'mdi:restart-alert'
[18:08:18][C][ld2410:035]: RestartButton 'restart'
[18:08:18][C][ld2410:035]: Icon: 'mdi:restart'
[18:08:18][C][ld2410:036]: QueryButton 'query params'
[18:08:18][C][ld2410:036]: Icon: 'mdi:database'
[18:08:18][C][ld2410:040]: MovingTargetDistanceSensor 'Moving distance (cm)'
[18:08:18][C][ld2410:040]: Device Class: 'distance'
[18:08:18][C][ld2410:040]: State Class: ''
[18:08:18][C][ld2410:040]: Unit of Measurement: 'cm'
[18:08:18][C][ld2410:040]: Accuracy Decimals: 0
[18:08:18][C][ld2410:040]: Icon: 'mdi:signal-distance-variant'
[18:08:18][C][ld2410:041]: StillTargetDistanceSensor 'Still Distance (cm)'
[18:08:18][C][ld2410:041]: Device Class: 'distance'
[18:08:18][C][ld2410:041]: State Class: ''
[18:08:18][C][ld2410:041]: Unit of Measurement: 'cm'
[18:08:18][C][ld2410:041]: Accuracy Decimals: 0
[18:08:18][C][ld2410:041]: Icon: 'mdi:signal-distance-variant'
[18:08:18][C][ld2410:042]: MovingTargetEnergySensor 'Move Energy (%)'
[18:08:18][C][ld2410:042]: State Class: ''
[18:08:18][C][ld2410:042]: Unit of Measurement: '%'
[18:08:18][C][ld2410:042]: Accuracy Decimals: 0
[18:08:18][C][ld2410:042]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:043]: StillTargetEnergySensor 'Still Energy (%)'
[18:08:18][C][ld2410:043]: State Class: ''
[18:08:18][C][ld2410:043]: Unit of Measurement: '%'
[18:08:18][C][ld2410:043]: Accuracy Decimals: 0
[18:08:18][C][ld2410:043]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:044]: DetectionDistanceSensor 'Distance Detection (cm)'
[18:08:18][C][ld2410:044]: Device Class: 'distance'
[18:08:18][C][ld2410:044]: State Class: ''
[18:08:18][C][ld2410:044]: Unit of Measurement: 'cm'
[18:08:18][C][ld2410:044]: Accuracy Decimals: 0
[18:08:18][C][ld2410:044]: Icon: 'mdi:signal-distance-variant'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g0 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g1 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g2 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g3 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g4 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g5 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g6 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g7 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:046]: NthGateStillSesnsor 'g8 still energy'
[18:08:18][C][ld2410:046]: State Class: ''
[18:08:18][C][ld2410:046]: Unit of Measurement: '%'
[18:08:18][C][ld2410:046]: Accuracy Decimals: 0
[18:08:18][C][ld2410:046]: Icon: 'mdi:flash'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g0 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g1 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g2 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g3 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g4 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g5 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g6 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g7 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:049]: NthGateMoveSesnsor 'g8 move energy'
[18:08:18][C][ld2410:049]: State Class: ''
[18:08:18][C][ld2410:049]: Unit of Measurement: '%'
[18:08:18][C][ld2410:049]: Accuracy Decimals: 0
[18:08:18][C][ld2410:049]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:053]: VersionTextSensor 'presence sensor version'
[18:08:18][C][ld2410:053]: Icon: 'mdi:chip'
[18:08:18][C][ld2410:054]: MacTextSensor 'presence sensor mac address'
[18:08:18][C][ld2410:054]: Icon: 'mdi:bluetooth'
[18:08:18][C][ld2410:058]: OutPinLevelSelect 'out pin level'
[18:08:18][C][ld2410:058]: Icon: 'mdi:scale'
[18:08:18][C][ld2410:059]: DistanceResolutionSelect 'distance resolution'
[18:08:18][C][ld2410:059]: Icon: 'mdi:ruler'
[18:08:18][C][ld2410:060]: BaudRateSelect 'baud rate'
[18:08:18][C][ld2410:060]: Icon: 'mdi:thermometer'
[18:08:18][C][ld2410:064]: MaxStillDistanceGateNumber 'max still distance gate'
[18:08:18][C][ld2410:064]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:064]: Device Class: 'distance'
[18:08:18][C][ld2410:065]: MaxMoveDistanceGateNumber 'max move distance gate'
[18:08:18][C][ld2410:065]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:065]: Device Class: 'distance'
[18:08:18][C][ld2410:066]: TimeoutNumber 'timeout'
[18:08:18][C][ld2410:066]: Icon: 'mdi:timelapse'
[18:08:18][C][ld2410:066]: Unit of Measurement: 's'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g0 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g1 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g2 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g3 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g4 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g5 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g6 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g7 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:068]: Still Thresholds Number 'g8 still threshold'
[18:08:18][C][ld2410:068]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:068]: Unit of Measurement: '%'
[18:08:18][C][ld2410:068]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g0 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g1 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g2 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g3 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g4 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g5 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:18][C][ld2410:071]: Move Thresholds Number 'g6 move threshold'
[18:08:18][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:18][C][ld2410:071]: Unit of Measurement: '%'
[18:08:18][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:19][C][ld2410:071]: Move Thresholds Number 'g7 move threshold'
[18:08:19][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:19][C][ld2410:071]: Unit of Measurement: '%'
[18:08:19][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:19][C][ld2410:071]: Move Thresholds Number 'g8 move threshold'
[18:08:19][C][ld2410:071]: Icon: 'mdi:motion-sensor'
[18:08:19][C][ld2410:071]: Unit of Measurement: '%'
[18:08:19][C][ld2410:071]: Device Class: 'signal_strength'
[18:08:19][C][ld2410:075]: Throttle_ : 1500ms
[18:08:19][C][ld2410:076]: MAC Address : 73:DE:5A:C9:6E:CD
[18:08:19][C][ld2410:077]: Firmware Version : 2.04.23022511
[18:08:19][E][ld2410:336]: Error with last command : incorrect Header
[18:08:19][D][text_sensor:064]: 'presence sensor version': Sending state '2.04.23022511'
[18:08:19][D][text_sensor:064]: 'presence sensor version': Sending state '2.04.23022511'
[18:08:19][D][text_sensor:064]: 'presence sensor version': Sending state '2.04.23022511'
[18:08:19][D][text_sensor:064]: 'presence sensor mac address': Sending state '73:DE:5A:C9:6E:CD'
[18:08:19][D][sensor:093]: 'Distance Detection (cm)': Sending state 93.00000 cm with 0 decimals of accuracy
[18:08:19][C][bh1750.sensor:118]: BH1750 'Illuminance'
[18:08:19][C][bh1750.sensor:118]: Device Class: 'illuminance'
[18:08:19][C][bh1750.sensor:118]: State Class: 'measurement'
[18:08:19][C][bh1750.sensor:118]: Unit of Measurement: 'lx'
[18:08:19][C][bh1750.sensor:118]: Accuracy Decimals: 1
[18:08:19][C][bh1750.sensor:119]: Address: 0x23
[18:08:19][E][bh1750.sensor:121]: Communication with BH1750 failed!
[18:08:19][C][bh1750.sensor:124]: Update Interval: 15.0s
[18:08:19][E][component:082]: Component bh1750.sensor is marked FAILED
[18:08:19][C][captive_portal:088]: Captive Portal:
[18:08:19][C][mdns:116]: mDNS:
[18:08:19][C][mdns:117]: Hostname: motion-livingroom-us
[18:08:19][C][esphome.ota:073]: Over-The-Air updates:
[18:08:19][C][esphome.ota:074]: Address: motion-livingroom-us.local:8266
[18:08:19][C][esphome.ota:075]: Version: 2
[18:08:19][C][esphome.ota:078]: Password configured
[18:08:19][C][safe_mode:018]: Safe Mode:
[18:08:19][C][safe_mode:019]: Boot considered successful after 60 seconds
[18:08:19][C][safe_mode:021]: Invoke after 10 boot attempts
[18:08:19][C][safe_mode:022]: Remain in safe mode for 300 seconds
[18:08:19][C][api:139]: API Server:
[18:08:19][C][api:140]: Address: motion-livingroom-us.local:6053
[18:08:19][C][api:142]: Using noise encryption: YES
So it basically looks like the i2c can’t find any devices.
I tried connecting the BH1750 by itself without the rest of the code like:
captive_portal:
i2c:
sda: GPIO4
scl: GPIO5
scan: true
id: bus_a
sensor:
- platform: bh1750
name: "Illuminance"
address: 0x23
update_interval: 15s
and it works without any issue.
So what is my mistake? Does UArt and i2c dont work together? Do any ports double?
Could anyone hint me in the right direction?
Thank you in advance!
regards,
Markus