Git Product home page Git Product logo

aqara-opple's Introduction

Aqara opple - Alternative Firmware

This page describes how to build and update your Aqara Opple Switch with a full Zigbee 3.0 compatible firmware.

Description

By default the Aqara Opple Light switch runs a very limited Zigbee 3.0 stack. It is not visible in most common Zigbee Bridges, like Philips Hue. While it can be paired with a Zigbee Network, functionality is very limited.

Original Button Map

This is the button map of the orignal fw

  • Key 0: All lights off
  • Key 1: All lights on
  • Key 2: All lights decrement brightness
  • Key 3: All lights increment brightness
  • Key 4: No function
  • Key 5: No function

Thankfull Aqara decided to not lock the Aqara Opple NXP JN5189 Zigbee chip, and thereby allows the flashing of an alternative firmware.

New Button Map

Use this if you have a 2/4 button device, or if you want to use your 6 button device with a non hue bridge

  • Key 0: Key On Short/Long Press
  • Key 1: Key Off Short/Long Press
  • Key 2: Key Dimmer+ Short/Long Press
  • Key 3: Key Dimmer+ Short/Long Press
  • Key 4: Key 4 Short/Long Press
  • Key 5: Key 5 Short/Long Press

New Button Map - Hue compatible 6 buttons

Use this if you have a 6 button device and want to use it with a hue bridge Note: Due to the Hue bridge only supporting up to 4 keys, some limitations have to be accepted

  • Key 0: Key On Short Press
  • Key 1: Key Off Short Press
  • Key 2: Key On Long Press
  • Key 3: Key Off Long Press
  • Key 4: Key Dimmer+ Short/Long Press
  • Key 5: Key Dimmer+ Short/Long Press

As the Hue App does not support differenciation of Short/Long Press Key 1 and Key 2 will not have any special functionality. However by using an App like Hue Dynamics it is possible to give all 6 keys different actions. In total 8 actions can be assigned.

Software

Base

The SW is based on the JN-AN-1245 Zigbee 3.0 Controller and Switch example code by NXP

Status

  • 6 Keys
  • Powered by Battery, Deep Sleep
  • Detected as original Hue Dimmer Switch
  • Fully compatible with Hue bridge

Next steps

  • Better Pairing. Automatically go to Steering Mode after Flashing
  • Allow Factory Reset. Allows repairing without the need to reflash
  • Better handling of Deep Sleep. Currently 10sec after keypress. Best would be periodic wakeup to report battery status.
  • Battery Status reporting
  • Compare to CoinCell example from SDK
  • Provide FW for all variant. 2,4,6 buttons. With and without Hue bridge 4 buttons limitation workaround
  • OTA

Hardware

Pinout

Pinout

Flashing

JTAG Connector Pinout

JTAG Pinout

Option A: Soldering (Recommended if you want to develop)

JTAG Connection A

Option B: Soldering (Recommended if you just want to falsh)

JTAG Connection B

UartSBee Connection

JTAG UartSBee

Programming can be done with for example the UartSBee (https://wiki.seeedstudio.com/UartSBee_v5/), but should work with and FTDI FT232RL based adapter.

DK6Programmer.exe -s COM15 -V2 -e FLASH -p FLASH=C:\NXP\JN-AN-1245\Binaries\DimmerSwitch_AQARA_OPPLE\DimmerSwitch_AQARA_OPPLE.bin

OTA

TBD

aqara-opple's People

Contributors

schischu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aqara-opple's Issues

Flashing with another FTDI FT232RL board

Hi @Schischu!
I own this little FTDI FT232RL-based board:
A FTDI FT232RL board
It features only 5V, RT, TX and GND pins.

Based on your photos and the UartSBee v5 PCB schematic, it seems you are using the following connections:

UartSBee pins Aqara Opple pins Your jump wire color
TXO TXO (11) Brown
RXO RXO (12) Yellow
GND ISP (8) Orange
3V3 VDDE (20) Purple
RESET RSTN (27) White
GND VSS (30) Gray

Do you think I can wire my FT232RL board to an Aqara Opple as described below and flash it?

My board pins Aqara Opple pins
TX TXO (11)
RX RXO (12)
GND ISP (8)
5V VDDE (20)
not connected RSTN (27)
GND VSS (30)

Could you please also tell me which data sheet correspond the written numbers on the JTAG pinout picture?

Thanks for your help and the amazing work done on this repo!

Binaries Missing?

Hi There, don't suppose you'd be able to provide any .bin files for the project.

I have tried compiling, but I am really struggling with errors. I have the 6 button Opple switch and would love to be able to flash a binary straight to it.

Thanks in advance :)

Increase sleep timeout

Hey, I haven't flashed this yet but wanted to check something. My current issue with the Opple switches is that the they turn off about 5s after a press, meaning that the release command after long press never gets sent if the long press is more than 5s. Does this firmware fix that, or can it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.