Q: HAP Light Brightness behavior
See original GitHub issueHello, setting brightness for a Light_accessory through iOS Home app, generates two characteristic set messages “Brightness” and “On” as seen in log… Is it possible to remove/discard the second characteristic set message “On” which I think is not needed as the brightness value can fully control the accessory. Thank you!
EventedHTTPServer [::ffff:iPhone] HTTP request: /characteristics +2s
HAPServer [FA:3C:ED:5A:1A:1A] HAP Request: PUT /characteristics +3ms
Accessory [Office Light] Processing characteristic set: [{"aid":1,"iid":11,"value":0},{"aid":1,"iid":10,"value":0}] +6ms
>>>>Accessory [Office Light] Setting Characteristic "Brightness" to value 0 +3ms
EventedHTTPServer [::ffff:appleTV] Sending HTTP event '1.11' with data: {"characteristics":[{"aid":1,"iid":11,"value":0}]} +5ms
EventedHTTPServer [::ffff:iPhone] Muting event '1.11' notification for this connection since it originated here. +9ms
>>>>Accessory [Office Light] Setting Characteristic "On" to value 0 +3ms
EventedHTTPServer [::ffff:appleTV] Sending HTTP event '1.10' with data: {"characteristics":[{"aid":1,"iid":10,"value":false}]} +7ms
EventedHTTPServer [::ffff:iPhone] Muting event '1.10' notification for this connection since it originated here. +8ms
EventedHTTPServer [::ffff:iPhone] HTTP Response is finished +5ms
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Blue-Enriched White Light Improves Performance but Not ...
Use of blue-enriched light has received increasing interest regarding its activating and performance sustaining effects.
Read more >Light, sleep and circadian rhythms in older adults with ... - NCBI
(1994), Investigate effects of bright-light therapy on sleep time, behavior disorders and melatonin secretion on elderly people with dementia ...
Read more >Preparation and photoelectrochemical behavior of 1,4,6,8,11 ...
Photoelectrochemical studies demonstrated that 1,4,6,8,11,13-hexazapentacene () exhibited active n-type semiconductor behavior under visible ...
Read more >Environmental risks from artificial nighttime lighting ... - Science
Temporal change in light intensity. Relationships between light intensity values estimated from B and G bands of nighttime light emissions ...
Read more >Dark Matters: The Effects of Artificial Lighting on Bats
For bats, this can also be advantageous because artificial light disrupts the evasive behaviour of most nocturnal Lepidoptera, rendering them ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
HomeKit (the Home app) actually sends a single message to homebridge containing multiple characteristics (run
DEBUG=* homebridge -D
to see these messages). The 20ms is just compute time for homebridge, breaking up this message into multipleset
events, one for each characteristic.Here’s an example log switching on a light (Living Room 1) from the Home app. The lights is connected to deCONZ and exposed to HomeKit by my homebridge-hue plugin:
The
aid
(accessory ID) andiid
(identifier ID) are shortcuts for the accessory, service, and characteristic UUIDs, see~.homebridge/persist/IdentifierCache.xxxxxxxxxxxx.json
(thex
s are the MAC address frombridge.username
in config.json). Apparently, Living Room 1 hasaid
161. You see that HomeKit issues a single PUT call setting Brightness (iid
11) and On (iid
10). homebridge breaks up this request into twoset
events, which homebridge-hue receives separately. homebridge-hue combines the two events into a single PUT request to deCONZ. deCONZ sends two notifications back to homebridge-hue, that the light state has changed (still on deCONZ’s backlog to combine that into a single event). The first notification actually arrives before the PUT request has returned (the joy of asynchronous processing…).You’ll probably need to collect all changes to a single light and combine that into a single request. See https://github.com/nfarina/homebridge/issues/1455.