I’m trying to get an ultrasonic sensor working HC-SR04.
I’m only seeing 2.4 cm on the dashboard of HA.
If I look at logs I see this coming back from the sensor. At this moment it is stationary with no movement at all around it.
[21:39:22][D][ultrasonic.sensor:040]: ‘Ultrasonic Sensor’ - Got distance: 0.000 m
[21:39:22][D][sensor:093]: ‘Ultrasonic Sensor’: Sending state 2.40041 cm with 2 decimals of accuracy
[21:39:23][D][ultrasonic.sensor:040]: ‘Ultrasonic Sensor’ - Got distance: 0.853 m
[21:39:23][D][sensor:093]: ‘Ultrasonic Sensor’: Sending state 3.42324 cm with 2 decimals of accuracy
[21:39:24][D][ultrasonic.sensor:040]: ‘Ultrasonic Sensor’ - Got distance: 0.000 m
[21:39:24][D][sensor:093]: ‘Ultrasonic Sensor’: Sending state 2.40041 cm with 2 decimals of accuracy
[21:39:25][D][ultrasonic.sensor:040]: ‘Ultrasonic Sensor’ - Got distance: 0.373 m
[21:39:25][D][sensor:093]: ‘Ultrasonic Sensor’: Sending state 2.84762 cm with 2 decimals of accuracy
[21:39:26][D][ultrasonic.sensor:040]: ‘Ultrasonic Sensor’ - Got distance: 0.000 m
[21:39:26][D][sensor:093]: ‘Ultrasonic Sensor’: Sending state 2.40041 cm with 2 decimals of accuracy
Any help would be appreciated.