Run LUUP code when change Mode

Hi

I have a piece of LUUP code that i need to run once every time i change Mode.
I.e from Mode “Home” to “Night”

Can this be done somehow?

/J

You can use the house modes plugin … which internally polls, or you can poll the house modes in your onw LUA code.