Posts

DETA Wall Switches

Image
Picked up one of these DETA Smart Double Gang Light Switches  from Bunnings today. I had seen they were compatible with Tasmota  and was keen to give them a try along with the Brilliant Wall Switch I also posted about recently . Here are some pictures to get started. After removing the front panel, there is another clear plastic panel to be removed before you can get to the boards. Here is the front of the low-voltage board. And the high-voltage board The low-voltage board was pretty easy to get to, with a set of 8 header pins connecting it to the high-voltage board. There are also a set of 5 header holes on the board.  I did a quick continuity check and identified that the upper-most hole as VCC, and the lower hole as GND. I then powered it up with 3.3V and flashed Tasmota onto it using Tuya-convert .  To put the device in pairing mode, it was necessary to press one of the buttons for at least 5 seconds. The LED on the f...

BH1750 illuminance sensor

Image
A new BH1750 illuminance sensor arrived today. I connected it up to the breadboard with a Wemos D1 running Tasmota, and started and started logging data in Home Assistant. Here is some sample data.

Brilliant Smart Elite Glass Wall Switches Update

Following from my earlier post , I've now been able to configure the Brilliant Wall Switch correctly, thanks to this very helpful post over on the Home Assistant forums. Firstly, the current stable version of Tasmota was 6.6.0, and it was necessary to flash with a newer version which could be found here . I used 6.6.0.20. Then, the device could be configured using the following commands. Module 54 Backlog TuyaMCU 31,103; TuyaMCU 32, 102; TuyaMCU 33, 104; TuyaMCU 11,1; TuyaMCU 12,2 Now I just need to get an electrician to install it...

Comparison between temperature and humidity sensor types

Image
I've been running a Wemos D1 mini in a Frankenstein-like configuration over the past few weeks, with the aim of testing a few different temperature and humidity sensors. I've been trialling the following sensor types: DHT22 DHT11 BME280 SHT30 The breadboard with the sensors looks like this: You can see some graphs of a recent sample of readings from Grafana here: I'm actually a bit disappointed with how much variation there is between these sensors. Overall, I'm more confident in the readings from the DHT22 sensors, based on comparisons with some other temperature sensors I have in the house. The BME280 and SHT30 don't appear to be as accurate as I had hoped. The DHT11 is doing a reasonable job at the temperature readings, but the humidity is probably over-reading.

Update to smart plug rules for controlling bathroom fans manually

Today I made some changes to the rules that let the smart plugs running tasmota in the bathrooms turn on the fans. With these rules a short press turns on the fan, and a long press turns on the switch. Rule1 on switch1#state=3 do Power 2 endon Rule2 on switch1#state=2 do publish cmnd/sw_bri_03/POWER 2 endon Rule1 1 Rule2 1

Brilliant WiFi A60 globes RGB+W (20741)

Image
I picked up a 3-pack of these Brilliant WiFi A60 RGB+W E27 globes from Aldi recently (Model Number 20741), with the intention of flashing them with Tasmota  and doing some experimentation in Home Assistant . Firstly, some photos of the bulb and box. I was able to easily flash these with Tasmota easily using tuya-convert , and fortunately there was a template available in the repository , meaning they were also easy to configure.  These globes are controlled via four separate PWM signals for the red, green, blue and white leds. There were also very good instructions on the Tasmota wiki for configuring the globes in Home Assistant.

Brilliant Smart Elite Glass Wall Switches

Image
I purchased one of these Brilliant Smart Elite Wall Switches  which arrived today.  I quickly pulled off the front glass panel and could see the upper surface of the low voltage board.  Fortunately the low voltage board was easily removable, revealing the high-voltage board beneath. The low voltage board  containing the ESP8266 chip on the underside is below. T here were a set of header pins which extended into the mains voltage part that I hoped would offer an easy solution for flashing.   The ESP8266 in this case is on an TYW3ES module which I think is commonly used in Tuya gear. Looking at the TYW3ES data sheet  I was able to identify the pins on the module.  I then did some continuity checks with a multimeter and was able to identify the VCC and GND pins on the header, but unfortunately not the TX or RX pins. I connected the VCC and GND pins to a 3.3V power supply using dupont cables,...

PIR Sensor with Wemos D1 Mini and Tasmota

Image
I ordered a couple of these AM312 PIR sensors from Banggood recently, to test using them in a multi-function sensor with Tasmota . There is some good information on configuring Tasmota with these sensors , and the manual can be found here . You can see an image of the sensor below, along with pin assignments. Thanks to the creator of this image; unfortunately I can't find the original source to offer credit, but am happy to do so if you reach out to me! These PIR modules simply behave as a switch. To experiment, I've simply connected the OUT pin to D2 (GPIO4) on a Wemos D1 Mini module, and have configured the LED on D4 (GPIO2) on the Wemos to turn on when the PIR sensor is triggered, as a visual indicator. You can see the setup on a small breadboard here. The configuration is Tasmota is here. Note that the LED is on D4 (GPIO2) but needs to be pulled high to turn the LED off, and pulled low to turn the LED on. Hence, the need to invert the signal using RelayX...

Raspberry Pi 4

Image
The Raspberry Pi 4 arrived today. I was finding that the Raspberry Pi Zero W  I've been using as the centre of my smart home explorations was very sluggish, particularly running Home Assistant, and restarting after configuration changes. So, I'm hoping the Raspberry Pi 4 will improve that. Here are a few pics. I have also purchased a Sandisk Extreme 64 GB microSD card for storage. I've installed Raspbian Buster  on it. Now to get it set up and ready to run Home Assistant.

Tasmota on Brilliant Smart Plug Without Soldering

Image
So, after successfully getting Tasmota running on some Sonoff S20 and S26 smart plugs  without soldering, and  without tuya-convert , I embarked up doing the same with some Brilliant Smart WiFi Plugs (Model 20676/05). I was keen to use these devices, as they are approved for use in Australia, having a Regulatory Compliance Mark (RCM) . The process I used involved disassembling the device, and using duPont cables held against the terminals on the ESP8266 module to establish a serial connection and flash the device. Here are some more details. The box for the plugs is shown below. And here are some images of the plug before disassembly. The cover of the smart plug can be removed by levering it up with a screwdriver or spudger or similar, and lifting it off. There are two screws that need to be removed from the main board in order to lift out the board and plug assembly. The board containing the ESP8266 module is attached to the main board. L...