That’s normal ‘danielmurtagh’.
For reasons I don’t understand, an entity is not created as such for the motion sensor. To use the sensor you need to monitor the event bus for a zha-event produced by the button.
Here’s a Node-RED flow that I created to test a button:
[{"id":"be4429a7.7b2b3","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"3a6725d4.62d622","type":"switch","z":"be4429a7.7b2b3","name":"","property":"payload.event.command","propertyType":"msg","rules":[{"t":"eq","v":"toggle","vt":"str"},{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":270,"y":300,"wires":[["85ee1c58.53547"],["61570751.41b5d"],["3a5eeed8.15850a"]]},{"id":"46fd050.9989afc","type":"server-events","z":"be4429a7.7b2b3","name":"Button","server":"93de20d5.59f72","event_type":"zha_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":70,"y":200,"wires":[["4c499f2f.00b788"]]},{"id":"61570751.41b5d","type":"api-call-service","z":"be4429a7.7b2b3","name":"Effect 2","server":"93de20d5.59f72","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.lohas_bulb2","data":"{\"effect\":4,\"profile\":\"relax\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":480,"y":300,"wires":[[]]},{"id":"85ee1c58.53547","type":"api-call-service","z":"be4429a7.7b2b3","name":"Red","server":"93de20d5.59f72","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.lohas_bulb2","data":"{\"color_name\": \"red\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":470,"y":220,"wires":[[]]},{"id":"3a5eeed8.15850a","type":"api-call-service","z":"be4429a7.7b2b3","name":"Off","server":"93de20d5.59f72","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.lohas_bulb2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":470,"y":380,"wires":[[]]},{"id":"4c499f2f.00b788","type":"switch","z":"be4429a7.7b2b3","name":"Button 2","property":"payload.event.unique_id","propertyType":"msg","rules":[{"t":"eq","v":"00:12:4b:00:1c:d6:10:45:1:0x0006","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":120,"y":300,"wires":[["3a6725d4.62d622"]]},{"id":"93de20d5.59f72","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true}]
(I thoroughly recommend that you use node-red. I find it far easier to use than YAML, with its paranoid indentation!)
Jim