You need to create a sensor folder inside the custom_components folder. The hue.py goes there. I am using the component for the dimmer so I can’t help you on the motion sensor.
I would start reading https://community.home-assistant.io/t/hue-motion-sensors-remotes-custom-component/ You can search through that thread for motion related configs.
1 Like