Node red help config

Please help I am trying to set up node red to fire a call service.

I have a door sensor, I want node red to to check my dinning room lights to see if they are off and if not, turn them off when the sensor changes to open.

I can get nod red to debug and work as far as the changed state of the door sensor to open but (nothing after that). I have videos of me going through each step, I can email them to any one who is will to tell me what I’m doing wrong. Community won’t let me post them

Please post a picture of your flow AND include the code you are using (Export from node-red)

Once exported (copied to the clipboard) you can past it here into a preformatted text block (See section 11).

[{“id”:“bf40f2b23ce460ab”,“type”:“server-state-changed”,“z”:“6da83e2f30ea3673”,“name”:“door open”,“server”:“a23df272.eea4”,“version”:5,“outputs”:2,“exposeAsEntityConfig”:“”,“entityId”:“binary_sensor.garage_1_opening”,“entityIdType”:“exact”,“outputInitially”:false,“stateType”:“str”,“ifState”:“open”,“ifStateType”:“str”,“ifStateOperator”:“is”,“outputOnlyOnStateChange”:true,“for”:“0”,“forType”:“num”,“forUnits”:“minutes”,“ignorePrevStateNull”:false,“ignorePrevStateUnknown”:false,“ignorePrevStateUnavailable”:false,“ignoreCurrentStateUnknown”:false,“ignoreCurrentStateUnavailable”:false,“outputProperties”:[{“property”:“payload”,“propertyType”:“msg”,“value”:“”,“valueType”:“entityState”},{“property”:“data”,“propertyType”:“msg”,“value”:“”,“valueType”:“eventData”},{“property”:“topic”,“propertyType”:“msg”,“value”:“”,“valueType”:“triggerId”}],“x”:80,“y”:100,“wires”:[[“5d20e909152de62f”],]},{“id”:“a23df272.eea4”,“type”:“server”,“name”:“Home Assistant”,“addon”:true}]

I could not import your code to test it - it is not properly formatted into a code block.

Or use this: