-
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
DSC Motion sensors not reporting change of status #86
Comments
When you say they don't show activity, are you saying that it always shows one state or does it change ever? For instance, is it always correct when you restart your server and look at HomeKit but then never changes again, implying that it's getting it's initial state correctly but after that when you trip the sensor it doesn't update HomeKit. |
I think I know the answer to my own question. I was in the middle of coding something and just sort of half-ass looked at this, but now that I do I can see that there are no monitors in place so when that state.open trips the plugin doesn't take that as a "hey I need to tell HomeKit". I'm not going to "fix" this issue in the plugin because complications are about ready to launch and that's where all custom plugin configs will come from. In the meantime I suggest using Masquerade or Device Extensions to monitor that state and then link THAT device to HomeKit and it will work. |
They never show as “triggered” in Home app. Their default state in Indigo would be “closed” or state.closed . Are you asking if I were to restart the plugin with one of those zones open if it’d then show up as triggered in home app? |
Yes, based on what I see in the config it almost certainly will show as whatever state it is in when the server is restarted AND when HomeKit checks in (which may lag 2-10 seconds behind).
|
Ok I’ll force open a zone and try a restart to see what happens. Will try and do it later tonight |
I tried testing a DSC motion sensor last night, and didn't see a trigger in the Home.app either. |
The reason being there is no direct support for that motion sensor as of yet.
|
Sorry i've not had a chance to do this yet, I've been all over the place lately. Will try to remember tonight! |
So does a motion sensor change the 'state.tripped' to true? I'm assuming it does and that's why this isn't working and it's a super easy fix for the next release but I don't want to assume that, change the code only to be told it still doesn't work because I guessed wrong. Right now it's looking at the same thing as a contact sensor at 'state.open'. |
If I restart that server with the motion zone forced open in Home app it shows as triggered. Closing the zone does not update the status. HomeKit Bridge Simulating HomeKit values for Study - Motion Sensor |
I'm aware of that and have already said that I need to add proper support for this, so what I need to know is what I asked before you posted that. I only need to know if my suspicions are true that 'tripped' is the state that toggles when the motion goes on and off. You don't need to do a data dump, I just need to know if that state changes. |
Ah sorry I thought you wanted it when it was open. No, the tripped state is unchanged. Tripped would only occur if the alarm was set to home or away (or was a 24 hour zone such as a smoke alarm) and the zone was violated. |
So then what changes when that motion sensor changes? If I don’t know that then I can’t add support for it.
|
Exact same as a contact. If I change my motion sensors in HBK from the type of Motion to the type of Contact Sensor the states show up as open for movement and closed for no movement. This is what I was saying at the beginning of the thread that the DSC plugin treats all devices the exact same, it doesn’t care if its a motion sensor or contact or smoke detector or whatever.. all it really cares is if it’s Open or Closed, and additionally if it’s tripped or not if violated when the alarm is active in home/away mode. |
Then I’m at a total loss for why it doesn’t work since that’s how it was set up in the first place.
|
OK.. so we know that if I force the zone open and start the server then the status of that sticks in Home app regardless of closing the zone.. so it looks like its reading the status of the DSC device in indigo correct at server startup. Could it be an issue with it refreshing that information after the initial start rather than what it’s reading? |
I believe this will be resolved in this next update. |
* Added additional sanity check on SecuritySpy servers that if they don't have the xaddress populated to get the address from a different field ([Issue #81](#81)) * Added 'ProgramHeat' and 'ProgramCool' to conditions for sending temperature set commands to a thermostat ([Issue #79](#79)) * Fixed bug where if a thermostat was set to auto heat/cool that changing temperatures in HomeKit would time out in the plugin because the plugin didn't know what to set, it will now increase the heat if the target temp is warmer than the current temp and increase cooling if it is cooler * Fixed bug where read-only HomeKit services may not get updates if not specifically programmed (i.e., for DSC alarms) ([Issue #86](#86)) * [Issue #81](#81) resolved * [Issue #79](#79) resolved * [Issue #86](#86) resolved
Looks good! |
So fixed? |
Yup! Just going around testing a few different types on the off chance it broke them but all looks good. I think you’re safe to close. |
This is one I noticed a while ago but completely forgot to log, it was only when I was rebuilding my alarm system at the weekend I noticed that it was still outstanding. All other DSC Plugin devices I’ve setup seem to work fine but motion sensors do not show any activity. Simulation dump:
The text was updated successfully, but these errors were encountered: