(HomeKitDevices.py: Function: get_motion line: 2306) error

Posted on
Wed Jan 24, 2024 7:35 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

(HomeKitDevices.py: Function: get_motion line: 2306) error

Howdy!

I've just updated to Indigo 2023.2 with plugin 0.6.60 and when the HomeKitLink plugin is loading I'm getting this error:

Code: Select all
   HomeKitLink Siri                Starting accessory HomeKitLink Bridge 769980 with advertised addresses ['192.168.1.10'] with port 51831.
   HomeKitLink Siri Error          (HomeKitDevices.py: Function: get_motion  line: 2306):    Error :  Message : MotionSensor: Indigo DeviceID 1870655184.  Error: Value returned is not True/False.
   HomeKitLink Siri Error          (HomeKitDevices.py: Function: get_motion  line: 2306):    Error :  Message : MotionSensor: Indigo DeviceID 1870655184.  Error: Value returned is not True/False.


The motion devices are DSC Alarm plugin types. I believe this was working on older versions, but I cannot confirm that for sure. The bridge seems to load fine and is usable, but doesn't detect motion. Other sensor types from the plugin work fine, eg contact sensor.

I tried turning on debug options to submit with this, but ended up getting streams of what seemed like irrelevant data. If this is needed can you tell me which options should be enabled?

Here's the device properties in case it's of any use:

batteryLevel : None
buttonGroupCount : 0
configured : True
description : DSC Zone 05 - Wired
deviceTypeId : alarmZone
displayStateId : state
displayStateImageSel : MotionSensor
displayStateValRaw : closed
displayStateValUi : closed
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 1039530962
globalProps : MetaProps : (dict)
com.GlennNZ.indigoplugin.HomeKitLink-Siri : (dict)
HomeKit_audioSelector : false (bool)
HomeKit_bridgeUniqueID : 503716 (integer)
HomeKit_deviceSubtype : MotionSensor (string)
HomeKit_inverseSelector : false (bool)
HomeKit_publishDevice : true (bool)
HomeKit_tempSelector : false (bool)
homekit-name : Motion (string)
com.frightideas.indigoplugin.dscAlarm : (dict)
Elem : (string)
occupancyGroup : 0 (integer)
var : None (empty)
zoneLogChanges : true (bool)
zoneNumber : 5 (string)
zonePartition : 1 (string)
zoneType : zoneTypeMotion (string)
id : 471312243
lastChanged : 2024-01-25 01:33:22
lastSuccessfulComm : 2024-01-25 01:33:22
model : Alarm Zone
name : Lounge - Motion Sensor
ownerProps : com.frightideas.indigoplugin.dscAlarm : (dict)
Elem : (string)
occupancyGroup : 0 (integer)
var : None (empty)
zoneLogChanges : true (bool)
zoneNumber : 5 (string)
zonePartition : 1 (string)
zoneType : zoneTypeMotion (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

Computer says no.

Posted on
Wed Jan 24, 2024 7:47 pm
GlennNZ online
User avatar
Posts: 1574
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: (HomeKitDevices.py: Function: get_motion line: 2306) er

Hi

Will have a look (quick reply from road)

Check the published device with showallOptions in HKLS bridge the device

Check state that is being used
Must be a true false state selected for these custom plugin devices to work

Would guess state is being used which is ‘closed’
When ideally should be state.open


Sent from my iPhone using Tapatalk

Posted on
Wed Jan 24, 2024 8:14 pm
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: (HomeKitDevices.py: Function: get_motion line: 2306) er

Huzzah, that pointed me in the right direction. Here’s the weird thing.. the device type had changed to Security from Motion. At first I was wondering if it was setup incorrectly before but i reverted to indigo 2023.1 and they were set as motion. Tried re-converting and they stayed as that.. so no idea why it flipped first time around, but it’s working now!


Sent from my iPhone using Tapatalk Pro

Computer says no.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests

cron