Coder Social home page Coder Social logo

zwallremote's Introduction

zwallremote

zwallremote (Zigbee Wall Remote) is a device based on TI's CC2530 Zigbee Tranciever with built in 8051. Which allows you to reuse your existing light switches to control Tradfi, Hue or other Zigbee Light Link lights.

In fact it actaully acts as a small cheap zigbee remote for all sorts of diffrent uses. For my use case i use it to send commands to zigbee2mqtt which are passed onto HomeAssistant for controlling my Tradfri light network. However there is no reason you could not use it to turn your TV on play music on some smart speakers.

Basics

After booting, the zwallremote polls once a second to detect the state of the screw terminal. If there is a change in state it will send a ZCL_TOGGLE_CMD to the co-ordinator, currently a fixed address in the firmware. I measured current use to be approximately 2uA so it should be capable of running for over 2 years on a single CR2032 coin cell (depending on how many times the light switch is used).

PCB

No known issues, worked first time with my cheap aliexpress CC2530 modules. Pretty Simple

Firmware

You can either:

  1. Can use precompiled binary in firmware/bin/
  • Will need to change the address of your co-ordinator (currently 0x0012_4B00_02C5_A0A6)
  • TODO give script for manipulate the hex file
  1. Comple it yourself:
  • Will need IAR workbench 8051.
  • TI's Z-Stack Home 1.2.2a.44539.
  • The files are just modification to the SampleSwitch example application so just replace files as required.
  • Patience, Prayer and Screaming.

Zigbee2mqtt changes

  1. You need to add ZWallRemote to "const devices" list of dictionaries in "node_modules/zigbee-shepherd-converters/devices.js":
const devices = [
...
  {
      zigbeeModel: ['ZWallRemote0'],
      model: 'ZWallRemote0',
      vendor: 'Custom devices (DiY)',
      description: 'Matts Wall Switch Remote (https://github.com/mattlokes/ZWallRemote)'
      supports: 'on/off',
      fromZigbee: [ fz.cmdToggle ],
      toZigbee: [],
  },
...
]
  1. Add "ZWallRemote0" to the "const mapping" dictionary in "lib/extension/homeassistant.js"
const mapping = { 
 ...
    'ZWallRemote0': [ configurations.sensor_action ]
 ...
 }

zwallremote's People

Contributors

mattlokes avatar

Watchers

James Cloos avatar

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.