You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed a Minka Aire Concept IV today. The integrated light's status is not updated correctly when the status is modified outside of the HE app (e.g. with the phone app or the remote controller).
I believe that the problem is in the app at line 283. The call to getChileDevice() is made on component. But if we got to line 283, component is known to be null (from the test at 280). That call should be made on dev - not component.
Also, the logic in handling the light's setting update doesn't match what happens with my device. The on/off status is reported in field "light" and is either 0 or 1. When the light is turned off, "light" has a value of 0, and the "brightness" value does not change from what it was just before the light was turned off. At 555, the tests on deviceState.brightness and deviceState.light should both happen on each update - they should not be in an if-else.
The value of deviceState.brightness does not affect deviceState.light. If the level is set to 0 in the device panel, the light remains on and the brightness level on the physical fan light is set to 1. That's not what happens in the code for handling the update.
I modified my code to this:
if the reported deviceState.brightness is not null, set the HE value to match
if the deviceState.light is > 0 set the switch state to ON, else set the switch state to off
I think that this logic better reflects what's happening on the fan and what it reports back to HE.
I am happy to provide log information and to test changes.
The text was updated successfully, but these errors were encountered:
I installed a Minka Aire Concept IV today. The integrated light's status is not updated correctly when the status is modified outside of the HE app (e.g. with the phone app or the remote controller).
I believe that the problem is in the app at line 283. The call to getChileDevice() is made on component. But if we got to line 283, component is known to be null (from the test at 280). That call should be made on dev - not component.
return dev?.getChildDevice(hubId + ":bond:" + deviceId) ?: null
Also, the logic in handling the light's setting update doesn't match what happens with my device. The on/off status is reported in field "light" and is either 0 or 1. When the light is turned off, "light" has a value of 0, and the "brightness" value does not change from what it was just before the light was turned off. At 555, the tests on deviceState.brightness and deviceState.light should both happen on each update - they should not be in an if-else.
The value of deviceState.brightness does not affect deviceState.light. If the level is set to 0 in the device panel, the light remains on and the brightness level on the physical fan light is set to 1. That's not what happens in the code for handling the update.
I modified my code to this:
I think that this logic better reflects what's happening on the fan and what it reports back to HE.
I am happy to provide log information and to test changes.
The text was updated successfully, but these errors were encountered: