Giter Club home page Giter Club logo

Comments (2)

justme-1968 avatar justme-1968 commented on June 24, 2024

the problem is that homekit sends an on cmd before the pct command. this is regarded by most as a bug in homekit. with your change a normal on will not work anymore.

the current workaround is to use cmdalias in fhem to ignore the on cmd in certain circumstances.

i will try to change homebridge-fhem to ignore the on cmd if it arrives immediately before or after the pct.

thill then you can use the homebridgeMapping attribute to get your desired behavior.

from homebridge-fhem.

ronny332 avatar ronny332 commented on June 24, 2024

Hi,
yeah, I understand what you mean, but for the used dimmers in my case (HM-LC-DIM1T-FM) this does not happen. Even with a command which sets the dimmer just to "on", the light starts at 1% and raises within 2-3 seconds to 100%.

This is what exactly is sent to the running FHEM instance:

[10/12/2017, 10:28:15 PM] [fhem] hm_dim_wzUnten: executing set cmd for On with value true [10/12/2017, 10:28:15 PM] [fhem] executing: http://127.0.0.1:8083/fhem?cmd=set%20hm_dim_wzUnten%201&XHR=1 [10/12/2017, 10:28:15 PM] [fhem] hm_dim_wzUnten delaying command Brightness with value 100 2017-10-12 22:28:15 caching: hm_dim_wzUnten-pct: 0.5 [10/12/2017, 10:28:15 PM] [fhem] caching: On: true (as boolean; from '0.5') [10/12/2017, 10:28:15 PM] [fhem] caching: Brightness: 1 (as number; from '0.5') [10/12/2017, 10:28:16 PM] [fhem] hm_dim_wzUnten: executing set cmd for Brightness with value 100 [10/12/2017, 10:28:16 PM] [fhem] executing: http://127.0.0.1:8083/fhem?cmd=set%20hm_dim_wzUnten%20pct%20100&XHR=1 2017-10-12 22:28:16 caching: hm_dim_wzUnten-pct: 1.5 [10/12/2017, 10:28:16 PM] [fhem] caching: On: true (as boolean; from '1.5') [10/12/2017, 10:28:16 PM] [fhem] caching: Brightness: 2 (as number; from '1.5')

from homebridge-fhem.

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.