object 'kStateImageSel' has no attribute 'Open'

Posted on
Mon Feb 05, 2024 11:53 am
CliveS offline
Posts: 771
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

object 'kStateImageSel' has no attribute 'Open'

Now that I managed to untangle my install problems I have been playing around.

I added an Aqara P2 Matter contact sensor to Home Assistant and now have it working in Indigo, instant response but I had to change 'kStateImageSel'

Code: Select all
 Home Assistant Agent            Aqara P2 Contact Sensor Via Home Assistant: Starting Agent device for entity 'binary_sensor.aqara_door_and_window_sensor_p2_door'
   Home Assistant Agent Debug      Updating device Aqara P2 Contact Sensor Via Home Assistant with {'entity_id': 'binary_sensor.aqara_door_and_window_sensor_p2_door', 'state': 'on', 'attributes': {'device_class': 'door', 'friendly_name': 'Aqara Door and Window Sensor P2 Door'}, 'last_changed': '2024-02-05T13:16:59.863467+00:00', 'last_updated': '2024-02-05T13:16:59.863467+00:00', 'context': {'id': '01HNWPMD2QWPYF2ZCEANC3TBTP', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Aqara P2 Contact Sensor Via Home Assistant: states list changed, updating...
   Home Assistant Agent Error      Error in plugin execution ServerReplacedElem:

  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
  File "plugin.py", line 247, in deviceStartComm
  File "plugin.py", line 471, in entity_update
type: type object 'kStateImageSel' has no attribute 'Open'


CliveS

Indigo 2023.2.0 : macOS Ventura 13.6.3 : Mac Mini M2 : 8‑core CPU and 10‑core GPU : 8 GB : 256GB SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Mon Feb 05, 2024 1:18 pm
FlyingDiver offline
User avatar
Posts: 7238
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: object 'kStateImageSel' has no attribute 'Open'

Oops. That should have been "Opened" not "Open".

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests