Once your connected to your newly installed MQTT Broker, from MQTT.fx subscribe to # and you should start seeing telemetry from your Sonoff's in the subscription tab. Once you have your Sonoff devices flashed with Tasmota, have them on the network, can access them and have given them a unique name then you should be able to control them directly from MQTT with a tool like MQTT.fx. Devices can be both publishers and subscribers and this is often the way it works out. The premise of MQTT is simple There are publishers (devices that send information) and subscribers (devices that listen for information).
#Homeseer switch install
You'll need to install and test a MQTT broker on your local network in order to make any of this work. MQTT is a service provided by a Broker such as Mosquitto which is open source, multi-platform and very stable but there are many more and the choice is very much yours. Since then its been developing and is now an accepted standard at version 3.1.1. MQTTīack in 1999 IBM came up with MQ Telemetry Transport Protocol to allow for lightweight communication between devices such as sensors in a queue-able and reliable manner. I won't go over the flashing process here because there are enough guides on the Web covering this. Personally, even though I've used SonOTA, I still prefer the hard wired approach. Flashing your Sonoff device depends on which device but most can be flashed 'over the air' using SonOTA but others require a direct connection to the conveniently placed programming connections.
#Homeseer switch full
The firmware is GPL and full source is available for those (like me) who want to tinker with it to support other devices quickly and easily such as NodeMCU. Tasmotaĭeveloped by Theo Arends, the Tasmota firmware runs on the ESP8266 and connects your Sonoff devices to MQTT. I have now received, flashed and integrated every Sonoff variant and all work just fine which is nice. Whilst this is ok for some, being able to link these directly to our Homeseer is a preferred option. Out of the box the Sonoff device comes with custom firmware that requires an 'app', Internet access and a service that's hosted in China. Anyway, since the 'basic' ITEAD now have a comprehensive range of Sonoff devices, from the Basic, the Dual and the 4 Channel to the elegant touch wall switches and we'd be crazy not to want to hook these up to our HA system. If you actually add up the cost of the components its hard to make one for the price of these units but that's the china effect I guess. When you look at the Sonoff Basic, which is essentially a power supply, ESP8266 and a relay then you have a neat wifi switch in a small package. ITEAD from Shenzhen China have been around for a while now and their Sonoff range of control devices are not only cheap but actually pretty good. This guide assumes you have some basic electronics and programming knowledge.
#Homeseer switch how to
This article describes how to connect Sonoff devices (or any device with Tasmota or similar firmware) to Homseer via a Broker.
#Homeseer switch code
Regardless its still a great system for anyone who likes getting down and dirty with the code to achieve exactly what they want for HA. After about 4 weeks of using Homeseer it became clear that whilst the power is there to interface with the world there are a limited number of 'Plug-ins' available and some of those appear to be no longer maintained. Homeseer has a lot of positives and a few negatives but the real power comes from the fact that (a) the product allows you to write VB script to control just about anything and (b) via Plug-ins you can interface with pretty much any IP based device fairly easily. Sonoff + Tasmota + MQTT + Homeseer IntegrationĪ few weeks ago I downloaded a trial of Homeseer whilst investigating replacements for our ageing HAI OmniPro II and temperamental Contorl4 System.