Close

Results 1 to 8 of 8
  1. #1
    DF Jedi Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,314
    Thanks
    237
    Thanked:        791
    Karma Level
    495

    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 Jedi flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,695
    Thanks
    11
    Thanked:        131
    Karma Level
    409

    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 Jedi Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,314
    Thanks
    237
    Thanked:        791
    Karma Level
    495

    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 Jedi flipper321's Avatar
    Join Date
    Feb 2003
    Location
    Essex
    Posts
    2,695
    Thanks
    11
    Thanked:        131
    Karma Level
    409

    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
    19,951
    Thanks
    1,093
    Thanked:        3,184
    Karma Level
    1538

    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 PlaYa DavidF's Avatar
    Join Date
    Apr 2005
    Location
    GLASGOW
    Posts
    981
    Thanks
    386
    Thanked:        716
    Karma Level
    247

    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 Jedi Zippeyrude's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    4,314
    Thanks
    237
    Thanked:        791
    Karma Level
    495

    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 PlaYa DavidF's Avatar
    Join Date
    Apr 2005
    Location
    GLASGOW
    Posts
    981
    Thanks
    386
    Thanked:        716
    Karma Level
    247

    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 - [Only registered and activated users can see links. ] 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 [Only registered and activated users can see links. ]
    This is where I learned about the sonoff [Only registered and activated users can see links. ] - 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) 


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
  •