I was going through the logs of my hass install and I noticed lines like below:
You are using a custom component for media_player.yamaha_ynca which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
So indeed I have a few custom components and I was wondering if I should submit those to be included with Hass. I did not do this in the beginning because I was learning python and basically just porting my old scripts to Hass. But these components have been working for me for a long time now and the for the media_player.yamaha_ynca
component got pretty good (I think) and I could probably fix it up a bit more to meet the Hass standards.
I find it hard to decide if my custom components would be useful for other people and I could not find guidelines on this.
FYI I have the following custom components:
media_player.yamaha_ynca
This is a mediaplayer component for Yamaha receivers that support the YNCA protocol (this is a serial port protocol)cover.rpi_gpio_pulse
This is a cover component for my projector screen. The existing cover.rpi_gpio component seems to be geared to a garage door opener which did not fit my needs. I am basically pressing the buttons of my remote control with the RPi so I “press” the button with an IO line for a few 100ms and release it again (hence the pulse in the name).binary_sensor.rpi_gpio_poll
This is basically a copy of binary_sensor.rpi_gpio but instead just polls the state of the specified input pins every second instead of using the events. I never got the events version working reliably it would regularly end up in the wrong state and was very hard to get it in sync again. So I made the polling variant since that is what my old script used to do and that never failed me. It could be that there is some bouncing on the electronics side causing this issue but not sure how to measure/fix it (I tried the debounce settings on RPi gpio).
Hmm, after writing this down I guess the most useful would be the media_player.yamaha_ynca component. But does Hass need yet another Yamaha component?
There are already 2 available. Especially one that only work on Serial ports, so only for older models (mine is from 2011 I think)
Edit: here is link GitHub - mvdwetering/custom_components: Custom components for Home Assistant