papamac / VirtualGarageDoor

Monitoring and control of conventional garage door openers in Indigo
The Unlicense
0 stars 0 forks source link

Error after changing setup of sensors #4

Open durosity opened 1 month ago

durosity commented 1 month ago

Hi,

I've finally got around to replacing some very unreliable sensors for my open/closed state of my garage door, but I'm now getting an error when the garage door is activated:

Virtual Garage Door Error Error in plugin execution ServerReplacedElem:

File "plugin.py", line 555, in deviceUpdated File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Virtual Garage Door.indigoPlugin/Contents/Server Plugin/virtualGarageDoor.py", line 358, in update type: key logDoorStateTracks not found in dict

I've changed one of the sensors to a DSC Alarm contact sensor. Here's the device definition:

batteryLevel : None
buttonGroupCount : 0
configured : True
description : DSC Zone 08 - Wired 
deviceTypeId : alarmZone
displayStateId : state
displayStateImageSel : SensorOff
displayStateValRaw : closed
displayStateValUi : closed
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState : 
folderId : 481307147
globalProps : MetaProps : (dict)
     com.GlennNZ.indigoplugin.HomeKitLink-Siri : (dict)
          HomeKit_audioSelector : false (bool)
          HomeKit_bridgeUniqueID : 549226 (integer)
          HomeKit_deviceSensor : sensorValue (string)
          HomeKit_deviceSubtype : ContactSensor (string)
          HomeKit_inverseSelector : false (bool)
          HomeKit_publishDevice : true (bool)
          HomeKit_tempSelector : false (bool)
          homekit-name : Door Sensor (string)
     com.frightideas.indigoplugin.dscAlarm : (dict)
          Elem :  (string)
          occupancyGroup : 0 (integer)
          var : None (empty)
          zoneLogChanges : true (bool)
          zoneNumber : 8 (string)
          zonePartition : 2 (string)
          zoneType : zoneTypeDoor (string)
id : 444566559
lastChanged : 2024-05-14 14:49:38
lastSuccessfulComm : 2024-05-14 14:49:38
model : Alarm Zone
name : Garage Door Position Sensor - Closed
ownerProps : com.frightideas.indigoplugin.dscAlarm : (dict)
     Elem :  (string)
     occupancyGroup : 0 (integer)
     var : None (empty)
     zoneLogChanges : true (bool)
     zoneNumber : 8 (string)
     zonePartition : 2 (string)
     zoneType : zoneTypeDoor (string)
pluginId : com.frightideas.indigoplugin.dscAlarm
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
     LastChangedShort : 2m (string)
     LastChangedTimer : 2 (integer)
     bypass : nobypass (string)
     bypass.bypassed : false (bool)
     bypass.nobypass : true (bool)
     state : closed (string)
     state.closed : true (bool)
     state.open : false (bool)
     state.tripped : false (bool)
subModel : 
subType : 
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : False
supportsStatusRequest : False
version : None

I'm now getting an Obstructed error in HomeKit that I think is because of this. Any ideas?

papamac commented 1 month ago

Hi Mike,

I don’t have much time now, but I think that I can solve this one quickly. Reload the VGD plugin and go to Plugins/Virtua lGarage Door/Configue before opening or closing the garage door. Click on the checkbox “Log Door State Tracks” and click Save. This should fix the problem temporarily and allow the VGD plugin to run. I will include a permanent fix in the next VGD release.

Let me know if this works. Also. Please use the VirtualGarageDoor forum on the Indigo website to communicate with me on these issues so that other users can view the discussions.

I will write to you separately on your other 2 issues when I get some more time, probably tomorrow.

Thanks for your interest in the VGD plugin.

David, aka papamac

On May 14, 2024, at 7:51 AM, Mike @.***> wrote:

Hi,

I've finally got around to replacing some very unreliable sensors for my open/closed state of my garage door, but I'm now getting an error when the garage door is activated:

Virtual Garage Door Error Error in plugin execution ServerReplacedElem:

File "plugin.py", line 555, in deviceUpdated File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Virtual Garage Door.indigoPlugin/Contents/Server Plugin/virtualGarageDoor.py", line 358, in update type: key logDoorStateTracks not found in dict

I've changed one of the sensors to a DSC Alarm contact sensor. Here's the device definition:

batteryLevel : None buttonGroupCount : 0 configured : True description : DSC Zone 08 - Wired deviceTypeId : alarmZone displayStateId : state displayStateImageSel : SensorOff displayStateValRaw : closed displayStateValUi : closed enabled : True energyAccumBaseTime : None energyAccumTimeDelta : None energyAccumTotal : None energyCurLevel : None errorState : folderId : 481307147 globalProps : MetaProps : (dict) com.GlennNZ.indigoplugin.HomeKitLink-Siri : (dict) HomeKit_audioSelector : false (bool) HomeKit_bridgeUniqueID : 549226 (integer) HomeKit_deviceSensor : sensorValue (string) HomeKit_deviceSubtype : ContactSensor (string) HomeKit_inverseSelector : false (bool) HomeKit_publishDevice : true (bool) HomeKit_tempSelector : false (bool) homekit-name : Door Sensor (string) com.frightideas.indigoplugin.dscAlarm : (dict) Elem : (string) occupancyGroup : 0 (integer) var : None (empty) zoneLogChanges : true (bool) zoneNumber : 8 (string) zonePartition : 2 (string) zoneType : zoneTypeDoor (string) id : 444566559 lastChanged : 2024-05-14 14:49:38 lastSuccessfulComm : 2024-05-14 14:49:38 model : Alarm Zone name : Garage Door Position Sensor - Closed ownerProps : com.frightideas.indigoplugin.dscAlarm : (dict) Elem : (string) occupancyGroup : 0 (integer) var : None (empty) zoneLogChanges : true (bool) zoneNumber : 8 (string) zonePartition : 2 (string) zoneType : zoneTypeDoor (string) pluginId : com.frightideas.indigoplugin.dscAlarm pluginProps : emptyDict : (dict) protocol : Plugin remoteDisplay : True sharedProps : com.indigodomo.indigoserver : (dict) states : States : (dict) LastChangedShort : 2m (string) LastChangedTimer : 2 (integer) bypass : nobypass (string) bypass.bypassed : false (bool) bypass.nobypass : true (bool) state : closed (string) state.closed : true (bool) state.open : false (bool) state.tripped : false (bool) subModel : subType : supportsAllLightsOnOff : False supportsAllOff : False supportsOnState : False supportsStatusRequest : False version : None I'm now getting an Obstructed error in HomeKit that I think is because of this. Any ideas?

— Reply to this email directly, view it on GitHub https://github.com/papamac/VirtualGarageDoor/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKDSIJFTTJ4V6CWJCIEQW3ZCIJHFAVCNFSM6AAAAABHWHPTNWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TKNJSGEYDSOI. You are receiving this because you are subscribed to this thread.

durosity commented 1 month ago

That worked perfectly, thanks!

I've moved the feature request to the indigo forums and closed it here! 🙂