Just getting started here trying to create some custom components. I read the examples, but did not find them especially helpful.
I thought the best way to get started would be to modify an existing component, so I went to github and got the source for MQTT Light and placed it in my custom_components/light directory in a file named my_mqtt.py
I modified my yaml file which already had a working mqtt light entry and just changed the platform line from mqtt to my_mqtt like this:
light:
platform: my_mqtt
command_topic: "office/rgb1/light/switch"
Upon restarting hass, my home-assistant.log file has this cryptic error message:
16-09-07 06:09:06 homeassistant.bootstrap: Invalid config for [light.my_mqtt]: not a valid value for dictionary value @ data['platform']. Got 'my_mqtt'
Any clue what I might be missing?