Code Monkey home page Code Monkey logo

Comments (9)

klali avatar klali commented on August 22, 2024

It should be, I haven't been interested in those kind of features so I haven't looked. If you enable debug and look at the messages that fall out from a double tap I can try to help you decode them.

from ha-plejd.

mist0706 avatar mist0706 commented on August 22, 2024

I turned on debug and tested this out, there are no noticeable events in the log, nothing about a double tap being detected

2021-01-09 22:33:24 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned True
2021-01-09 22:33:25 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned True with brightness 3b3b
2021-01-09 22:33:40 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned False
2021-01-09 22:33:41 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned False with brightness 3b3b
2021-01-09 22:33:42 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned True
2021-01-09 22:33:42 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned False
2021-01-09 22:33:44 DEBUG (MainThread) [custom_components.plejd.light] Cinema(0b) turned False with brightness 3b3b

from ha-plejd.

klali avatar klali commented on August 22, 2024

Interesting. If something happens on the network that the platform doesn't recognize it should either log "No match for device..." or "No match for command..."

I'm not using the plejd scenes or double taps, so I haven't looked into this.

from ha-plejd.

mist0706 avatar mist0706 commented on August 22, 2024

Could it be that the command is stored locally on the button? It seems unlikely that no message would be sent through the mesh upon activation.

from ha-plejd.

klali avatar klali commented on August 22, 2024

So I just tried this.

The relevant log when triggering a scenario is "No match for device '02' (b'02011000210200000080')" which we can then disect:

02 = ? some sort of broadcast
0110 = command
0021 = the command identifier
02 = scene identifier
00000080 = ?

I'm not sure how this would be useful to represent in homeassistant.

from ha-plejd.

mist0706 avatar mist0706 commented on August 22, 2024

To generate this output, did you assign a scene to the button first? I tested on a button with no assigned scene.

from ha-plejd.

klali avatar klali commented on August 22, 2024

Yes. Given how plejd seems to work I think it's unlikely we can get anything from an "unassigned" double click.

from ha-plejd.

mist0706 avatar mist0706 commented on August 22, 2024

Ah. Then i think the usecase is very limited. Perhaps to notify homeassistant that a scene was triggered however every plejd scene needs an assignment which means if you want homeasssitant to also do an action the button would always do at least 2 things. the one defined by plejd scene and the one defined in hass

from ha-plejd.

mist0706 avatar mist0706 commented on August 22, 2024

Closing due to limited usecase.

from ha-plejd.

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.