mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
✨ Adds support for host trigger
This commit is contained in:
parent
4a37f124cd
commit
68fa417e4e
1 changed files with 8 additions and 0 deletions
|
@ -76,3 +76,11 @@ function bashio::hardware.gpio() {
|
|||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::hardware 'hardware.info.gpio' '.gpio[]'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Trigger udev device notifications from the host system.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::hardware.trigger() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::api.hassio POST /hardware/trigger
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue