Amr Posted January 21, 2017 Share Posted January 21, 2017 Hello Everyone, Did someone played or tried these WiFi Wireless Smart Switch devices, they are incredibly affordable starting @ $5 a piece! https://www.itead.cc/smart-home.html They are pretty open and tons of people manage to re-flash them to even work locally, a C4 driver will add an amazing option and affordable one for many retrofit work ... Quote Link to comment Share on other sites More sharing options...
zaphod Posted September 8, 2017 Share Posted September 8, 2017 Bump. Has anyone ever looked at these? They look very interesting and seem to have interesting functionality and they are very cheap - as in outlet switches for $17, switch/relay for about $7. Quote Link to comment Share on other sites More sharing options...
David Posted October 24, 2018 Share Posted October 24, 2018 On 9/8/2017 at 6:59 PM, zaphod said: Bump. Has anyone ever looked at these? They look very interesting and seem to have interesting functionality and they are very cheap - as in outlet switches for $17, switch/relay for about $7. Yes. This is a good piece of kit. Open source hardware. Out of the box it requires that you use the Sonoff app and their AWS MQTT servers but you are able to put your own firmware on the device which opens it up eg. ESPurna or Tasmota. I have a full MQTT Bridge driver and Sonoff Relay driver that enables you to use your own MQTT Broker. Works a treat. Quote Link to comment Share on other sites More sharing options...
Amr Posted October 24, 2018 Author Share Posted October 24, 2018 5 hours ago, David said: Yes. This is a good piece of kit. Open source hardware. Out of the box it requires that you use the Sonoff app and their AWS MQTT servers but you are able to put your own firmware on the device which opens it up eg. ESPurna or Tasmota. I have a full MQTT Bridge driver and Sonoff Relay driver that enables you to use your own MQTT Broker. Works a treat. David, are these c4 drivers, did u develop them or some one did? From where I can get a copy to try them out? Ian tired of the Orvibo S20 l, they have good patches and bad ones and I need to take them out of my project and replace them by Sonoff’s ... Quote Link to comment Share on other sites More sharing options...
David Posted October 25, 2018 Share Posted October 25, 2018 These are drivers I've written myself. You need to flash the Sonoff kit with Tasmota or ESPurna, see https://github.com/xoseperez/espurna/wiki or https://github.com/arendst/Sonoff-Tasmota/wiki. You then need to setup an MQTT broker either locally or in the cloud, see https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-18-04. My driver does not currently support SSL so I use a local MQTT broker and rather than open firewall ports to it I bridge it with a cloud based broker eg. AWS IoT or Digital Ocean as above. I use MQTT Dash on my Android phone, https://play.google.com/store/apps/details?id=net.routix.mqttdash&hl=en_GB, which enables me to setup simple buttons etc. to issue commands to my Control4 system. I also have a simple Relay Light driver that allows you to connect lights up to Sonoff relays and they then appear as normal Control4 lights. Very good kit and very fast interface/control. If you would like to play with the drivers I have in beta then send me an email address and I'll email you the drivers. I assume you are able to install drivers on you Control4 system? Quote Link to comment Share on other sites More sharing options...
Dmitriy Posted October 25, 2018 Share Posted October 25, 2018 (edited) I'm very interesting in this topic Can you please send driver to my email thank you!!! Edited November 3, 2018 by Dmitriy Quote Link to comment Share on other sites More sharing options...
David Posted November 27, 2018 Share Posted November 27, 2018 On 10/24/2018 at 5:57 PM, Amr said: David, are these c4 drivers, did u develop them or some one did? From where I can get a copy to try them out? Ian tired of the Orvibo S20 l, they have good patches and bad ones and I need to take them out of my project and replace them by Sonoff’s ... See https://github.com/davidmassot/Berto Quote Link to comment Share on other sites More sharing options...
David Posted November 27, 2018 Share Posted November 27, 2018 On 10/25/2018 at 6:15 PM, Dmitriy said: I'm very interesting in this topic Can you please send driver to my email thank you!!! See https://github.com/davidmassot/Berto Quote Link to comment Share on other sites More sharing options...
Zuhair Posted November 28, 2018 Share Posted November 28, 2018 On 11/27/2018 at 12:45 PM, David said: See https://github.com/davidmassot/Berto This is really interesting! I installed Mosquitto broker on my Ubuntu home server, my dealer will install the drivers this week, USB adapter is on the way! I'm planning to test the Sonoff smart switches to light up the backyard when there is a motion and the system is armed. And maybe few beeps or a siren on the outdoor speakers! Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted November 28, 2018 Share Posted November 28, 2018 5 minutes ago, Zuhair said: This is really interesting! I installed Mosquitto broker on my Ubuntu home server, my dealer will install the drivers this week, USB adapter is on the way! I'm planning to test the Sonoff smart switches to light up the backyard when there is a motion and the system is armed. And maybe few beeps or a siren on the outdoor speakers! Great. You only need to install the Berto_Clould driver from GitHub, https://raw.githubusercontent.com/davidmassot/Berto/master/c4z/Berto_Cloud.c4z. You can install the remaining drivers from the Berto Cloud properties page. I've made some updates so make sure your dealer downloads the latest one when he goes to install. Have fun. Quote Link to comment Share on other sites More sharing options...
NOS4A2 Posted December 6, 2018 Share Posted December 6, 2018 David, Would you have a sample code of how to send a mqtt message? I am planning to send the status of my switches and dimmers to Home Assistant every time they change the state. I believe it won't be much different of how you send messages to Sonoff/Tasmota. Thanks in advance Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 6, 2018 Share Posted December 6, 2018 4 hours ago, NOS4A2 said: David, Would you have a sample code of how to send a mqtt message? I am planning to send the status of my switches and dimmers to Home Assistant every time they change the state. I believe it won't be much different of how you send messages to Sonoff/Tasmota. Thanks in advance You can publish messages to topics from my MQTT Bridge driver. The bridge needs to be registered to your MQTT broker, I use Mosquitto on a local Raspberry Pi but any platform will do, you could use AWS IoT services but then your going out to the Internet etc. Once the bridge is setup and logged into a broker you can publish messages from programming, I have enclosed screenshots. If on the other hand you would like to write your own Control4 drivers to interface with my MQTT Bridge then I can send you a sample driver that links to the bridge. Thanks David NOS4A2 1 Quote Link to comment Share on other sites More sharing options...
NOS4A2 Posted December 7, 2018 Share Posted December 7, 2018 Thanks a lot for the tips. I would love to have access to your code. I wonder if it will be possible to make my Control4, Smartthings, Hubitat and Home Assistant talk to each other through MQTT. All talking and living in peace... One can dream that someday all will have some embedded MQTT support. Quote Link to comment Share on other sites More sharing options...
NOS4A2 Posted December 7, 2018 Share Posted December 7, 2018 I am sorry, one more question. In the case of a dimmer, how would you send the the current light level? Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 7, 2018 Share Posted December 7, 2018 Luis, See enclosed. You can use any variable by referencing the device id and the variable name. You need to upgrade the MQTTBridge driver using the Force option on the properties page. Thanks David NOS4A2 1 Quote Link to comment Share on other sites More sharing options...
NOS4A2 Posted December 7, 2018 Share Posted December 7, 2018 Quick question: When programming and selecting the MQTT Bridge events, what the difference from DEVICE_MESSAGE_RECEIVED and GENERAL_MESSAGE_RECEIVED? Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 7, 2018 Share Posted December 7, 2018 The DEVICE messages are those messages received from subscribed topics associated to connected drivers to the bridge ie. those with a link the the MQTT_LINK connection. I have a Sonoff _Relay and Homekit driver that talk directly to the bridge. The GENERAL messages are those that are received against topics that you specify in the Topics field on the properties page. Cheers David Quote Link to comment Share on other sites More sharing options...
NOS4A2 Posted December 14, 2018 Share Posted December 14, 2018 Another quick question related to the topic above. When a general message is received, how do I make some light to change its state? As you can see in the pictures, the message was received and the script seems right but no light was turned on. Is there a better way to implement this? Best regards, Luis Carlos Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 14, 2018 Share Posted December 14, 2018 Luis, This looks correct and is the same way that I trigger things. See enclosed. I have used my IFTTT driver to send a message when the light is turn on or off and all appears to work fine. The only thing I can think of is that the variables in programming do not match the ones being updated which can sometimes happen when adding/deleing variables when the driver is loaded. May be worth clearing the current programming, rebooting and trying again. David Quote Link to comment Share on other sites More sharing options...
Amr Posted December 14, 2018 Author Share Posted December 14, 2018 I got the programmer and exciting times will start ... Quote Link to comment Share on other sites More sharing options...
Zuhair Posted December 15, 2018 Share Posted December 15, 2018 Great. You only need to install the Berto_Clould driver from GitHub, https://raw.githubusercontent.com/davidmassot/Berto/master/c4z/Berto_Cloud.c4z. You can install the remaining drivers from the Berto Cloud properties page. I've made some updates so make sure your dealer downloads the latest one when he goes to install. Have fun.I will be asking my dealer to install the driver, shall I ask him to install an instant for each room or one master instant?Sent from my iPhone using Tapatalk Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 15, 2018 Share Posted December 15, 2018 Zuhair, You only need one instance of the Cloud driver installed. When this is installed you will be able to install the MQTT Bridge from the properties page, you need an instance of this per MQTT broker you want to connect to, normally one. You then install the Sonoff Relay driver, one per 4 way relay unit. Set the Topic name to be the same that you set in the Tasmota or ESPurna config page on the Sonoff. Thanks David Quote Link to comment Share on other sites More sharing options...
tdougray Posted December 15, 2018 Share Posted December 15, 2018 David, Can the Touch Light switches be controlled using this method or is it only the inline modules? Thanks Quote Link to comment Share on other sites More sharing options...
david@berto.co.uk Posted December 15, 2018 Share Posted December 15, 2018 Sorry not used Torch Light switches. Are they wifi? Do they use MQTT? Quote Link to comment Share on other sites More sharing options...
tdougray Posted December 15, 2018 Share Posted December 15, 2018 Yes they are https://www.itead.cc/smart-home/sonoff-t1.html and also listed on https://github.com/arendst/Sonoff-Tasmota/wiki. as compatible for the flash update Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.