cc2531dockerhome assistanthome automationmqttphilips huezigbee
This article extends the tutorial about Hass.io and the Xiaomi Aqara Sensors that I've published months ago. That tutorial is part of the series of articles about Zigbee and the Rasbperry Pi using the CC2531 USB dongle. Here are the links:
- Zigbee: Xiaomi Sensors using Raspberry Pi (without Gateway!)
- Zigbee: Flashing a CC2531 dongle using a Raspberry Pi
- Raspberry Pi: Xiaomi Sensors & Home Assistant (Hass.io)
- Zigbee: Reading Xiaomi Sensors with a Raspberry Pi (no Xiaomi gateway needed!)
Fig. 1: Hass.io: Philips HUE Lightstrip.
aqaraaqara sensorsdoor sensorhome assistantmqttpirraspberry pixiaomi gatewayxiaomi sensorszigbee
Last April, I published a tutorial about connecting the Aqara sensors to a Raspberry Pi without using the Xiaomi Gateway. To make that possible, I needed a CC Debugger to flash the TI CC2531 Zigbee Dongle. This debugger was used only one time, and then the Zigbee-USB dongle worked without any problem.
In this article, I will cover a way to flash the CC2531 without the CC Debugger. This reduces project costs (about $10 for debugger + cable adapters) and waiting time. Usually, you wait 30 days to get a low cost version of the debugger (using the cheapest shipping option). Let's start!
aqaradockerhass.iohome assistanthome automationproduct reviewraspberry pi 3 B plusxiaomi gatewayxiaomi sensors
I've been very busy the last weeks. I moved to a new apartment and I was living between moving boxes. Four days ago, I managed to put my desk together and now I have some time (not a lot) to write a new article.
Last month I've received from GearBest two Aqara sensors:
These sensors use Zigbee and I connected them to a Raspberry Pi running Raspbian OS and a dockerized version of Home Assistant (DIY tutorial). This connection was made without using any Xiaomi gateway (DIY tutorial).
Hardware and Software...
dockerembeddedhass.iohome assistanthome automationraspberry pisensorsxiaomizigbee
Last week, I published an article about using Xiaomi sensors without a Xiaomi Gateway. The gateway/hub can be replaced with a Raspberry Pi and a USB-ZigBee dongle. You find the instructions here: #ZigBee: Xiaomi Sensors using Raspberry Pi (without Gateway!).
As you can read in that article, two repositories are available to connect and process the data from the Xiaomi sensors. Additionally, Zigbee2mqtt can be connected to Hass.io. Well, I didn't want to use HassOS (the OS on which hass.io runs), but I wanted to use Hass.io running on Raspbian, otherwise with Home Assistant running as an appli...
aqaradoor sensorhome assistanthome automationmqttpirraspberry pixiaomi gatewayxiaomi sensorszigbee
This is what I will try to accomplish in this tutorial:
- Flash the USB-Zigbee Dongle with the correct FW
- Install a broker to connect to the sensors
- Configure the sensors using the broker
Xiaomi sensors use Zigbee for the connection which means we need some extra components to connect to them. This is the list of needed hardware:
androidblynkesp32home assistanthome automationiosmicropythonmqttwipy 3.0
This time a quick tutorial to control your WiPy 3.0 / 2.0 or an ESP32 using Blynk.
Blynk is the most popular mobile app for the IOT. Works with anything: ESP8266, Arduino, Raspberry Pi, SparkFun and others.
I found a library to connect MicroPython to Blynk but it is only compatible with the WiPy 1.0. Thus, I modified it and made it compatible with the WiPy 3.0 / 2.0 and with the ESP32 running MicroPython. If you do not have any idea about MicroPython, I recommend you to read this tutorial.
This is what I will try to accomplish in this tutorial:
- Install MicroPython (if you are using an ESP3...
esp32google cloud platformmicropythonpythonsmart power outletszerynth
This part 2 of the tutorial will allow you to get data from the smart power outlets and send it to the Google Cloud Platform (GCP) throught the Google IoT Core and using an ESP32 programmed with Zerynth (Python). This data is not usually available to the user (directly, you need to use the power outlet application), and it is sent to the company servers.
If you want to check, if your power outlets are compatible for this tutorial, they should have the port
6668opened. To check that:
>>> nmap <<ip-address>> -p 6668 [...] Host is up (0.13s latency). PORT STATE SERVICE 6668/tcp open irc
esp32home automationmicropythonsmart power outletstutorial
Today there is a wide range of offer for home automation devices. A lot of sensors, actors etc. can be connected to the cloud and be controlled using Google Home, Amazon Alexa, your smartphone, etc. There are a lot of companies offering low cost devices, e.g. Sonoff, Tuya, Teckin etc. Most of these solutions are based on ESP32 or ESP8266, and all of them send data to cloud solutions usually deployed on Amazon services, and the data is only accessible using the Android/iOS applications. They can be also controlled using voice commands over Google Home or Amazon Alexa devices.
Nice, but... my a...
amazon echobelkinesp32home automationmicropythonwemosws2812b leds
I don’t have any Belkin WeMo system or Philips Hue light bulbs. However, I have two ESP32 running MicroPython (see my last article), and a W2812b LED strip, and I thought I should be able to say, "Echo/Alexa, turn on the kitchen light" or "Echo/Alexa, turn on the blue light" and It should work with this setup.
And... it works as you can see in this video!
If you are interesting in only using the code, then click here. Otherwise, you can read the complete story... ;)
If you’re not up to speed with MicroPython, Wipy see earlier articles in...