Floor plan, combine states of binary sensors

Hello, I have a 3d map in my home assistant, and I have configured on the map that the room lights up in one color when the door is opened, but I would like it to only light up if the door is opened and if the motion sensor detects movement in the room (That is, being able to combine the two binary sensors, if the two states of both sensors are “on” to be able to illuminate the room)
Is there any way to do it ? Thanks in advance

I think you either have to create a group, or a template sensor combining the two

3D map… more info please :-)?