pimatic-ultrasonic
Pimatic support for the HC-SR04 ultrasonic sensor.
Example config
Add the plugin to the plugin section:
Then add a sensor for your device to the devices section:
You can also select the unit:
example: "displayUnit": "cm"
Credits
Luke for mmm-usonic