Git Product home page Git Product logo

freepad_vofkindt's Introduction

THIS IS THE FREEPAD MOD - https://github.com/diyruz/freepad

Features list:

  1. Single/double/tripple/quadriple/many_x/hold&release
  2. ONOFF bind
  3. Level control bind
  4. Bindings configuration
  5. Remote reset
  6. Touch link

How to join:

If device in FN(factory new) state:

  1. Press and hold JOIN button for 2-3 seconds, until device start flashing led
  2. Wait, in case of successfull join, device will flash led 5 times
  3. If join failed, device will flash led 3 times

If device in a network:

  1. Hold JOIN button for 20 seconds, this will reset device to FN(factory new) status
  2. Go to step 1 for FN device

How to use touch link

  1. Bring you remote near to TL device
  2. Hold button (1) for 10 seconds TL funtionality can work without connecting to network

How to add device into zigbe2mqtt

Should be already in dev branch (as of 19-05-2020)

Work modes

By default remote works as custom swith, with multiple clicks, this behaiviout has own drawback. In order to detect multiple clicks, remote sends commands with 300ms delay. You can change this behaviour by cost of double/tripple/etc clicks. To do that you need to change

ZCL_CLUSTER_ID_GEN_ON_OFF_SWITCH_CONFIG cluster ATTRID_ON_OFF_SWITCH_TYPE attribute

Values are:

ON_OFF_SWITCH_TYPE_MOMENTARY (0) -> no delay, but no multiple clicks, only single

mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_type" -m '0'

ON_OFF_SWITCH_TYPE_MULTIFUNCTION (2) -> 300ms delay, full set of clicks

mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_type" -m '2' (default)

ONOFF cluster binding

By default command is TOGGLE, but you can change this behaviour

Change ZCL_CLUSTER_ID_GEN_ON_OFF_SWITCH_CONFIG clusters attribute ATTRID_ON_OFF_SWITCH_ACTIONS

ON_OFF_SWITCH_ACTIONS_ON

mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '0'

ON_OFF_SWITCH_ACTIONS_OFF

mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '1'

ON_OFF_SWITCH_ACTIONS_TOGGLE (default value)

mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '2'

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.