-
Notifications
You must be signed in to change notification settings - Fork 13
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
Proportional/ Dimmer settings not working properly #118
Comments
The most important part of this ticket is missing, the simulation. Without that I have to try to parse the log blindly. The simulation lets me know if HKB sees this device properly or not. |
What is the Simulation? FYI I was running HomeKit and HomeKit-indigo for over a year without a problem. I just switched to your HomeKit Bridge about 2 weeks ago and this started happening.
I believe the problem is the order of these two statements
[2018-9-26 09:56:53] [HomeKit Bridge Server] Media Room: set(Brightness) 0 -> 35
[2018-9-26 09:56:53] [HomeKit Bridge Server] Media Room: set(On) false -> true
This causes Indigo to set it to 100 % instead of 35%. When running the HomeKit bridge myself I did notice that when automations would send a % command the light would come on full for a fraction of a second and then go to the desired setting.
Also, BTW, the log I included is limited to the command sequence I outlined in the ticket.
Thanks for a very nice encapsulation if the HomeKit bridge and the indigo plugin.
…Sent from my iPhone
On Oct 3, 2018, at 6:14 AM, Colorado Four Wheeler ***@***.***> wrote:
The most important part of this ticket is missing, the simulation. Without that I have to try to parse the log blindly. The simulation lets me know if HKB sees this device properly or not.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The sim instructions are on the ticket when you open it and also on the wiki pages:
Advanced Plugin Actions
<https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder>
….
Show Homebridge Log
This Device Action will output the contents of the Homebridge server log for the server selected in the device combobox.
<https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#simulate-homekit-for-server-item>Simulate HomeKit For Server Item
This Device Action will report precisely what is being sent to HomeKit if it were sent right now. It differs from the simulator (below) in that the simulator is a "what if" test while this tests the actual configuration of your item on the server it's connected to.
|
Editing this to say the issue is still there. Will add the simulation to the original post.
//Thanks but “never mind”. I was chasing another problem as well with my Insteon for which the solution was resyncing the links. That solved this problem as well.
Sorry for the false alarm.
…Sent from my iPhone
On Oct 3, 2018, at 8:23 AM, Colorado Four Wheeler ***@***.***> wrote:
The sim instructions are on the ticket when you open it and also on the wiki pages:
Advanced Plugin Actions
<https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#rebuild-homebridge-folder>
….
Show Homebridge Log
This Device Action will output the contents of the Homebridge server log for the server selected in the device combobox.
<https://github.com/Colorado4Wheeler/HomeKit-Bridge/wiki/Plugin-Menu-Utilities#simulate-homekit-for-server-item>Simulate HomeKit For Server Item
This Device Action will report precisely what is being sent to HomeKit if it were sent right now. It differs from the simulator (below) in that the simulator is a "what if" test while this tests the actual configuration of your item on the server it's connected to.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The original problem still exists despite what I said below. I have added the simulator output to the original post.
[moderator note: removed your full name and complete street address from this for privacy reasons]
|
Is the scene you are referring to a HomeKit automation or something in Indigo? |
There is a HomeKit automation and a HomeKit Scene that behave the same. Looking at the Events log in Indigo, if the device is OFF, you always see
Sent INSTEON "Media Room" on to 33
Sent INSTEON "Media Room" on to 100
If the device is ON you only see
Sent INSTEON "Media Room" on to 33
I believe when I was running HomeKit bridge myself the first two commands were reversed. While I didn’t like going to 100 then the target it ended up correct.
[moderator note AGAIN: removed your full name and complete street address from this for privacy reasons]
|
Can you tell me what your scene looks like (or you can also screenshot it and post it here)? I want to see if I can replicate what you are doing and if I get the same results or if my results are different. Also, please audit your replies to this thread, you are posting your full name and full street address each time you reply. I've been editing them out but it would be easier if you did that yourself :). |
Oops. I forgot that email’s get posted. Been a while since I used github.
Here’s the screen shot of a scene doing this.
Scott
… On Oct 3, 2018, at 10:14 AM, Colorado Four Wheeler ***@***.***> wrote:
Can you tell me what your scene looks like (or you can also screenshot it and post it here)? I want to see if I can replicate what you are doing and if I get the same results or if my results are different.
Also, please audit your replies to this thread, you are posting your full name and full street address each time you reply. I've been editing them out but it would be easier if you did that yourself :).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8oscRxemmidgo6fXsB3LPi4-y8xWimks5uhPBmgaJpZM4W54SZ>.
|
No screen shot attached :( |
I believe github scrubs attachments, based on my github project. Here’s a like to it.
https://www.dropbox.com/s/xzz1aol2f5ctnst/HomeKitScene.jpeg?dl=0 <https://www.dropbox.com/s/xzz1aol2f5ctnst/HomeKitScene.jpeg?dl=0>
Scott
… On Oct 3, 2018, at 10:42 AM, Colorado Four Wheeler ***@***.***> wrote:
No screen shot attached :(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8osZkyK_9JOthVYqXVJXOEFT_brpLyks5uhPcjgaJpZM4W54SZ>.
|
So your screenshot shows that you just set the light to 35% and that works, correct? When and how is it going from 35->100 where it then fails? |
Not quite. If the light is OFF then executing this scene sets it to 100% and the Events window in Indigo shows.
Sent INSTEON "Media Room" on to 35
Sent INSTEON "Media Room" on to 100
If the light is ON then executing this scene sets it to 35% and the Events window in Indigo shows.
Sent INSTEON "Media Room" on to 35
Scott
… On Oct 3, 2018, at 10:48 AM, Colorado Four Wheeler ***@***.***> wrote:
So your screenshot shows that you just set the light to 35% and that works, correct? When and how is it going from 35->100 where it then fails?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8osfBlif2GUPs0KCXIDWoJJUEyMYVZks5uhPhpgaJpZM4W54SZ>.
|
Ahh, that makes more sense than what I was reading in the initial description! So, the core issue here is that you never want it to be 100%, it just always needs to be 35%. I do know why this is likely happening, because the way HomeKit works it often sends the brightness first and then on/off next and when you on/off in sets it to 100%. I should be able to fix that. Let me know if I’m understanding this incorrectly.
|
No, that’s it. As I said previously the version of Homebridge and homebridge-indigo currently released on github end up at the correct point but I do see a 100% state on the lights, for a moment, before it gets to the 35%. I didn’t looks that the Event’s output on Indigo but It may be that homebridge-indigo sends the 35% again?
Scott
… On Oct 3, 2018, at 10:54 AM, Colorado Four Wheeler ***@***.***> wrote:
Ahh, that makes more sense than what I was reading in the initial description! So, the core issue here is that you never want it to be 100%, it just always needs to be 35%. I do know why this is likely happening, because the way HomeKit works it often sends the brightness first and then on/off next and when you on/off in sets it to 100%. I should be able to fix that. Let me know if I’m understanding this incorrectly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8osbMtrXQgYFLWc278cMQ4kDepCD-Tks5uhPnZgaJpZM4W54SZ>.
|
Sorry, the ‘No’ in my last email was not clear. Your last interpretation was correct.
Scott Buchanan
30475 SW Buckhaven Rd.
Hillsboro, OR 97123
… On Oct 3, 2018, at 10:48 AM, Colorado Four Wheeler ***@***.***> wrote:
So your screenshot shows that you just set the light to 35% and that works, correct? When and how is it going from 35->100 where it then fails?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#118 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8osfBlif2GUPs0KCXIDWoJJUEyMYVZks5uhPhpgaJpZM4W54SZ>.
|
I'm having the same problem, but in my case, I am not using HomeKit automation. I am just trying to use a SwitchLinc dimmer and set the brightness directly with the Home app. The same behavior occurs on iOS and the Mac versions of the Home app. Here is my simulation info. (Let me know if you want other logs too). DEVICE DATA DUMP
|
I would need to see the logs from Homebridge to diagnose that. I have at least 20 dimmer’s in my house and not a single one does this.
|
Thanks for the quick response. I realize there a many, many variables you have to deal with when helping diagnose issues. I truly appreciate what you've built and the support you provide. I hope I come up the learning curve fast enough to not take too much of your time. Anyhow, here's the home bridge log. Please let me know what else you need. Thanks! Apr 12, 2019 at 9:15:48 AM
[2019-4-12 08:01:13] Homebridge is running on port 51826. |
Problem: Setting a lamp to X% doesn’t work from a scene or automation if Lamp is off. If the lamp/device is on it is set correctly when the scene or automation is run.
Expected Behavior
When a scene or automation calls for a given lamp to be set to X% is should be set to X% after completion independent of the starting state of the device.
Current Behavior
If the scene or automation calls for a device to be set to X% if the device is off when the process is run the device is set to 100%. If the device is on then it is set properly.
Steps to Reproduce (for bugs)
Versions
Plugin 1.0.2
Result for using Scene which sets 'Media Room' to 35%
Indigo Log
Sent Scene On
Sent INSTEON "Media Room" on to 35
Sent INSTEON "Media Room" on to 100
Sent Scene On Again as Scene was not fulfilled with 'Media Room' at 100%
Sent INSTEON "Media Room" on to 35
Send Scene Off
Sent INSTEON "Media Room" off
Sent Scene On
Sent INSTEON "Media Room" on to 35
Sent INSTEON "Media Room" on to 100
Sent Scene On Again as Scene was not fulfilled with 'Media Room' at 100%
Sent INSTEON "Media Room" on to 35
Send Scene Off
Sent INSTEON "Media Room" off
Manually turn Media Room On
Sent INSTEON "Media Room" on to 100
Sent Scene On Again as Scene was not fulfilled with 'Media Room' at 100%
Sent INSTEON "Media Room" on to 100
Sent INSTEON "Media Room" on to 35
HomebridgeLog
The text was updated successfully, but these errors were encountered: