Accéder au contenu principal

Articles

New major version of OpenMQTTGateway V0.3

I'm pleased to announce OpenMQTTGateway V0.3 release with the following content: Add BLE beacons detection thanks to HM10 keyes module This is a major add, you can now detect BLE beacons that are into the gateway perimeter for presence detection, the gateway publish the beacon adress and the signal strength Add the possibility to pass raw data to and from mqtt from and to IR Now you can pass raw IR signal and receive also them Add RF and IR repeater function This function enable to increase the range of your devices by repeating the received signals with the gateway. Add the ability to handle RF codes with different bit length than 24 Add the possibility to filter unknown protocols for IR Add the possibility to take into account Sony IR protocol special parameters Correct DHT wrong pin assignement Add an option to don't resend dht temperature and humidity when there is no value change Change to GPL V3 license to prepare future libraries add Th...

Ina226 voltage and current sensor with esp8266 sending by MQTT

I needed to measure the voltage and the current of my lawn mower robot, as i have already an home automation system, the point was also to integrate these measures into Openhab and idealy using mqtt protocol. The first idea that came up was to use a voltage divider to measure the voltage with the esp8266 analog pin.Nevertheless i found some contradictives infos about this, the accepted voltage was low between 1v and 2v depending on the sources. Unfortunately my battery is a 28,4v one. With some search I found on banggood the ina226 sensor already soldered and ready to plug with an arduino. The question was; is this compatible with an esp8266 to allow an easy integration with my home automation system. The answer is yes. Thanks to the help of Shelvin blog  here are the details: Pinout for a NODEMCU: Nodemcu/INA226 D1/SCL D2/SDA GND/GND 5V/VCC IN+ & IN- correspond to the current meter for the tests, I linked them before the INA226 power so as to have s...

Feedback about room temperature sensor with standalone ATMEGA328P and DHT22

After some months of low cost low power room sensor usage here is the feedback. The sensor send every hour to OpenHAB with the OpenMQTTGateway  temperature, voltage and humidity data, it is powered by 3 AA alkaline batteries. But the most interesting thing about this sensor is how the battery voltage decrease so as to have an idea on the batteries lifetime. Here is below voltage (mV) graph on the last day, month and 4 months sent by the sensor (the charts are updated every day): Day Month 4 months We can see that on a 4 months duration the battery decreased around 0,1V. If we consider an end of life at 3V for our 3 AA batteries this give us a lifetime of  4,5V - 3V = 1,5V 15 * 4 months = 60months = 5 years of expected duration (without taking into account the AA auto discharge) 5 years of expected duration with a less than 8€ sensor !

Major version of 433toMQTTto433 gateway --> OpenMQTTGateway

A new version of the gateway is available on github: https://github.com/1technophile/OpenMQTTGateway This version introduce the following changes: esp8266 and arduino compatibility with the same code code SRAM load optimization for arduino uno group user and other parameters remove duplicate for IR RF protocols definition in subject RF pulse length definition in subject acknowledgement inside a subtopic code refactoring handle MQTT authentication automaticaly if user set put parameters on an user_config.h file Major change is the arduino and esp8266 compatibility with the same code, the goal is to be able to maintain the gateway for both platform on a more easy way. You will notice also that the code has been optimized and the sram footprint also. It is now possible to define into the topic some rcswitch parameters like protocol and pulselength. I add some requests about adding direct modules like DHT sensor or fan on the gateway but wouldn't like to d...

Making your RF 433mhz sensors and devices communicate with your home automation, gateways comparison

After more than one year of usage of home automation (HA) I have seen that one critical point is the communication between the sensors/devices and the HA system.  There is several possibilities for that: Infrared 5,8ghz 2,4ghz 867mhz 433mhz wire ... And for each of these possibility we can have a huge amount of different protocols. The goal of this article is to draft a list of the 433mhz gateways that can be found. We will focus on 433mhz due to the fact that i n european countries 433mhz devices/sensors are quite easy to find and with a correct price. We will take the following citerias: Price DIY complexity Number of protocols taken into account Complexity of home automation integration And take a look at RFXCom, RFLink, 433toMQTTto433 ESP8266, 433Utils, Broadlink RM... I will put in green the keypoints of each gateway. E&R = 433mhz emitter and receiver, can be a FS1000A and a XD-RF-5V or a superheterodyne one (recommended)

Low cost low power room sensor with atmega328p and 433mhz transmission

Following my first build of an external garden sensor, here is a simplified version with temperature, humidity and battery voltage measurement for a baby bedroom [EDIT] feedback about the expected battery duration here The requirements are: cheap long battery life, the atmega328p run at 8mhz with minimal components and functions under 8€ wireless (433Mhz) with good range (2 walls to cross and 10 meters) Here is the final view attached to a lion for decoration: And a report from OpenHab displaying the sensor data: If you want more details about energy power consumption the first article on this subject is more detailled. Now let's see how to build this. Bill of material The sensors is based on atmega328p (3€),  a 433 Mhz transmitter (1,5€) , a DHT22 temperature and humidity sensor (4€), a 433 mhz antenna (0,18€) DIP socket adaptor for the ATmega (1€) an electronic prototype printed circuit board (0,5€) At total we...

Infrared IR, 433mhz and MQTT on ESP8266 bidirectional gateway OpenMQTTGateway

Following discussions on the home assistant forum people gave me the idea to add Infrared communication to the 433mhz gateway.  The goal is to act as a gateway between 433Mhz sensors, infrared remote controls and a MQTT broker or between the MQTT broker and 433Mhz actuators, infrared devices, It enables to: receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received 433Mhz signal  receive MQTT data from a topic and send infrared signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received infrared signal  It can be an interesting part in an home automation system so as to interface sensors and actuators (wall sockets), your tv, home cinema, hifi ... with software like  openhab  or home assistant . List of compatible RF sensors here [EDIT] all infos are now centralized into the github repository  ...