Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. $8 Lamp (Outlet) "Smart Plug" Module

$8 Lamp (Outlet) "Smart Plug" Module

Scheduled Pinned Locked Moved My Project
109 Posts 34 Posters 97.5k Views 13 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • petewillP Offline
    petewillP Offline
    petewill
    Admin
    wrote on last edited by
    #26

    @DanielD said:

    Do you have any ideia how I do this?

    No, sorry. It would probably be easier for you to use an existing controller that already works with MySensors though. Check out the list here: http://www.mysensors.org/controller/

    I'm sure some of them already have phone apps but I'm not sure which ones. I haven't looked at anything other than Vera.

    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DanielD
      wrote on last edited by DanielD
      #27

      @petewill
      mm, I will install one of these in my PC and I will buy a ethernet bord, and make a gateway ethernet.
      But what I do not understand is How the Web Site will send a rf signal from arduino
      Okay I know I should connect the ethernet bord in arduino and rf transmisor, but how do
      sensor received this signal I know I will put rf receiver inside.
      But the code of ethernet gateway doesn't have nothing about the transmissor.
      If you don't understand something ask me.
      Thx

      1 Reply Last reply
      0
      • petewillP Offline
        petewillP Offline
        petewill
        Admin
        wrote on last edited by
        #28

        @DanielD said:

        But the code of ethernet gateway doesn't have nothing about the transmissor.

        Right. That's where the controller comes in. I use Vera so when I press the on button in the Vera interface it sends the command through the gateway to the sensor (smart outlet).

        If you are try do it cheaply you may want to look into openhab. I haven't used it but I know it runs on a raspberry pi.

        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DanielD
          wrote on last edited by
          #29

          @petewill

          Hmm,Okay
          I will try make a device type Vera because,in my country doesn't exists.
          If I buy at site and ask to ship me Will cost very expensive, therefore I try make a device similar to vera :/
          Could you help me?
          Thx

          A 1 Reply Last reply
          0
          • D DanielD

            @petewill

            Hmm,Okay
            I will try make a device type Vera because,in my country doesn't exists.
            If I buy at site and ask to ship me Will cost very expensive, therefore I try make a device similar to vera :/
            Could you help me?
            Thx

            A Offline
            A Offline
            andriej
            wrote on last edited by
            #30

            @DanielD just get yourself an raspberry.

            :-)

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DanielD
              wrote on last edited by
              #31

              @andriej
              I have a raspberry, but I think use only arudino.

              1 Reply Last reply
              0
              • petewillP Offline
                petewillP Offline
                petewill
                Admin
                wrote on last edited by
                #32

                @DanielD said:

                therefore I try make a device similar to vera :/
                Could you help me?

                Unfortunately I don't know how to do that. The best thing I can suggest is to use one of the existing controllers. If you already have a raspberry pi there is free software for it. Try one of those. That way you don't have to recreate anything.

                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DanielD
                  wrote on last edited by
                  #33

                  @petewill

                  Hmm,
                  Okay, but I think I don't understand is how I will do the communication between getway ethernet and another device.

                  1 Reply Last reply
                  0
                  • petewillP Offline
                    petewillP Offline
                    petewill
                    Admin
                    wrote on last edited by
                    #34

                    @DanielD said:

                    I don't understand is how I will do the communication between getway ethernet and another device.

                    You probably want to check out this: http://www.mysensors.org/about/ and this: http://www.openhab.org/

                    It will will take some learning and I suggest you start out small. See if you can get OpenHab up and running first. When you understand that you can start using MySensors. I had my Vera for a few months before I started learning MySensors. It was helpful to learn the controller before MySensors.

                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      almj
                      wrote on last edited by
                      #35

                      Thank you very much for detailed description!
                      But I cannot understand how to send commands from OpenHab to turn relay on and off. Please direct me.
                      After a long time I can finally get the messages from sensors via serial connection, but not the other way.
                      Cheers!

                      petewillP 1 Reply Last reply
                      0
                      • A almj

                        Thank you very much for detailed description!
                        But I cannot understand how to send commands from OpenHab to turn relay on and off. Please direct me.
                        After a long time I can finally get the messages from sensors via serial connection, but not the other way.
                        Cheers!

                        petewillP Offline
                        petewillP Offline
                        petewill
                        Admin
                        wrote on last edited by
                        #36

                        @almj I use Vera as my controller so I'm not sure how to set up OpenHab. I know there are some instructions for setting it up here on the forum. If you're still stuck you may get better responses by posting to a new topic. Sorry I can't be more help.

                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          bytedeez
                          wrote on last edited by
                          #37

                          Is it really that difficult or expensive to get old chargers?
                          I found 10 for $10.99 on ebay.
                          :stuck_out_tongue:

                          petewillP 1 Reply Last reply
                          0
                          • B bytedeez

                            Is it really that difficult or expensive to get old chargers?
                            I found 10 for $10.99 on ebay.
                            :stuck_out_tongue:

                            petewillP Offline
                            petewillP Offline
                            petewill
                            Admin
                            wrote on last edited by
                            #38

                            @bytedeez Nah, it's not that hard or expensive. It's always nice to get them free when you can though :)

                            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              Douglas
                              wrote on last edited by
                              #39

                              Hello,

                              Which is connected to the relay in the diagram???

                              Thanks,

                              Douglas (Brasil)

                              petewillP 1 Reply Last reply
                              0
                              • D Douglas

                                Hello,

                                Which is connected to the relay in the diagram???

                                Thanks,

                                Douglas (Brasil)

                                petewillP Offline
                                petewillP Offline
                                petewill
                                Admin
                                wrote on last edited by
                                #40

                                @Douglas I just used the standard wiring from the build page here: http://www.mysensors.org/build/relay

                                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                1 Reply Last reply
                                0
                                • sundberg84S Offline
                                  sundberg84S Offline
                                  sundberg84
                                  Hardware Contributor
                                  wrote on last edited by sundberg84
                                  #41

                                  Hi @petewill!
                                  I made this :) Great video :+1:

                                  I think i get bad reception or something because it works the first 5-6 times and then nothing...

                                  In the end you describe an cat5 wire added as antenna because of bad reception.
                                  Do you remove the plastic/shielding so its just copper?
                                  Im afraid to short anything out with a long uncovered antenna if thats the case...

                                  and if i hear you right its 3,28 inches which should be 33,31200 millimeters on the antenna?

                                  Controller: Proxmox VM - Home Assistant
                                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                  petewillP 1 Reply Last reply
                                  0
                                  • sundberg84S sundberg84

                                    Hi @petewill!
                                    I made this :) Great video :+1:

                                    I think i get bad reception or something because it works the first 5-6 times and then nothing...

                                    In the end you describe an cat5 wire added as antenna because of bad reception.
                                    Do you remove the plastic/shielding so its just copper?
                                    Im afraid to short anything out with a long uncovered antenna if thats the case...

                                    and if i hear you right its 3,28 inches which should be 33,31200 millimeters on the antenna?

                                    petewillP Offline
                                    petewillP Offline
                                    petewill
                                    Admin
                                    wrote on last edited by
                                    #42

                                    @sundberg84 said:

                                    Hi @petewill!
                                    I made this :) Great video :+1:

                                    I think i get bad reception or something because it works the first 5-6 times and then nothing...

                                    This could also be a power or a wiring issue. But, the antenna is an easy modification so it wouldn't hurt to try this first. Another test is to move the device closer to your gateway. If it still stops after 5-6 times then it probably isn't communication issues.

                                    In the end you describe an cat5 wire added as antenna because of bad reception.
                                    Do you remove the plastic/shielding so its just copper?
                                    Im afraid to short anything out with a long uncovered antenna if thats the case...

                                    No, I left the shielding on the wire. Sorry, I should have specified that.

                                    and if i hear you right its 3,28 inches which should be 33,31200 millimeters on the antenna?

                                    I think 3.28 inches is 83.312 millimeters (at least that's what google says it is).

                                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                    H 1 Reply Last reply
                                    1
                                    • AWIA Offline
                                      AWIA Offline
                                      AWI
                                      Hero Member
                                      wrote on last edited by
                                      #43

                                      I have these lockups all the time and have not been able to get rid of them. I tried:

                                      • separated power supplies
                                      • capacitors
                                      • shielding

                                      Most probably (in my case) is the spike introduced by the coil of the relay. This somehow puts the radio in a sleep (or half dead) state. By moving away from mechanical to triac (ssd) 'relays' I was finaly able to solve it. If you find a solution please post.

                                      petewillP 1 Reply Last reply
                                      0
                                      • sundberg84S Offline
                                        sundberg84S Offline
                                        sundberg84
                                        Hardware Contributor
                                        wrote on last edited by sundberg84
                                        #44

                                        @AWI Hmm, ok... will give it a try and report back if i find anything...

                                        It seems to be both range and spikes? The sensor works great without anything connected to 240v out but as soon as i connect anything like a lamp it fails within 5 on/off. Also when i move it close to the gw but then atleast it works without any 240v connected.

                                        The SSD relays, is that something like this?
                                        http://www.ebay.com/itm/1pcs-5V-DC-1-Channel-Solid-State-Relay-Board-module-High-Level-fuse-for-arduino-/191563980850?pt=LH_DefaultDomain_2&hash=item2c9a1a6032

                                        Any downsides with SSR relays?

                                        Controller: Proxmox VM - Home Assistant
                                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                        AWIA 1 Reply Last reply
                                        0
                                        • sundberg84S sundberg84

                                          @AWI Hmm, ok... will give it a try and report back if i find anything...

                                          It seems to be both range and spikes? The sensor works great without anything connected to 240v out but as soon as i connect anything like a lamp it fails within 5 on/off. Also when i move it close to the gw but then atleast it works without any 240v connected.

                                          The SSD relays, is that something like this?
                                          http://www.ebay.com/itm/1pcs-5V-DC-1-Channel-Solid-State-Relay-Board-module-High-Level-fuse-for-arduino-/191563980850?pt=LH_DefaultDomain_2&hash=item2c9a1a6032

                                          Any downsides with SSR relays?

                                          AWIA Offline
                                          AWIA Offline
                                          AWI
                                          Hero Member
                                          wrote on last edited by
                                          #45

                                          @sundberg84 I have never found these before. Sounds like an interesting option. Made myself boards like these
                                          The 'downside' of these is that there can be a leak voltage when the output is left open.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          12

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular