157 lines
2.9 KiB
Lua
157 lines
2.9 KiB
Lua
---@meta
|
|
|
|
local devices
|
|
|
|
---@class Washer
|
|
local Washer
|
|
|
|
---@class IkeaRemote
|
|
local IkeaRemote
|
|
|
|
---@class OutletPower
|
|
local OutletPower
|
|
---@async
|
|
---@param on boolean
|
|
function OutletPower:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function OutletPower:on() end
|
|
|
|
---@class OutletOnOff
|
|
local OutletOnOff
|
|
---@async
|
|
---@param on boolean
|
|
function OutletOnOff:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function OutletOnOff:on() end
|
|
|
|
---@class KasaOutlet
|
|
local KasaOutlet
|
|
---@async
|
|
---@param on boolean
|
|
function KasaOutlet:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function KasaOutlet:on() end
|
|
|
|
---@class Presence
|
|
local Presence
|
|
|
|
---@class HueSwitch
|
|
local HueSwitch
|
|
|
|
---@class ContactSensor
|
|
local ContactSensor
|
|
---@async
|
|
---@param open_percent integer
|
|
function ContactSensor:set_open_percent(open_percent) end
|
|
---@async
|
|
---@return integer
|
|
function ContactSensor:open_percent() end
|
|
|
|
---@class HueGroup
|
|
local HueGroup
|
|
---@async
|
|
---@param on boolean
|
|
function HueGroup:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function HueGroup:on() end
|
|
|
|
---@class Ntfy
|
|
local Ntfy
|
|
|
|
---@alias Priority
|
|
---| "min"
|
|
---| "low"
|
|
---| "default"
|
|
---| "high"
|
|
---| "max"
|
|
|
|
---@class Notification
|
|
---@field title string
|
|
---@field message string?
|
|
---@field tags string[]?
|
|
---@field priority Priority?
|
|
---@field actions Action[]?
|
|
local Notification
|
|
|
|
---@class NtfyConfig
|
|
---@field url string
|
|
---@field topic string
|
|
local NtfyConfig
|
|
|
|
---@class Action
|
|
---@field action
|
|
---| "broadcast"
|
|
---@field extras table<string, string>?
|
|
---@field label string
|
|
---@field clear boolean?
|
|
local Action
|
|
|
|
---@class LightSensor
|
|
local LightSensor
|
|
|
|
---@class LightColorTemperature
|
|
local LightColorTemperature
|
|
---@async
|
|
---@param on boolean
|
|
function LightColorTemperature:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function LightColorTemperature:on() end
|
|
---@async
|
|
---@param brightness integer
|
|
function LightColorTemperature:set_brightness(brightness) end
|
|
---@async
|
|
---@return integer
|
|
function LightColorTemperature:brightness() end
|
|
---@async
|
|
---@param temperature integer
|
|
function LightColorTemperature:set_color_temperature(temperature) end
|
|
---@async
|
|
---@return integer
|
|
function LightColorTemperature:color_temperature() end
|
|
|
|
---@class LightOnOff
|
|
local LightOnOff
|
|
---@async
|
|
---@param on boolean
|
|
function LightOnOff:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function LightOnOff:on() end
|
|
|
|
---@class LightBrightness
|
|
local LightBrightness
|
|
---@async
|
|
---@param on boolean
|
|
function LightBrightness:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function LightBrightness:on() end
|
|
---@async
|
|
---@param brightness integer
|
|
function LightBrightness:set_brightness(brightness) end
|
|
---@async
|
|
---@return integer
|
|
function LightBrightness:brightness() end
|
|
|
|
---@class HueBridge
|
|
local HueBridge
|
|
|
|
---@class AirFilter
|
|
local AirFilter
|
|
---@async
|
|
---@param on boolean
|
|
function AirFilter:set_on(on) end
|
|
---@async
|
|
---@return boolean
|
|
function AirFilter:on() end
|
|
|
|
---@class WakeOnLAN
|
|
local WakeOnLAN
|
|
|
|
return devices
|