Skip to content

wutu/pimatic-ultrasonic

development
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

pimatic-ultrasonic

Pimatic support for the HC-SR04 ultrasonic sensor.

Exapmle wiring

Example config

Add the plugin to the plugin section:

{ 
  "plugin": "ultrasonic"
}

Then add a sensor for your device to the devices section:

{
  "id": "ultrasonic",
  "name": "Ultrasonic HC-SR04",
  "class": "Ultrasonic",
  "echo": 22,
  "trigger": 18,
  "timeout": 750,
  "interval": 60000
}

You can also select the unit:

example: "displayUnit": "cm"

Credits

Luke for mmm-usonic

License

AGPL-3.0

About

Support for the HC-SR04 ultrasonic sensor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published