If you are looking for a free option to check out Triggers our
ConnectSense app supports all the HomeKit profiles and supports triggers. You would first need to setup a scene for what you would like the result to be and then you can set up a trigger based of a number of different things. This can be the state of a device (Ex: I turned off this light, now I want this scene to run to turn off all the other lights) or it can be a Timer (Ex: Its 1 AM and I am going run a scene to turn off certain lights).
Let me know if you have any other questions about this, happy to help!