-
Notifications
You must be signed in to change notification settings - Fork 2
Using the NodOn soft button (D2‐03‐0A)
This page is to explain how to use this device as I saw on forums that people were having issues using it for automations.
The NodOn soft button is a small single pushbutton device that allows to trigger automation using 4 possible actions:
- Simple press
- Double press
- Long press
- Long press release
It also reports the battery level of the device. It is based on D2-03-0A EEP so any other device using this EEP will work in the same way.
You can simply add it to your device file using:
[button_test]
address = <address of the device>
rorg = 0xD2
func = 0x03
type = 0x0A
After restart, it will then appear in Home Assistant like this:
Clicking on +4 entities not shown
, you will discover 4 binary sensors, one per action listed above:
By default, these buttons are disabled as I strongly discourage their use for automations.
In fact, it is not shown on the device page but you have access to additional device triggers that are better suited for automations.
To use those device triggers, simply start configuring a new automation and from the trigger condition, select the device trigger associated to the action you want to use for your automation.
That's it !