Enabling plugin "Home Assistant Agent 2023.1.0" using API v3.0
Starting plugin "Home Assistant Agent 2023.1.0" (pid 1611)
Started plugin "Home Assistant Agent 2023.1.0"
Oct 5, 2023 at 3:41:46 PM
Home Assistant Agent Error Error in plugin execution MenuAction:
File "plugin.py", line 551, in get_states
File "plugin.py", line 780, in send_ws
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websocket/_app.py", line 252, in send
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websocket/_core.py", line 285, in send
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websocket/_core.py", line 313, in send_frame
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websocket/_core.py", line 527, in _send
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websocket/_socket.py", line 145, in send
type: socket is already closed.
Home Assistant Agent Error Error in plugin execution GetUiDynamicList:
File "plugin.py", line 237, in get_entity_list
type: ('light',)
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error Error in plugin execution ServerReplacedElem:
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
File "plugin.py", line 156, in deviceStartComm
type: list index out of range
Home Assistant Agent new device: Stopping Agent device for entity ''
Home Assistant Agent Error Error in plugin execution GetUiDynamicList:
File "plugin.py", line 237, in get_entity_list
type: ('switch',)
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error Error in plugin execution ServerReplacedElem:
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
File "plugin.py", line 156, in deviceStartComm
type: list index out of range
Home Assistant Agent new device: Stopping Agent device for entity ''
Home Assistant Agent Error Error in plugin execution GetUiDynamicList:
File "plugin.py", line 237, in get_entity_list
type: ('binary_sensor',)
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error Error in plugin execution ServerReplacedElem:
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
File "plugin.py", line 156, in deviceStartComm
type: list index out of range
ham@MacMiniM2Server ~ % pip3 show websocket-client
Name: websocket-client
Version: 1.6.3
Summary: WebSocket client for Python with low level API options
Home-page: https://github.com/websocket-client/websocket-client.git
Author: liris
Author-email: liris.pp@gmail.com
License: Apache-2.0
Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
Requires:
Required-by:
gham@MacMiniM2Server ~ % which pip3
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3
ham@MacMiniM2Server ~ % pip3 list
Package Version
------------------------------------------------- ---------
aiofiles 23.2.1
anyio 4.0.0
async-timeout 4.0.3
certifi 2023.7.22
cffi 1.16.0
cryptography 41.0.1
cycler 0.12.0
dictdiffer 0.9.0
exceptiongroup 1.1.3
fonttools 4.43.0
h11 0.14.0
httpcore 0.16.3
httptools 0.6.0
httpx 0.23.3
idna 3.4
ifaddr 0.2.0
janus 1.0.0
Jinja2 3.1.2
kiwisolver 1.4.5
MarkupSafe 2.1.1
matplotlib 3.5.1
multidict 6.0.4
numpy 1.24.4
packaging 23.2
Pillow 10.0.1
pip 21.2.4
pycparser 2.21
pyobjc 8.4.1
pyobjc-core 8.4.1
pyobjc-framework-Accessibility 8.4.1
pyobjc-framework-Accounts 8.4.1
pyobjc-framework-AddressBook 8.4.1
pyobjc-framework-AdServices 8.4.1
pyobjc-framework-AdSupport 8.4.1
pyobjc-framework-AppleScriptKit 8.4.1
pyobjc-framework-AppleScriptObjC 8.4.1
pyobjc-framework-ApplicationServices 8.4.1
pyobjc-framework-AppTrackingTransparency 8.4.1
pyobjc-framework-AudioVideoBridging 8.4.1
pyobjc-framework-AuthenticationServices 8.4.1
pyobjc-framework-AutomaticAssessmentConfiguration 8.4.1
pyobjc-framework-Automator 8.4.1
pyobjc-framework-AVFoundation 8.4.1
pyobjc-framework-AVKit 8.4.1
pyobjc-framework-BusinessChat 8.4.1
pyobjc-framework-CalendarStore 8.4.1
pyobjc-framework-CallKit 8.4.1
pyobjc-framework-CFNetwork 8.4.1
pyobjc-framework-ClassKit 8.4.1
pyobjc-framework-CloudKit 8.4.1
pyobjc-framework-Cocoa 8.4.1
pyobjc-framework-Collaboration 8.4.1
pyobjc-framework-ColorSync 8.4.1
pyobjc-framework-Contacts 8.4.1
pyobjc-framework-ContactsUI 8.4.1
pyobjc-framework-CoreAudio 8.4.1
pyobjc-framework-CoreAudioKit 8.4.1
pyobjc-framework-CoreBluetooth 8.4.1
pyobjc-framework-CoreData 8.4.1
pyobjc-framework-CoreHaptics 8.4.1
pyobjc-framework-CoreLocation 8.4.1
pyobjc-framework-CoreMedia 8.4.1
pyobjc-framework-CoreMediaIO 8.4.1
pyobjc-framework-CoreMIDI 8.4.1
pyobjc-framework-CoreML 8.4.1
pyobjc-framework-CoreMotion 8.4.1
pyobjc-framework-CoreServices 8.4.1
pyobjc-framework-CoreSpotlight 8.4.1
pyobjc-framework-CoreText 8.4.1
pyobjc-framework-CoreWLAN 8.4.1
pyobjc-framework-CryptoTokenKit 8.4.1
pyobjc-framework-DataDetection 8.4.1
pyobjc-framework-DeviceCheck 8.4.1
pyobjc-framework-DictionaryServices 8.4.1
pyobjc-framework-DiscRecording 8.4.1
pyobjc-framework-DiscRecordingUI 8.4.1
pyobjc-framework-DiskArbitration 8.4.1
pyobjc-framework-DVDPlayback 8.4.1
pyobjc-framework-EventKit 8.4.1
pyobjc-framework-ExceptionHandling 8.4.1
pyobjc-framework-ExecutionPolicy 8.4.1
pyobjc-framework-ExternalAccessory 8.4.1
pyobjc-framework-FileProvider 8.4.1
pyobjc-framework-FileProviderUI 8.4.1
pyobjc-framework-FinderSync 8.4.1
pyobjc-framework-FSEvents 8.4.1
pyobjc-framework-GameCenter 8.4.1
pyobjc-framework-GameController 8.4.1
pyobjc-framework-GameKit 8.4.1
pyobjc-framework-GameplayKit 8.4.1
pyobjc-framework-ImageCaptureCore 8.4.1
pyobjc-framework-IMServicePlugIn 8.4.1
pyobjc-framework-InputMethodKit 8.4.1
pyobjc-framework-InstallerPlugins 8.4.1
pyobjc-framework-InstantMessage 8.4.1
pyobjc-framework-Intents 8.4.1
pyobjc-framework-IntentsUI 8.4.1
pyobjc-framework-IOSurface 8.4.1
pyobjc-framework-iTunesLibrary 8.4.1
pyobjc-framework-KernelManagement 8.4.1
pyobjc-framework-LatentSemanticMapping 8.4.1
pyobjc-framework-LaunchServices 8.4.1
pyobjc-framework-libdispatch 8.4.1
pyobjc-framework-LinkPresentation 8.4.1
pyobjc-framework-LocalAuthentication 8.4.1
pyobjc-framework-LocalAuthenticationEmbeddedUI 8.4.1
pyobjc-framework-MailKit 8.4.1
pyobjc-framework-MapKit 8.4.1
pyobjc-framework-MediaAccessibility 8.4.1
pyobjc-framework-MediaLibrary 8.4.1
pyobjc-framework-MediaPlayer 8.4.1
pyobjc-framework-MediaToolbox 8.4.1
pyobjc-framework-Metal 8.4.1
pyobjc-framework-MetalKit 8.4.1
pyobjc-framework-MetalPerformanceShaders 8.4.1
pyobjc-framework-MetalPerformanceShadersGraph 8.4.1
pyobjc-framework-MetricKit 8.4.1
pyobjc-framework-MLCompute 8.4.1
pyobjc-framework-ModelIO 8.4.1
pyobjc-framework-MultipeerConnectivity 8.4.1
pyobjc-framework-NaturalLanguage 8.4.1
pyobjc-framework-NetFS 8.4.1
pyobjc-framework-Network 8.4.1
pyobjc-framework-NetworkExtension 8.4.1
pyobjc-framework-NotificationCenter 8.4.1
pyobjc-framework-OpenDirectory 8.4.1
pyobjc-framework-OSAKit 8.4.1
pyobjc-framework-OSLog 8.4.1
pyobjc-framework-PassKit 8.4.1
pyobjc-framework-PencilKit 8.4.1
pyobjc-framework-Photos 8.4.1
pyobjc-framework-PhotosUI 8.4.1
pyobjc-framework-PreferencePanes 8.4.1
pyobjc-framework-PushKit 8.4.1
pyobjc-framework-Quartz 8.4.1
pyobjc-framework-QuickLookThumbnailing 8.4.1
pyobjc-framework-ReplayKit 8.4.1
pyobjc-framework-SafariServices 8.4.1
pyobjc-framework-SceneKit 8.4.1
pyobjc-framework-ScreenCaptureKit 8.4.1
pyobjc-framework-ScreenSaver 8.4.1
pyobjc-framework-ScreenTime 8.4.1
pyobjc-framework-ScriptingBridge 8.4.1
pyobjc-framework-SearchKit 8.4.1
pyobjc-framework-Security 8.4.1
pyobjc-framework-SecurityFoundation 8.4.1
pyobjc-framework-SecurityInterface 8.4.1
pyobjc-framework-ServiceManagement 8.4.1
pyobjc-framework-ShazamKit 8.4.1
pyobjc-framework-Social 8.4.1
pyobjc-framework-SoundAnalysis 8.4.1
pyobjc-framework-Speech 8.4.1
pyobjc-framework-SpriteKit 8.4.1
pyobjc-framework-StoreKit 8.4.1
pyobjc-framework-SyncServices 8.4.1
pyobjc-framework-SystemConfiguration 8.4.1
pyobjc-framework-SystemExtensions 8.4.1
pyobjc-framework-UniformTypeIdentifiers 8.4.1
pyobjc-framework-UserNotifications 8.4.1
pyobjc-framework-UserNotificationsUI 8.4.1
pyobjc-framework-VideoSubscriberAccount 8.4.1
pyobjc-framework-VideoToolbox 8.4.1
pyobjc-framework-Virtualization 8.4.1
pyobjc-framework-Vision 8.4.1
pyobjc-framework-WebKit 8.4.1
pyparsing 3.1.1
python-dateutil 2.8.2
rfc3986 1.5.0
sanic 22.6.1
sanic-routing 22.3.0
sanic-session 0.8.0
scipy 1.8.0
setuptools 58.1.0
six 1.16.0
sniffio 1.3.0
typing_extensions 4.8.0
ujson 5.8.0
uvloop 0.17.0
websocket-client 1.6.3
websockets 10.4
zeroconf 0.115.2
WARNING: You are using pip version 21.2.4; however, version 23.2.1 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip' command.
FlyingDiver wrote:Turn on debug logging, then restart the plugin, then post that part of the log (up to first error).
- Code: Select all
Oct 5, 2023 at 9:13:42 PM
Home Assistant Agent Debug logLevel = 10
Oct 5, 2023 at 9:14:00 PM
Disabling plugin "Home Assistant Agent 2023.1.0"
Stopping plugin "Home Assistant Agent 2023.1.0" (pid 1611)
Home Assistant Agent Debug stop_concurrent_thread called
Home Assistant Agent new device: Stopping Agent device for entity ''
Home Assistant Agent Debug shutdown called
Stopped plugin "Home Assistant Agent 2023.1.0"
Enabling plugin "Home Assistant Agent 2023.1.0" using API v3.0
Starting plugin "Home Assistant Agent 2023.1.0" (pid 21672)
Home Assistant Agent Debug logLevel = 10
Started plugin "Home Assistant Agent 2023.1.0"
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://10.0.1.201:8123/api/websocket'
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error exception in device_start_comm(new device): list index out of range
Then delete the HAA devices from Indigo, restart again, and if no errors, attempt to create a device. Then post that log.
Started plugin "Home Assistant Agent 2023.1.0"
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://10.0.1.201:8123/api/websocket'
Home Assistant Agent Debug Service Rustic Oaks._home-assistant._tcp.local. of type _home-assistant._tcp.local. state changed: ServiceStateChange.Added
Home Assistant Agent Debug Found HA Servers: {'Rustic Oaks._home-assistant._tcp.local.': {'ip_address': '10.0.1.201', 'port': 8123}}
Home Assistant Agent Debug Websocket on_error: Connection to remote host was lost.
Oct 5, 2023 at 9:16:00 PM
Home Assistant Agent Debug get_entity_list: filter = 'light', typeId = 'HAdimmerType', valuesDict = <indigo.Dict object at 0x110287bc0>, targetId = 446348291
Home Assistant Agent Error Error in plugin execution GetUiDynamicList:
File "plugin.py", line 237, in get_entity_list
type: ('light',)
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error Error in plugin execution ServerReplacedElem:
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
File "plugin.py", line 156, in deviceStartComm
type: list index out of range
Turn on debug logging, then restart the plugin, then post that part of the log (up to first error).
Then delete the HAA devices from Indigo, restart again, and if no errors, attempt to create a device. Then post that log.
Enabling plugin "Home Assistant Agent 2023.1.0" using API v3.0
Starting plugin "Home Assistant Agent 2023.1.0" (pid 59778)
Home Assistant Agent Debug logLevel = 10
Started plugin "Home Assistant Agent 2023.1.0"
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://10.0.1.201:8123/api/websocket'
Home Assistant Agent HAA Light Test: Starting Agent device for entity ''
Home Assistant Agent Error exception in device_start_comm(HAA Light Test): list index out of range
Home Assistant Agent Debug Service Rustic Oaks._home-assistant._tcp.local. of type _home-assistant._tcp.local. state changed: ServiceStateChange.Added
Home Assistant Agent Debug Found HA Servers: {'Rustic Oaks._home-assistant._tcp.local.': {'ip_address': '10.0.1.201', 'port': 8123}}
Home Assistant Agent Debug Websocket on_error: Connection to remote host was lost.
Oct 6, 2023 at 7:14:44 AM
Home Assistant Agent HAA Light Test: Stopping Agent device for entity ''
Oct 6, 2023 at 7:15:01 AM
Disabling plugin "Home Assistant Agent 2023.1.0"
Stopping plugin "Home Assistant Agent 2023.1.0" (pid 59778)
Home Assistant Agent Debug stop_concurrent_thread called
Home Assistant Agent Debug shutdown called
Stopped plugin "Home Assistant Agent 2023.1.0"
Enabling plugin "Home Assistant Agent 2023.1.0" using API v3.0
Starting plugin "Home Assistant Agent 2023.1.0" (pid 60003)
Home Assistant Agent Debug logLevel = 10
Started plugin "Home Assistant Agent 2023.1.0"
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://10.0.1.201:8123/api/websocket'
Home Assistant Agent Debug Service Rustic Oaks._home-assistant._tcp.local. of type _home-assistant._tcp.local. state changed: ServiceStateChange.Added
Home Assistant Agent Debug Found HA Servers: {'Rustic Oaks._home-assistant._tcp.local.': {'ip_address': '10.0.1.201', 'port': 8123}}
Home Assistant Agent Debug Websocket on_error: Connection to remote host was lost.
Oct 6, 2023 at 7:17:16 AM
Home Assistant Agent Debug get_entity_list: filter = 'light', typeId = 'HAdimmerType', valuesDict = <indigo.Dict object at 0x10988fc30>, targetId = 233094297
Home Assistant Agent Error Error in plugin execution GetUiDynamicList:
File "plugin.py", line 237, in get_entity_list
type: ('light',)
Oct 6, 2023 at 7:17:50 AM
Home Assistant Agent new device: Starting Agent device for entity ''
Home Assistant Agent Error Error in plugin execution ServerReplacedElem:
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1385, in device_updated
File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1321, in _dispatch_device_start_comm
File "plugin.py", line 156, in deviceStartComm
type: list index out of range
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://192.168.111.8:8123/api/websocket'
Home Assistant Agent Debug Websocket connected
Home Assistant Agent Debug Websocket got auth_required for ha_version 2023.10.0, sending auth_token
Home Assistant Agent Debug Websocket got auth_ok for ha_version 2023.10.0
Home Assistant Agent Debug Websocket reply Success for subscribe_events
Home Assistant Agent Debug Websocket reply Success for get_states
FlyingDiver wrote:When it's working properly, you should see log entries like this after plugin restart:
- Code: Select all
Home Assistant Agent Debug startup called
Home Assistant Agent Debug Connecting to 'ws://192.168.111.8:8123/api/websocket'
Home Assistant Agent Debug Websocket connected
Home Assistant Agent Debug Websocket got auth_required for ha_version 2023.10.0, sending auth_token
Home Assistant Agent Debug Websocket got auth_ok for ha_version 2023.10.0
Home Assistant Agent Debug Websocket reply Success for subscribe_events
Home Assistant Agent Debug Websocket reply Success for get_states
Make sure the Home Assistant server is running and stable before you restart the plugin. Don't restart Home Assistant.
eme jota ce wrote:Have I missed some place to input a HA user/password in this plugin, or is the Access token al that's needed?
FlyingDiver wrote:eme jota ce wrote:Have I missed some place to input a HA user/password in this plugin, or is the Access token al that's needed?
Just the access token.
EagleDTW wrote:Hi Joe,
The sensors have always had values such as numbers so probably never existed as binary_snesors. I realized how to create input_booleans for a couple of other devices instead of them having their values be switches which was causing a bunch of problems. To that end my arm_disarm input boolean is throwing this error: Error device "Arm&Disarm" state key onOffState not defined --which leads me to believe that these errors may be more on the side of HA not defining the values correctly for something coming across in these entities?
-Daniel
Users browsing this forum: No registered users and 1 guest