16 lines
293 B
Lua
16 lines
293 B
Lua
local devices = require("automation:devices")
|
|
local secrets = require("automation:secrets")
|
|
|
|
local module = {}
|
|
|
|
local ntfy_topic = secrets.ntfy_topic
|
|
if ntfy_topic == nil then
|
|
error("Ntfy topic is not specified")
|
|
end
|
|
|
|
module.device = devices.Ntfy.new({
|
|
topic = ntfy_topic,
|
|
})
|
|
|
|
return module
|