-
Notifications
You must be signed in to change notification settings - Fork 0
Sensor Decoder
Bruno Sanches edited this page Jan 20, 2020
·
3 revisions
A sensor decoder is a decoder that runs on a Device and watch an Arduino digital pin looking for input.
The sensor will send a notification when the pin state changes, also it supports debouncing logic for avoiding false notifications.
Also user is able to add a delay to state changes if necessary.
The Sensor Decoder requires the following parameters on the decoders configuration file file:
- name: the user name for identifying the object
- class: must be "Sensor"
- pin: the pin number for the sensor to watch for
- address: DCC address for the device (any number from 1 to 2048)
- inverted (optional, defaults to false): a flag indicating if behavior must be inverted, ie activate on LOW insted of HIGH
- activationDelay (optional, defaults to 0): time (in seconds) to wait before accepting a change to ACTIVATE state
- deactivationDelay (optional, defaults to 0): time (in seconds) to wait before accepting a change to DEACTIVATE state