• 13
      Aug - 2019

      Home Automation, Raspberry Pi | 3 min | 9287

      #Zigbee: Flashing a CC2531 dongle using a Raspberry Pi

      Home Automation, Raspberry Pi | 3 min | 9287


      aqara
      aqara sensors
      door sensor
      home assistant
      mqtt
      pir
      raspberry pi
      xiaomi gateway
      xiaomi sensors
      zigbee

      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!

      Hardware

      ...
    • 09
      Jul - 2019

      Home Automation, Product Reviews, Raspberry Pi | 2 min | 3518

      #Zigbee: Reading Xiaomi Sensors with a Raspberry Pi (no Xiaomi gateway needed!)

      Home Automation, Product Reviews, Raspberry Pi | 2 min | 3518


      aqara
      docker
      hass.io
      home assistant
      home automation
      product review
      raspberry pi 3 B plus
      xiaomi gateway
      xiaomi 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

      ...
    • 13
      Apr - 2019

      Home Automation, Raspberry Pi | 4 min | 8641

      #Raspberry Pi: Xiaomi Sensors & Home Assistant (Hass.io)

      Home Automation, Raspberry Pi | 4 min | 8641


      docker
      embedded
      hass.io
      home assistant
      home automation
      raspberry pi
      sensors
      xiaomi
      zigbee

      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...

    • 06
      Apr - 2019

      Home Automation, Raspberry Pi | 6 min | 34199

      #Zigbee: Xiaomi Sensors using Raspberry Pi (without Gateway!)

      Home Automation, Raspberry Pi | 6 min | 34199


      aqara
      door sensor
      home assistant
      home automation
      mqtt
      pir
      raspberry pi
      xiaomi gateway
      xiaomi sensors
      zigbee

      This tutorial allows you to connect Xiaomi (or Aqara) sensors (e.g. door, pir, temperature, water, switch) to a Raspberry Pi or similar system without using any Xiaomi Gateway.

      This is what I will try to accomplish in this tutorial:

      1. Flash the USB-Zigbee Dongle with the correct FW
      2. Install a broker to connect to the sensors
      3. Configure the sensors using the broker

      Hardware

      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:

      ...
      CC2531
    • 05
      Feb - 2019

      Home Automation, MicroPython | 2 min | 2646

      #MicroPython: Home Automation using Blynk connected to a WiPy 3.0 / 2.0

      Home Automation, MicroPython | 2 min | 2646


      android
      blynk
      esp32
      home assistant
      home automation
      ios
      micropython
      mqtt
      wipy 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:

      1. Install MicroPython (if you are using an ESP3...
    • 27
      Oct - 2018

      Cloud Platforms, Home Automation, MicroPython | 2 min | 1231

      #Zerynth: ESP32 & Google IoT Core - Part 2: Getting data from Smart Power Outlets

      Cloud Platforms, Home Automation, MicroPython | 2 min | 1231


      esp32
      google cloud platform
      micropython
      python
      smart power outlets
      zerynth

      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 6668 opened. To check that:

      >>> nmap <<ip-address>> -p 6668
      [...]
      Host is up (0.13s latency).
      
      PORT     STATE SERVICE
      6668/tcp open  irc
      
      ...
    • 23
      Oct - 2018

      Home Automation, MicroPython | 5 min | 5234

      #MicroPython: Controlling Smart Power Outlets using an ESP32

      Home Automation, MicroPython | 5 min | 5234


      esp32
      home automation
      micropython
      smart power outlets
      tutorial

      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...

    • 29
      Oct - 2017

      Home Automation, MicroPython | 7 min | 5314

      #MicroPython: WeMos (ESP32) and Amazon Echo (Alexa) - Switching LED Colors!

      Home Automation, MicroPython | 7 min | 5314


      amazon echo
      belkin
      esp32
      home automation
      micropython
      wemos
      ws2812b 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... ;)

      Python Code: https://github.com/lemariva/uPyEcho

      If you’re not up to speed with MicroPython, Wipy see earlier articles in...