Month: May 2016

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' http://192.168.178.89/api",
       "offCommand": "curl --silent --data 'action=relay1&value=off' http://192.168.178.89/api",
       "getStateCommand": "curl --silent --data 'action=relay1&value=status' http://192.168.178.89/api",
       "interval": 60000
     },
     {
       "id": "espimatic_pergola_relais2",
       "name": "Pergola LED Vögel",
       "class": "ShellSwitch",
       "onCommand": "curl --silent --data 'action=relay2&value=on' http://192.168.178.89/api",
       "offCommand": "curl --silent --data 'action=relay2&value=off' http://192.168.178.89/api",
       "getStateCommand": "curl --silent --data 'action=relay2&value=status' http://192.168.178.89/api",
       "interval": 60000
     },

On the pimatic gui it looks like that :

Espimatic-Pergola2

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

Cheers

Chris

My first web blog – pimatic and how it made my day …

Hey guys and girl 😉

Welcome to my new web blog “how pimatic made my day 🙂
For over a year now I am part of the pimatic team and administrating the forum and facebook.

Now it’s time to try something new.
Here I will tell you my experiences with pimatic, hoping to inspire you (or maybe you inspire me ;))

Since I have no experience with Word Press and blogging I need to work in to it. This blog will get better after some time, when I have more experience.
Now have fun with this blog! Looking forward to have much fun with you and pimatic of course 🙂

Cheers
Chris