One of the available drivers is called LAN Thing and it, “Enable(s) full access to LAN actions.” I do not understand its use. Any explanation would be appreciated. Thanks.
1 Like
This one?
Complete code in all its glory:
local capabilities = require "st.capabilities"
local Driver = require "st.driver"
--should anything beyond refresh be added?
local lan_thing_template = {
supported_capabilities = {
capabilities.refresh,
},
}
local lan_thing = Driver("lan_thing", lan_thing_template)
lan_thing:run()
name: lan-thing
components:
- id: main
capabilities:
- id: refresh
version: 1
I love this comment:
should anything beyond refresh be added?
Nah, it’s perfect as it is! The commas are driving me crazy, though.