Boring Sunday …

… well, let’s do something useful and automatise something!
Hey, there’s a led bird thing and a led stripe in our pergola. Hehe … fire away !!

2016-05-29 19.52.03

Since I am a big ESPimatic fan, I set it up with the wemos D1 mini and a 2x 5v relay. Fortunately I had a little enclosure lying around with the inside diameters of 6x9cm. I cut a mounting plate out of some Plexiglas where I fixed the wemos, the relay and a simple power distribution pcb. The advantage of this power distribution pcb – you can easily change broken parts without soldering and you can easily add some other hardware. I like it and it’s so simple 🙂

2016-05-29 15.24.51

Here’s the ready made case already mounted to the wall
2016-05-29 19.44.17 2016-05-29 16.39.43

And of course the finish 😉
2016-05-29 19.48.46

The connected LED stripe was set up very simple – I just used a 12v psu and connected the stripe directly to it. The outlet where the 12v psu is plugged into is switched with one of the relays. The other relay is switching 3v3 directly from the wemos for the bird lighting.

2016-05-29 21.55.17

The powering of the wemos is done by a simple 5v 2A psu over a 2.1mm connector on the left side. I decided to not use the USB port for powering, since I use my well working power distributor adapter. On the top of the case I drilled a hole so that I am able to reach the USB port for an emergency case (if a reflash is neccesary).

In pimatic i am having two shell switches, that are talking to the wemos over the ESPimatic api.

       "id": "espimatic_pergola_relais1",
       "name": "Pergola LED Beleuchtung",
       "class": "ShellSwitch",
       "onCommand": "curl --silent --data 'action=relay1&value=on'",
       "offCommand": "curl --silent --data 'action=relay1&value=off'",
       "getStateCommand": "curl --silent --data 'action=relay1&value=status'",
       "interval": 60000
       "id": "espimatic_pergola_relais2",
       "name": "Pergola LED Vögel",
       "class": "ShellSwitch",
       "onCommand": "curl --silent --data 'action=relay2&value=on'",
       "offCommand": "curl --silent --data 'action=relay2&value=off'",
       "getStateCommand": "curl --silent --data 'action=relay2&value=status'",
       "interval": 60000

On the pimatic gui it looks like that :


Thinking of using the analog port of the wemos for some kind of rain detection sensor.
Maybe some day …



Leave a Reply

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