I try to get current brightness values of lamps in home.
It collects old values.
If I change brightness of a light in native Home app and come back to my app and use
characteristic.readValue(completionHandler: ...
to collect levels for all lights, I can get true value only for the lamp brightness has been changed in native Home app.
I could not find a way to get current lights brightness values.
Should not readValue to get values from accessories directly not from data recorded in iPhone.
It collects old values.
If I change brightness of a light in native Home app and come back to my app and use
characteristic.readValue(completionHandler: ...
to collect levels for all lights, I can get true value only for the lamp brightness has been changed in native Home app.
I could not find a way to get current lights brightness values.
Should not readValue to get values from accessories directly not from data recorded in iPhone.