Comments (2)
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.
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)
- Different names for multiple switches (subtypes)? HOT 3
- warning from the characteristic 'Saturation' HOT 17
- Installation procedure failure (version 0.5.29) HOT 2
- Configuration gets lost after docker container restart HOT 7
- Homebridge-fhem Problem mit fhem Zugriff. HOT 4
- No reconnect after FHEM Server restart HOT 2
- homebridge-fhem with Homebridge 1.3.x does not work (for me) HOT 4
- Thermostat's dont't work anymore HOT 3
- longpoll error HOT 13
- No response with Mac OS Monterey HOT 1
- Status der Geräte updated nach einiger Zeit nicht mehr HOT 2
- This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond HOT 1
- Homebridge sometimes does not start with homebridge-fhem plugin active HOT 8
- Plugin settings in Homebridge UI overwrite manually created configuration HOT 3
- Option to reduce log output HOT 1
- Device state update is not working HOT 14
- For ProgrammableSwitchEvent the nocache=1 dosent work HOT 6
- History Type Energy not working HOT 1
- HMCCU-Geräte werden bei best. Konstellationen vergessen und später als neue Geräte wieder hinzugefügt HOT 1
- Thermostat übergeben OHNE Cooling/AUTO Funktion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-fhem.