agame wrote:ah that makes more sense then.
The Unifi plugin has generated hundreds of devices i need to clean out...makes it difficult to deal with unpredictable sequencing!
From a quick play it the plugin appears to be working well, with the exception of mapping armed states: stay-armed and away-armed states seem to be mapped in reverse.
Also, DSC doesn't differentiate night from home/stay and selecting this in HomeKit currently does nothing (would make more sense to map it onto stay?)
Happy to revisit DSC - but as can’t test you are going to have to be pretty specific!
Specific debug logging for the DSC Keypad device probably ideal (can select that in plugin Config). And indigo will warning log anytime device changes.. May still need other debug logs as well..
The ‘mapping’ seems find to me, code wise. But really not sure what direction you are referring to… I have copied plugins conversion below. Seems correct.
- Code: Select all
DSC_TO_HOMEKIT_CURRENT = {
"armed": HK_ALARM_STAY_ARMED,
"armed_stay":HK_ALARM_STAY_ARMED,
"armed_away": HK_ALARM_AWAY_ARMED,
"exitDelay": HK_ALARM_DISARMED,
"disarmed": HK_ALARM_DISARMED,
"tripped": HK_ALARM_TRIGGERED,
}
DSC_TO_HOMEKIT_TARGET = {
"armed": HK_ALARM_STAY_ARMED,
"armed_stay":HK_ALARM_STAY_ARMED,
"armed_away": HK_ALARM_AWAY_ARMED,
"exitDelay": HK_ALARM_DISARMED,
"disarmed": HK_ALARM_DISARMED,
}
But welcome to check further, turn on debug logging for the DSC device and let me know what it’s reporting/saying and what it should be.
Should be able to fine tune as you need.
Sent from my iPad using Tapatalk