The code was incomplete and invalid. This PR extends the example code with turn_on/turn_off, brightness control and a display name. This is the piece of code I was looking for when I experimented with adding a platform.