Movie mode lighting automation

Add three nodes:

Use an Event State node to monitor Kodi’s state.
Link that to a Current State node that checks your input boolean. Set the nodes halt if property to false.
Link to another Current State node that checks the state of your lights. Set the nodes halt if property to off.
Link to whatever you want to do if the input boolean and lights are both on.