Files
automation_rs/definitions/config.lua
Dreaded_X 460aba6f9d
All checks were successful
Build and deploy / build (push) Successful in 11m22s
Build and deploy / Deploy container (push) Has been skipped
feat(config)!: Device creation function is now named entry
It now has to be called 'devices', this makes it possible to just
include the table as a whole in devices and it will automatically call
the correct function.
2025-10-20 04:08:55 +02:00

36 lines
910 B
Lua

-- DO NOT MODIFY, FILE IS AUTOMATICALLY GENERATED
---@meta
---@class FulfillmentConfig
---@field openid_url string
---@field ip string?
---@field port integer?
local FulfillmentConfig
---@class Config
---@field fulfillment FulfillmentConfig
---@field devices Devices?
---@field mqtt MqttConfig
---@field schedule table<string, fun() | fun()[]>?
local Config
---@alias DevicesFunction fun(mqtt_client: AsyncClient): DevicesInner
---@alias DevicesInner (DeviceInterface | { devices: DevicesFunction } | DevicesInner)[]
---@alias Devices DevicesFunction | DevicesInner
---@class MqttConfig
---@field host string
---@field port integer
---@field client_name string
---@field username string
---@field password string
---@field tls boolean?
local MqttConfig
---@class AsyncClient
local AsyncClient
---@async
---@param topic string
---@param message table?
function AsyncClient:send_message(topic, message) end