I’m looking at ZCL Clusters — SmartThings Edge Device Drivers documentation
The provided example explains how to import On/Off Cluster commands:
local OnOffCluster = require "st.zigbee.generated.zcl_clusters.OnOffCluster"
When I try to follow this example, I get the following error:
Lua: runtime error: [string "init.lua"]:6: Module 'st.zigbee.generated.zcl_clusters.OnOffCluster' not found stack traceback: [C]: in function 'error' [string "env builder"]:63: in global 'require' [string "init.lua"]:6: in main chunk
I assume I miss st.zigbee.generated.zcl_clusters library, but I couldn’t find it anywhere.
I was trying to see whether the On (or Off) command can be aquired from
st.zigbee.zcl.clusters (not from st.zigbee.generated), something like
zcl_clusters.OnOff.client.commands.On, but without any success.
Thank you very much for your help