Fire a scene when changed mode

I would like to fire up a scene when the house mode is changed. For example, when I set the mode to away I would like something to happen and vice versa when I set it to home.

What’s the best way to do this?

Look at the HouseModes Plug in, I believe it does what you are locking for.

House modes plugin, PLEG or for changing modes as the result of a scene you could use a luup code command