EduardoHerreraM / SmartIR-Zigbee-Tools

MIT License
13 stars 0 forks source link

SmartIR Zigbee Tools

This tool makes generating the SmartIR codes for a MQTT source easy and simple (for someone with a bit of experience in programming).

It uses Python and several packages for making this process less tedious.

My developing was done using a MOES UFO-R11, Mosquitto and Zigbee2MQTT.

Feel free to perform a pull request for your feature! :)

Project capabilities

Right now, the project only works with the following device types:

System requisites

Project requisites

When trying to use this project, you must create a new Controller class for your specific Zigbee controller.

You have my controller as an example. It's called MOES_UFO_R11_Controller.

You must define these two functions:

My controller payload looks like this:

{
  "battery":36,
  "learn_ir_code":null,
  "learned_ir_code":"CdUR1REgAj4GIAJAAUAHQAPAAeATC8AbQAdAA0ABQAfgCQMCVwIgIAEDPgYgAuAPAeADG0ALwAPgAwHgExMB1RFAAQEgAkAjQAFAB0ADwAHgEwvAG0AHQANAAUAH4AsDQAFAF+APAeADG0ALwAPgAwHgEBMCBiAC",
  "linkquality":134,
  "voltage":1300
}

So my extract_code_from_message is extracting the value of the learned_ir_code field.

How to execute

Install dependencies

make install

Run the project

make run

Development

Install the development packages

make install-dev

Run tests

make run-tests

Environment definition

This project needs several environment values for correctly working. Here is the specification:

FAQ

The output says that the learning mode is set, the climate controller is sending the codes, but the project is not registering them.

The cause of this could be one of the following:

Improvements