Files
automation_rs/definitions/automation:devices.lua
Dreaded_X cca7660faa
All checks were successful
Build and deploy / build (push) Successful in 9m58s
Build and deploy / Deploy container (push) Has been skipped
feat: WIP
2025-09-13 04:16:38 +02:00

34 lines
745 B
Lua

---@meta
local devices
---@class Action
---@field action "broadcast"
---@field extras table<string, string> | nil
---@field label string | nil
---@clear clear bool|nil
---@class Notification
---@field title string
---@field message string | nil
-- NOTE: It might be possible to specify this down to the actual possible values
---@field tags string[] | nil
---@field priority "min" | "low" | "default" | "high" | "max" | nil
---@field actions Action[] | nil
---@class Ntfy
local Ntfy
---@async
---@param notification Notification
function Ntfy:send_notification(notification) end
---@class NtfyConfig
---@field topic string
devices.Ntfy = {}
---@param config NtfyConfig
---@return Ntfy
function devices.Ntfy.new(config) end
return devices