Giter Club home page Giter Club logo

Comments (4)

carldebilly avatar carldebilly commented on June 5, 2024 1
  1. ✅ It works.
  2. ✅ It work, the timer stopped as soon it's going back to off
  3. ✅ It works the same way as #1 - because the timer is started when listening from MQTT
  4. ✅ Similar to #2
  5. ✅ Tested and it work
  6. ✅ Not tested, but it should work. The Z2MA may send a turn off request if the timer expires while Z2M is offline. Not really a problem.

@ciotlosm Thanks!

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 5, 2024

I was planning this feature too... but there's a problem with the "timer button"... because there's many scenarios where the timer won't work...

  • If you restart Z2MA
  • If you are using another mean to activate the join...

My solution would be to activate a allowJoinTimeout in the settings which would be activated no matter how you activated the feature. What do you think?

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 5, 2024

@ciotlosm
Implemented and published in Zigbee2MqttAssistant v0.3.95.
Currently in the dev branch... please take time to try it!

from zigbee2mqttassistant.

ciotlosm avatar ciotlosm commented on June 5, 2024

For posterity

Use cases:

  1. Start pairing, wait time and stop

    • send enable pairing
    • start timer
    • timer finished
    • app disables pairing
  2. Start paring but stop before timer

    • send enable pairing
    • start timer
    • manual disable pairing
    • cancel timer
  3. Someone sends pairing request

    • Listen on mqtt
    • pairing request recevied from elsewhere
    • start timer
    • timer finished
    • app disables pairing
  4. Someone stops pairing remove

    • send enable pairing
    • start timer
    • stop pairing recevied
    • cancel timer
  5. Restart container during pairing

    • container starts
    • container asks status from z2m
    • container starts timer if pairing in progress
    • normal flow continues
  6. Start container (normal start)

    • container starts
    • container checks if pairing in progree
    • if no pair in progress, do nothing
  7. Container is running, pairing in progress, user restarts z2m

    • pair started
    • timer started
    • user restarts z2m (has pairing by default off) - any way to check stop status?
    • z2m starts
    • z2m sends status
    • cancel timer (do not send pairing stop)

from zigbee2mqttassistant.

Related Issues (20)

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.