You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing the code. I use “Lolin D32” to connect vl53l1x,
vcc--3v
GND--GND
SLC--SLC (22)
SDA--SDA (21)
After power on, the log is displayed like this. What should I do?
Thanks again。
log:
[C][wifi:298]: DNS1: 192.168.2.1�
[C][wifi:298]: DNS1: 192.168.2.1�
[C][wifi:299]: DNS2: 0.0.0.0�
[C][i2c:028]: I2C Bus:�
[C][i2c:029]: SDA Pin: GPIO21�
[C][i2c:029]: SDA Pin: GPIO21�
[C][i2c:030]: SCL Pin: GPIO22�
[C][i2c:031]: Frequency: 50000 Hz�
[I][i2c:033]: Scanning i2c bus for active devices...�
[I][i2c:033]: Scanning i2c bus for active devices...�
[I][i2c:040]: Found i2c device at address 0x24�
[I][i2c:043]: Unknown error at address 0x25�
[I][i2c:043]: Unknown error at address 0x26�
[I][i2c:043]: Unknown error at address 0x30�
[I][i2c:043]: Unknown error at address 0x31�
[I][i2c:043]: Unknown error at address 0x32�
[I][i2c:043]: Unknown error at address 0x3E�
[I][i2c:040]: Found i2c device at address 0x40�
[I][i2c:043]: Unknown error at address 0x42�
[I][i2c:043]: Unknown error at address 0x43�
[I][i2c:043]: Unknown error at address 0x44�
[I][i2c:040]: Found i2c device at address 0x45�
[I][i2c:040]: Found i2c device at address 0x45�
[I][i2c:043]: Unknown error at address 0x46�
[I][i2c:043]: Unknown error at address 0x4A�
[I][i2c:043]: Unknown error at address 0x4B�
[I][i2c:043]: Unknown error at address 0x4D�
[I][i2c:043]: Unknown error at address 0x4E�
[I][i2c:043]: Unknown error at address 0x4F�
[I][i2c:043]: Unknown error at address 0x50�
[I][i2c:043]: Unknown error at address 0x51�
[I][i2c:043]: Unknown error at address 0x52�
[I][i2c:043]: Unknown error at address 0x52�
[I][i2c:043]: Unknown error at address 0x53�
[I][i2c:043]: Unknown error at address 0x54�
[I][i2c:043]: Unknown error at address 0x56�
[I][i2c:043]: Unknown error at address 0x57�
[C][template.binary_sensor:018]: Template Binary Sensor 'Door sensor'�
[C][uptime.sensor:030]: Uptime Sensor 'tof sensor Uptime'�
[C][uptime.sensor:030]: Unit of Measurement: 's'�
[C][uptime.sensor:030]: Accuracy Decimals: 0�
[C][uptime.sensor:030]: Accuracy Decimals: 0�
[C][uptime.sensor:030]: Icon: 'mdi:timer'�
[C][uptime.sensor:030]: Icon: 'mdi:timer'�
[C][template.sensor:021]: Template Sensor 'tof distance'�
[C][template.sensor:021]: Unit of Measurement: 'mm'�
[C][template.sensor:021]: Accuracy Decimals: 0�
[C][template.sensor:021]: Icon: 'mdi:ruler'�
[C][template.sensor:022]: Update Interval: 1.0s�
[C][template.sensor:021]: Template Sensor 'tof distance avg'�
[C][template.sensor:021]: Unit of Measurement: 'mm'�
[C][template.sensor:021]: Accuracy Decimals: 0�
[C][template.sensor:021]: Icon: 'mdi:ruler'�
[C][template.sensor:022]: Update Interval: 0.1s�
[C][logger:175]: Logger:�
[C][logger:176]: Level: DEBUG�
[C][logger:177]: Log Baud Rate: 115200�
[C][logger:178]: Hardware UART: UART0�
[C][restart:021]: Restart Switch 'tof sensor Restart'�
[C][restart:021]: Icon: 'mdi:restart'�
[C][status:034]: Status Binary Sensor 'tof sensor Status'�
[C][status:034]: Device Class: 'connectivity'�
[C][captive_portal:169]: Captive Portal:�
[C][web_server:122]: Web Server:�
[C][web_server:123]: Address: tof_sensor.local:80�
[C][ota:029]: Over-The-Air Updates:�
[C][ota:030]: Address: tof_sensor.local:3232�
[C][mqtt:051]: MQTT:�
[C][mqtt:053]: Server Address: 192.168.2.201:1883 (192.168.2.201)�
[C][mqtt:054]: Username: �[5m'mqtt'�[6m�
[C][mqtt:055]: Client ID: �[5m'tof_sensor-7c9ebdf1f9e4'�[6m�
[C][mqtt:055]: Client ID: �[5m'tof_sensor-7c9ebdf1f9e4'�[6m�
[C][mqtt:057]: Discovery prefix: 'homeassistantconf'�
[C][mqtt:058]: Discovery retain: YES�
[C][mqtt:058]: Discovery retain: YES�
[C][mqtt:060]: Topic Prefix: 'tof_sensor'�
[C][mqtt:062]: Log Topic: 'tof_sensor/debug'�
[C][mqtt:065]: Availability: 'tof_sensor/status'�
[C][api:095]: API Server:�
[C][api:096]: Address: tof_sensor.local:6053�
[C][wifi_signal.sensor:009]: WiFi Signal 'tof sensor RSSI'�
[C][wifi_signal.sensor:009]: Unit of Measurement: 'dB'�
[C][wifi_signal.sensor:009]: Accuracy Decimals: 0�
[C][wifi_signal.sensor:009]: Accuracy Decimals: 0�
[C][wifi_signal.sensor:009]: Icon: 'mdi:wifi'�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[C][mqtt_subscribe.sensor:027]: MQTT Subscribe 'People reset'�
[C][mqtt_subscribe.sensor:027]: Unit of Measurement: ''�
[C][mqtt_subscribe.sensor:027]: Accuracy Decimals: 1�
[C][mqtt_subscribe.sensor:027]: Accuracy Decimals: 1�
[C][mqtt_subscribe.sensor:028]: Topic: tof_sensor/sensor/people/reset�
[C][mqtt.switch:038]: MQTT Switch 'tof sensor Restart': �
[C][mqtt.switch:039]: State Topic: 'tof_sensor/switch/tof_sensor_restart/state'�
[C][mqtt.switch:039]: State Topic: 'tof_sensor/switch/tof_sensor_restart/state'�
[C][mqtt.switch:039]: Command Topic: 'tof_sensor/switch/tof_sensor_restart/command'�
[C][mqtt.binary_sensor:018]: MQTT Binary Sensor 'tof sensor Status':�
[C][mqtt.binary_sensor:019]: State Topic: 'tof_sensor/status'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof sensor RSSI':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_rssi/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_rssi/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof sensor Uptime':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_uptime/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_uptime/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'People':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/people/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof distance':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof distance avg':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance_avg/state'�
[C][mqtt.binary_sensor:018]: MQTT Binary Sensor 'Door sensor':�
[C][mqtt.binary_sensor:019]: State Topic: 'tof_sensor/binary_sensor/door_sensor/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'People reset':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/people_reset/state'�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
The text was updated successfully, but these errors were encountered:
Thanks for sharing the code. I use “Lolin D32” to connect vl53l1x,
vcc--3v
GND--GND
SLC--SLC (22)
SDA--SDA (21)
After power on, the log is displayed like this. What should I do?
Thanks again。
log:
[C][wifi:298]: DNS1: 192.168.2.1�
[C][wifi:298]: DNS1: 192.168.2.1�
[C][wifi:299]: DNS2: 0.0.0.0�
[C][i2c:028]: I2C Bus:�
[C][i2c:029]: SDA Pin: GPIO21�
[C][i2c:029]: SDA Pin: GPIO21�
[C][i2c:030]: SCL Pin: GPIO22�
[C][i2c:031]: Frequency: 50000 Hz�
[I][i2c:033]: Scanning i2c bus for active devices...�
[I][i2c:033]: Scanning i2c bus for active devices...�
[I][i2c:040]: Found i2c device at address 0x24�
[I][i2c:043]: Unknown error at address 0x25�
[I][i2c:043]: Unknown error at address 0x26�
[I][i2c:043]: Unknown error at address 0x30�
[I][i2c:043]: Unknown error at address 0x31�
[I][i2c:043]: Unknown error at address 0x32�
[I][i2c:043]: Unknown error at address 0x3E�
[I][i2c:040]: Found i2c device at address 0x40�
[I][i2c:043]: Unknown error at address 0x42�
[I][i2c:043]: Unknown error at address 0x43�
[I][i2c:043]: Unknown error at address 0x44�
[I][i2c:040]: Found i2c device at address 0x45�
[I][i2c:040]: Found i2c device at address 0x45�
[I][i2c:043]: Unknown error at address 0x46�
[I][i2c:043]: Unknown error at address 0x4A�
[I][i2c:043]: Unknown error at address 0x4B�
[I][i2c:043]: Unknown error at address 0x4D�
[I][i2c:043]: Unknown error at address 0x4E�
[I][i2c:043]: Unknown error at address 0x4F�
[I][i2c:043]: Unknown error at address 0x50�
[I][i2c:043]: Unknown error at address 0x51�
[I][i2c:043]: Unknown error at address 0x52�
[I][i2c:043]: Unknown error at address 0x52�
[I][i2c:043]: Unknown error at address 0x53�
[I][i2c:043]: Unknown error at address 0x54�
[I][i2c:043]: Unknown error at address 0x56�
[I][i2c:043]: Unknown error at address 0x57�
[C][template.binary_sensor:018]: Template Binary Sensor 'Door sensor'�
[C][uptime.sensor:030]: Uptime Sensor 'tof sensor Uptime'�
[C][uptime.sensor:030]: Unit of Measurement: 's'�
[C][uptime.sensor:030]: Accuracy Decimals: 0�
[C][uptime.sensor:030]: Accuracy Decimals: 0�
[C][uptime.sensor:030]: Icon: 'mdi:timer'�
[C][uptime.sensor:030]: Icon: 'mdi:timer'�
[C][template.sensor:021]: Template Sensor 'tof distance'�
[C][template.sensor:021]: Unit of Measurement: 'mm'�
[C][template.sensor:021]: Accuracy Decimals: 0�
[C][template.sensor:021]: Icon: 'mdi:ruler'�
[C][template.sensor:022]: Update Interval: 1.0s�
[C][template.sensor:021]: Template Sensor 'tof distance avg'�
[C][template.sensor:021]: Unit of Measurement: 'mm'�
[C][template.sensor:021]: Accuracy Decimals: 0�
[C][template.sensor:021]: Icon: 'mdi:ruler'�
[C][template.sensor:022]: Update Interval: 0.1s�
[C][logger:175]: Logger:�
[C][logger:176]: Level: DEBUG�
[C][logger:177]: Log Baud Rate: 115200�
[C][logger:178]: Hardware UART: UART0�
[C][restart:021]: Restart Switch 'tof sensor Restart'�
[C][restart:021]: Icon: 'mdi:restart'�
[C][status:034]: Status Binary Sensor 'tof sensor Status'�
[C][status:034]: Device Class: 'connectivity'�
[C][captive_portal:169]: Captive Portal:�
[C][web_server:122]: Web Server:�
[C][web_server:123]: Address: tof_sensor.local:80�
[C][ota:029]: Over-The-Air Updates:�
[C][ota:030]: Address: tof_sensor.local:3232�
[C][mqtt:051]: MQTT:�
[C][mqtt:053]: Server Address: 192.168.2.201:1883 (192.168.2.201)�
[C][mqtt:054]: Username: �[5m'mqtt'�[6m�
[C][mqtt:055]: Client ID: �[5m'tof_sensor-7c9ebdf1f9e4'�[6m�
[C][mqtt:055]: Client ID: �[5m'tof_sensor-7c9ebdf1f9e4'�[6m�
[C][mqtt:057]: Discovery prefix: 'homeassistantconf'�
[C][mqtt:058]: Discovery retain: YES�
[C][mqtt:058]: Discovery retain: YES�
[C][mqtt:060]: Topic Prefix: 'tof_sensor'�
[C][mqtt:062]: Log Topic: 'tof_sensor/debug'�
[C][mqtt:065]: Availability: 'tof_sensor/status'�
[C][api:095]: API Server:�
[C][api:096]: Address: tof_sensor.local:6053�
[C][wifi_signal.sensor:009]: WiFi Signal 'tof sensor RSSI'�
[C][wifi_signal.sensor:009]: Unit of Measurement: 'dB'�
[C][wifi_signal.sensor:009]: Accuracy Decimals: 0�
[C][wifi_signal.sensor:009]: Accuracy Decimals: 0�
[C][wifi_signal.sensor:009]: Icon: 'mdi:wifi'�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[C][mqtt_subscribe.sensor:027]: MQTT Subscribe 'People reset'�
[C][mqtt_subscribe.sensor:027]: Unit of Measurement: ''�
[C][mqtt_subscribe.sensor:027]: Accuracy Decimals: 1�
[C][mqtt_subscribe.sensor:027]: Accuracy Decimals: 1�
[C][mqtt_subscribe.sensor:028]: Topic: tof_sensor/sensor/people/reset�
[C][mqtt.switch:038]: MQTT Switch 'tof sensor Restart': �
[C][mqtt.switch:039]: State Topic: 'tof_sensor/switch/tof_sensor_restart/state'�
[C][mqtt.switch:039]: State Topic: 'tof_sensor/switch/tof_sensor_restart/state'�
[C][mqtt.switch:039]: Command Topic: 'tof_sensor/switch/tof_sensor_restart/command'�
[C][mqtt.binary_sensor:018]: MQTT Binary Sensor 'tof sensor Status':�
[C][mqtt.binary_sensor:019]: State Topic: 'tof_sensor/status'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof sensor RSSI':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_rssi/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_rssi/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof sensor Uptime':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_uptime/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_sensor_uptime/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'People':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/people/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof distance':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance/state'�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'tof distance avg':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/tof_distance_avg/state'�
[C][mqtt.binary_sensor:018]: MQTT Binary Sensor 'Door sensor':�
[C][mqtt.binary_sensor:019]: State Topic: 'tof_sensor/binary_sensor/door_sensor/state'�
[C][mqtt.sensor:024]: MQTT Sensor 'People reset':�
[C][mqtt.sensor:028]: State Topic: 'tof_sensor/sensor/people_reset/state'�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
[D][sensor:092]: 'tof distance avg': Sending state 0.00000 mm with 0 decimals of accuracy�
The text was updated successfully, but these errors were encountered: