Close

Results 1 to 8 of 8
  1. #1
    DF VIP Member Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,317
    Thanks
    238
    Thanked:        792
    Karma Level
    534

    Default Home automation, sonoff and MQTT

    Ive bought a sonoff and am going to flash the fw with something (possibly tasmota).

    I still need to dig into MQTT broker and the Home Automation sw

    Has anyone done the MQTT broker and used Home Automation?

    Looking to get some hints on where to start...

  2. #2
    DF VIP Member flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    474

    Default Re: Home automation, sonoff and MQTT

    Not so much using MQTT at the moment but have Homematic thermostats and a few smart switches set up.

    Using Homeassistant as a central hub for it all. All set up with an nice UI for phones and commands via Google Homes.

    Not so much automation beyond that at the moment - standard heating shedules etc but in time may move on to stuff like presence detection.

  3. #3
    DF VIP Member Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,317
    Thanks
    238
    Thanked:        792
    Karma Level
    534

    Default Re: Home automation, sonoff and MQTT

    Whats the online server that is between the devices / switches and home assistant?

    I thought you needed a proxy or broker like MQTT?

  4. #4
    DF VIP Member flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,696
    Thanks
    11
    Thanked:        131
    Karma Level
    474

    Default Re: Home automation, sonoff and MQTT

    Depends on the device I guess. The homematic devices have their own hub that Home Assistant interacts with via the network.
    Similarly my TP-Link smart switches connect via wifi and have a home assistant component that connects over the network. Some Yeelight wireless lights I have are the same.
    This all happens locally.
    The Sonoff stuff generally gets integrated via MQTT but even then you can run your own broker locally. If you're looking to do stuff from outside the house you'll need to open ports on the router somewhere along the line, external MQTT broker or not.

  5. #5
    DF Super Moderator
    evilsatan's Avatar
    Join Date
    Jul 2004
    Location
    Essex
    Posts
    20,079
    Thanks
    1,105
    Thanked:        3,241
    Karma Level
    1541

    Default Re: Home automation, sonoff and MQTT

    Will follow this with interest, I've started to install some bits but I chose Alexa, Nest and have some smart bulbs (one Philips and some ikea). I have some TP-Link plugs but not worked out where to put them yet.

    I think I will set up a ubuntu VM to run some code which should allow voice control of my TV, I hope I can then add it to routines in Alexa.


  6. #6
    DF VIP Member DavidF's Avatar
    Join Date
    Apr 2005
    Location
    GLASGOW
    Posts
    994
    Thanks
    389
    Thanked:        743
    Karma Level
    312

    Default Re: Home automation, sonoff and MQTT

    I use these flashed with tasmota. I have a samsung smartthings hub and it all integrates very well. They control a few lamps. 1 light fitting, Couple of heaters (very small 2kw) and a couple of fans. Because I have smartthings hub and the smartthings community have created webcore I have all sorts of "rules" for some of the sonoff's - eg - the heater comes on when room temp < 16 degrees and goes off at 20. Couple of table lamps go on at 30 mins before sunset.....ect ect. All done as cheap as chips and works well for me.
    Also have alexa and everything responds to voice control but to be honest we use alexa mainly for music....but the odd time its kinda cool to tell her to switch on the living room light ect.

  7. #7
    DF VIP Member Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,317
    Thanks
    238
    Thanked:        792
    Karma Level
    534

    Default Re: Home automation, sonoff and MQTT

    Quote Originally Posted by DavidF View Post
    I use these flashed with tasmota. I have a samsung smartthings hub and it all integrates very well. They control a few lamps. 1 light fitting, Couple of heaters (very small 2kw) and a couple of fans. Because I have smartthings hub and the smartthings community have created webcore I have all sorts of "rules" for some of the sonoff's - eg - the heater comes on when room temp < 16 degrees and goes off at 20. Couple of table lamps go on at 30 mins before sunset.....ect ect.
    The sonoff flashing I think is straightforward (famous last words), but i am yet to get my head around what i need to do from the switch / sonoff / device and the app that lets me control them. Any advice?
    Its the MQTT / broker side that i havent sussed out yet...

  8. #8
    DF VIP Member DavidF's Avatar
    Join Date
    Apr 2005
    Location
    GLASGOW
    Posts
    994
    Thanks
    389
    Thanked:        743
    Karma Level
    312

    Default Re: Home automation, sonoff and MQTT

    Whoa there cowboy you have me confused with someone who knows wtf they are doing lol. Sonoff comes with an app with which you can control your device from anywhere in the world - http://sonoff.itead.cc/en/ you can also control your sonoff with voice using the software that comes with it if you have google home or alexa...

    Now if you want a more full choice of ways to control the sonoff (more features basically) then you need to look at either 1. Buying a samsung smarthings hub to control your sonoff with (As I have done which gives me the features i mentioned above...it also has the added bonus of spending a mini fortune on "stuff" as you begin to automate your house)
    Stuff like having things go off/on when someone arrives home for example
    Having things go off/on at sunrise/sunset or indeed any pre time you want
    Having things happen when it's going to rain/shine or whatever weather event you choose
    That's what the hub can do for you BUT you can also do it yourself without a hub
    So 2nd way is build yourself a home automation server with something like Domoticz
    This is where I learned about the sonoff https://www.letscontrolit.com/forum/...f27833a2d61d36 - now on there they talk about their own firmware espeasy which was the 1st one to make the sonoff compatible with other ha servers (well 1st one i heard of lol) but now Tasmota has taken the bat with more firmware features and updates also covers more itead/sonoff products than esp easy seem to ....but im sure they will both be good.
    Hope that kind of gives you a few ideas.

    Thanks to DavidF

    MHP (28th January 2018)  


Similar Threads

  1. Home automation, sonoff and MQTT
    By Zippeyrude in forum Home Audio/Video, Electronic Toys & Gadgets
    Replies: 7
    Last Post: 27th January 2018, 08:29 PM
  2. Home Automation. What to use?
    By Rick Sanchez in forum Home Audio/Video, Electronic Toys & Gadgets
    Replies: 33
    Last Post: 29th November 2014, 05:43 AM
  3. Home Automation: AngelBlocks : Lifestyle Automation Anyone Can Use [Kickstarter]
    By Rick Sanchez in forum Home Audio/Video, Electronic Toys & Gadgets
    Replies: 10
    Last Post: 22nd January 2014, 08:37 PM
  4. Home Automation
    By Geko in forum Home Audio/Video, Electronic Toys & Gadgets
    Replies: 33
    Last Post: 23rd September 2013, 07:20 PM
  5. Home automation at its best!
    By urbsy in forum The Dog and Duck
    Replies: 10
    Last Post: 19th December 2005, 04:09 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •