This type of functionality would more need a plugin than code in a scene. A plugin you can subscribe to events and you can set a filer for the device you are interested in. Then change a setting in another zwave device may not yet be supported in Lua as each plugin runs in its own space (called gateway) and you cannot control a device of another gateway. We have asked to allow it, but I have not yet heard it can be done. How to create your first plugin with Ezlo LUA API - Ezlo Library - Ezlo Community
I suspected the subscribe to events function but writing a plugin seems a bit overkill for this purpose and overwhelming for me.
I know it’s not suitable for a scene and maybe the only way to mimic Startup Lua is a plugin.
If I find the time, perhaps I should start digging in that direction to be prepared when we can interact between gateways, thanks for the link!
all provided examples change items of any gateway and you can use it in your plugins.
Ezlo Firmware provides: core.update_item_value() - it can update items of your plugin only. It updates value in firmware database.
core.set_item_value() - it can update any item of any gateway. This call redirects to the plugin which is responsible for the target item.
It depends how you want to see it and control. It’s possible to do via Lua in scenes if control part is enough. If you also want to see some states then better to do it via own plugin as @reneboer advised.
Could you describe expected flow for your case?
Aha, i was trying to understand what the API documentation about the set_item_value. On it self it does not state it can work on any item of any gateway. I guess it is implied by the section “Methods for using in external gateways” i now know what that heading means. And i think that I understand what you mean with internal and external gateways. Is external also on a different hub, or is it only the gateways(plugins) on one hub?
@andryist thank you for the information!
I don’t really need to see any states as the fans automatically acts on input from humidity, house modes and scene controllers for timed manual extraction.
So some Lua in a scene would do, but I will wait for a proper GUI before moving this logic from my Vera to my Ezlo controller, since coding this in an app on my phone is a bit troublesome.