Skip to content

Conversation

@willie68
Copy link
Contributor

THis is the simple solution. At the moment the response of the bridge will not be evaluated. (Maybe in the next step)

@amimof
Copy link
Owner

amimof commented Apr 20, 2021

@willie68 Thanks for contributing 👏 Please tell me when this is ready for review

@willie68
Copy link
Contributor Author

I think review can happen now.
I don't know why travis can't build this...

@amimof
Copy link
Owner

amimof commented Apr 21, 2021

How about if Bri is set to 0, i guess the state.on would always be true in any case?

@willie68
Copy link
Contributor Author

Changed the comments, added comment on ConvertRGB, adding tests.
Beside the ConvertRGBToXy Test, all tests are failing on my side.
(Maybe because the Hue is not responding, because it's off. :-) )

@amimof
Copy link
Owner

amimof commented Apr 22, 2021

@willie68 Did you read my latest comment about Bri being 0 and what the expected behavior would be?

@willie68
Copy link
Contributor Author

I just tested with bri = 0 and the light are not off, it's the lowest possible brightness but it's not off. So setting lights to bright 0 will not shut them down. That means state.on = true even if the bri is 0.

if err != nil {
t.Fatal(err)
}
assert.True(t, light.IsOn())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is why tests fails. It doesn't receive expected result. Can you have a look?

@willie68
Copy link
Contributor Author

Just missed a single light.State.On = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants