I have an LED hooked up to a microcontroller that is controlled by my own custom RF protocol, and I want to control the LED with homeassistant. I’ve got a script that I can run on my desktop to turn it on/off/dim/get current brightness, how do I make this available as a light in homeassistant which is running on my rPi?
Can I make a rest endpoint to expose this? What’s the API? Should I be looking in to a remote entity? Do I need to figure out how to make an addon (even though I just want to use the existing “light” functionality)? I’m having trouble finding any kind of example doing something custom like this as opposed to hooking up a light that is already integrated with homeassistant.