I have a Home Assistant Yellow and want to add a Raspberry Pi to it as a device.
I want to make the Pi control a LED and expose the related PWM entity to Yellow.
I know Python, but ideally, I want to use node.js to implement the above. According to my knowledge, I need to implement some sort of integration for the Pi to be added to Yellow.
You can use the remote_rpi_gpio integration to access a GPIO pin from your Raspberry Pi, if you have configured the remote Raspberry Pi before to allow this - for more information please read the Raspberry Pi Remote GPIO - Home Assistant. It also contains a link to the documentation on how to setup the remote Raspberry Pi, which has the LED connected.
Even though I wanted to use my Pi because it’s close to the desired position of the LED, it seems that it’d take too much work to customize the Raspberry Pi Remote GPIO code to do PWM, so I’ll use an ESP32, as suggested.