Assembled MQTT Lightswitch – version 1

Really quick post showing latest progress of the fancy light switch.

What do you think? A bit too colourful? It is a bit colourful for my liking. On the other hand the colours do add meaning to the buttons:

blue = presets (obvious)
red = all off (haven’t added this to display yet, you can see below there’s a nice space for the words ALL OFF)
green = cycle modes (light, music, heating, weather forecast, electric blanket mode, etc.)

So yes – useful to tell the babysitter “just press green button to change music”.

Lots of revisions to make to the design. I’ll keep you updated!

(Of course, the whole thing fits in a 47mm wall box with fancy screwless brushed chrome metal faceplate on top of it!)

    

20 comments

  1. Keeping an eye on this every day – cannot wait until you have finished – already saving up. What a brilliant idea! Love the home made PCB and stuff!

  2. James Mc Bride

    Looking really really good Mat! So Impressed that you’ve managed to cram so much into a 47mm backbox.

    I’ve been working on my own relay controller shield this week, had it all neatly soldered up, connected it all up… BANG… that’s two transistors blown… so thank you for the inspiration to crack-on further!

  3. Ouch! Crazy to think that my original plan was to include all of that plus 4 channels of triac dimming in a double wall socket! Clearly that was *never* going to happen… 😉

  4. Thanks!

  5. Love everything about this project – hurry up with the demo video!! Looking forward to seeing the finished product mate – awesome work.

  6. Been watching your progress for a while, alongside the building of my own system. I really like what you have done, integrating the music control with the lighting control etc.
    Good work!

  7. It is looking fantastic, I would love to see a video of it in action and more pictures of it. I am trying to do a similar light switch, would you be able to share any of the code used as I am quite new to programming the arduino and could do with a few pointers.

    I assume you are powering it with POE still, I was looking into the way LightwaveRF switches work by drawing some power from the lighting circuit. I seem to keep coming up with problems with it so might go down the POE route.

  8. Looking good.
    Couple of questions.
    Are they standard LED’s in the switches or are you useing RGB LED’s? Dimmable?
    If only a few of the presets are defined will just the corisponding switches light up?

  9. Hi Mat,

    Have you considered the long term reliability of the switches soldered onto the circuit board? I just wonder if over time the pressure of pressing the buttons might cause cracks in the solder joints?

  10. Just wondering what circuit you use the triacs with to dim lighting?

  11. Sorry for delay responding to your comment! The switches have LEDs built-in, separate pins for the LEDs which means technically they can be dimmed using PWM from an Arduino. I haven’t implemented PWM dimming on the switch LEDs myself as I have a series of timeouts that dims the OLED display, turns the switch LEDs off, then turns the OLED off in that order.

    To answer your question about whether corresponding switches light up, basically yes. They are all individually controllable. That said I haven’t implemented any controls in code, and all the LEDs come on when you touch / control the device. I’ve been thinking of an intuitive way that I could have only one of them come on (e.g. the currently selected preset is lit up and the others aren’t) but don’t like anything I’ve thought of yet! I’d be interested to hear other ideas!

  12. Fantastic work Mat!

    May I ask where you got those switches from? They look perfect for one of my projects!

  13. Well done on a superb project! I’m in the middle of a HA project (Z-Wave) and would love to have a few of these around my house. I had considered using wall-mounted Android tablets, but they are too complicated when all I want is a few lighting presets and the ability to control Squeezeplay.
    One suggestion I would make is to consider including an IR receiver for remote control. I use a Logitech Harmony to activate various scenes using an IR to TCP/IP converter, saves me getting up off the couch to change the lighting!
    Also, I bit the bullet and bought proper PoE switches, they have really dropped in price recently. Look at some of the TP-Link range.

  14. Hi Pat. I considered wall-mounted tablets too, but I prefer to have tactile feedback (clicky button, a knob that you can turn, etc.) Agree re proper PoE, I bought a second-hand 48 port Dell switch, nice bit of kit but I can’t use it with my current setup as I’m doing poor-man’s PoE implementation…

  15. Thanks John, yes the switches are from RJS Electronics. See http://www.ledswitches.co.uk. I went for the PB614s. Ended up buying them from TME.eu as price was very keen on there.

  16. Great work. When will you have an update with some finished pictures or video?

  17. Might be a while away from that one. I’m still renovating 🙂

  18. Quite simply….I’m IN!

    You’ve no idea how much I want something like this! If you need a beta tester, assembler, tea boy or anything then let me know!

  19. I’m with Noel on that one!

    🙂

  20. Hi Mat.

    Could you let me know where you got the brushed steel face plate done?

    I’m having a hard dime finding somewhere that’s reasonable priced.

    Cheers
    Huw

Leave a Reply

Your email address will not be published. Required fields are marked *