Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant set dim to 1 #1013

Closed
Blacksus90 opened this issue Oct 27, 2018 · 2 comments · Fixed by #1085
Closed

Cant set dim to 1 #1013

Blacksus90 opened this issue Oct 27, 2018 · 2 comments · Fixed by #1085
Assignees
Milestone

Comments

@Blacksus90
Copy link

Hey,
I have an issue with the dimming. I have multiple scripts on the rpi that is running my habridge. They are named HDMI1.sh, HDMI2.sh, HDMI3.sh...so the command I run in the dimmer is execute command/script/programm with /home/pi/IR/HDMI${intensity.percent}.sh. This works perfectly fine via the test dim button in ha bridge. Setting it to 1 runs HDMI1.sh. However, when trying it with alexa, 1 somehow defaults to 2, both via voice command and in the alexa app. 2, 3 and 4 work perfectly as intended and run the given script, only setting it to 1 doesnt work.

Am I doing anything wrong or is alexa just incapable of setting things to 1%?

@bwssytems
Copy link
Owner

Please turn on debug for the huemulator class as I would like to see the value received on the call for the set to 1. This may be a funky math rounding issue.

@bwssytems bwssytems self-assigned this Nov 13, 2018
@bwssytems bwssytems added this to the v5.2.2 milestone Nov 14, 2018
@bwssytems
Copy link
Owner

Just to make sure on the rounding, I put in code to check if the raw is greater than 0 and less than 5 out of 254, that it should be 1%.

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

Successfully merging a pull request may close this issue.

2 participants