Home Assistant plugin updated for Python 3
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
I was thinking about those errors last night, and I think I might know what caused them. Did you originally create those devices as Binary Sensors? Then changed them to normal Sensors? That would probably cause that error.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
Not able to see any devices from HA when creating a New Device in Indigo of Home Assistant Agent type. Thoughts?
Here's the log from Indigo with error messages.
Just installed the plugin, an hour ago. Have restarted the HA on Rpi and restarted the Indigo Mac a couple times, each.
Here's what I see in Terminal when executing the commands listed earlier in this thread:
Here's the log from Indigo with error messages.
Code: Select all
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
Here's what I see in Terminal when executing the commands listed earlier in this thread:
Code: Select all
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: [email protected]
License: Apache-2.0
Location: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
Requires:
Required-by:
Code: Select all
gham@MacMiniM2Server ~ % which pip3
/Library/Frameworks/Python.framework/Versions/3.10/bin/pip3Code: Select all
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
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
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.
Then delete the HAA devices from Indigo, restart again, and if no errors, attempt to create a device. Then post that log.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
Thank You.
FlyingDiver wrote: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.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
Code: Select all
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- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
Delete the Indigo device called "new device", which has an empty entity (address) field. Then try again.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
Thanks. Trying again from the top of the instructions
Deleted the HAA Light Test device, restarted the plugin. No errors reported in red text but last line in log says "Connection to remote host was lost," below:
Created New Device, and see the following error in log:
Disabled plugin (which just has one device called HAA Light Test), then restarted it. Here's the log: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.
Code: Select all
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.
Code: Select all
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.Code: Select all
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- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
Well, there's two problems here. One is that the connection to the Home Assistant server is getting dropped, which will break everything else after that. And it's dropping before it even authenticates.
After that, you're creating a new device with an empty address field. Are you selecting a device from the menu popup? Or manually entering the entity address? If the websocket connection wasn't running, then plugin never got the entity list from the HA server, so the menu popup is empty.
So forget about creating any devices until you figure out why the Home Assistant server won't let the plugin connect. My guess is it's a firewall on the rPi, or maybe the Mac.
After that, you're creating a new device with an empty address field. Are you selecting a device from the menu popup? Or manually entering the entity address? If the websocket connection wasn't running, then plugin never got the entity list from the HA server, so the menu popup is empty.
So forget about creating any devices until you figure out why the Home Assistant server won't let the plugin connect. My guess is it's a firewall on the rPi, or maybe the Mac.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
When it's working properly, you should see log entries like this after plugin restart:
Make sure the Home Assistant server is running and stable before you restart the plugin. Don't restart Home Assistant.
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
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
Thanks, again, FlyingDiver.FlyingDiver wrote:When it's working properly, you should see log entries like this after plugin restart:
Make sure the Home Assistant server is running and stable before you restart the plugin. Don't restart Home Assistant.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
Have I missed some place to input a HA user/password in this plugin, or is the Access token al that's needed?
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
Just the access token.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?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
Thank you. It must be a problem with my HA configuration. For example, I setup LetsEncrypt and dynamic DNS in Home Assistant and wonder if that or something else is preventing the connection on the LAN. When this plugin runs, it tries to contact the HA several times, eventually causing me to get locked out of HA. .FlyingDiver wrote:Just the access token.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?
Will update if I find a fix....
Thanks again, FlyingDiver.
-
eme jota ce
- Posts: 655
- Joined: Thu Jul 09, 2009 1:25 pm
- Location: SW Florida
Re: Home Assistant plugin updated for Python 3
As an update to the connection issues I described above,
Commenting out the LetsEncrypt and DuckDNS remote access lines I had added to HA YAML file for remote access allowed the Home Assistant Agent plugin in Indigo to connect to HA, load many of the devices from HA, and integrate them into Indigo.
Because I hope to transition to use the Indigo Reflector for remote access, it doesn't seem like a significant loss to keep HA on the LAN without (secure) remote access.
Commenting out the LetsEncrypt and DuckDNS remote access lines I had added to HA YAML file for remote access allowed the Home Assistant Agent plugin in Indigo to connect to HA, load many of the devices from HA, and integrate them into Indigo.
Because I hope to transition to use the Indigo Reflector for remote access, it doesn't seem like a significant loss to keep HA on the LAN without (secure) remote access.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
I use a CloudFlare tunnel for remote access to the HA server.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Home Assistant plugin updated for Python 3
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
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
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Home Assistant plugin updated for Python 3
At this point I really have no idea what's going on with your system. I can't keep up with multiple users posting about different problems in the same forum thread.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
Please open a GitHub issue and include debug logs, annotated as needed to point out the issue you're seeing.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177