Page 1 of 1
Error on new install
Posted:
Fri Feb 02, 2024 11:42 am
by CliveS
I am unable to install HA Agent . I have reloaded several times, deleted plugin and pref files, redownloaded plugin.
The error I get is
- Code: Select all
Installing and enabling plugin Home Assistant Agent v2023.4.1
Loading plugin "Home Assistant Agent 2023.4.1" using API v3.4
Starting plugin "Home Assistant Agent 2023.4.1" (pid 67570)
Reloading plugin "Web Server 2023.2.0" using API v3.3
Stopping plugin "Web Server 2023.2.0" (pid 67491)
Processing requirements for plugin "Home Assistant Agent 2023.4.1"
Requirements installing, this may take a few seconds...
Reflector shutdown reflector connection
Stopped plugin "Web Server 2023.2.0"
Starting plugin "Web Server 2023.2.0" (pid 67574)
Finished installing requirements for "Home Assistant Agent 2023.4.1", continuing startup
Started plugin "Home Assistant Agent 2023.4.1"
Home Assistant Agent Error Error in plugin execution startup:
File "plugin.py", line 151, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_core.py", line 181, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 374, in create_sockets
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 331, in new_respond_socket
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 248, in new_socket
type: [Errno 48] Address already in use
Home Assistant Agent Error Error in plugin execution UiAction:
File "plugin.py", line 280, in menuChangedConfig
type: 'NoneType' object is not subscriptable
2 Feb 2024 at 13:41:40
File "plugin.py", line 280, in menuChangedConfig
type: 'NoneType' object is not subscriptable
Home Assistant Agent Debug logLevel = 10
Home Assistant Agent Debug start_websocket called with delay=0, using homeassistant.local:8123
Home Assistant Agent Debug Attempting connection to 'ws://homeassistant.local:8123/api/websocket'
Home Assistant Agent Debug Websocket connection successful
Home Assistant Agent Debug Websocket got auth_required for ha_version 2024.1.6, sending auth_token
Home Assistant Agent Debug Websocket got auth_ok for ha_version 2024.1.6
Home Assistant Agent Debug Websocket reply Success for subscribe_events
Home Assistant Agent Debug Websocket reply Success for get_states
2 Feb 2024 at 13:42:10
Reloading plugin "Home Assistant Agent 2023.4.1" using API v3.4
Stopping plugin "Home Assistant Agent 2023.4.1" (pid 67570)
Home Assistant Agent Debug stop_concurrent_thread called
Home Assistant Agent Debug shutdown called
Stopped plugin "Home Assistant Agent 2023.4.1"
Starting plugin "Home Assistant Agent 2023.4.1" (pid 67654)
Processing requirements for plugin "Home Assistant Agent 2023.4.1"
Requirements for "Home Assistant Agent 2023.4.1" previously processed, continuing startup
Started plugin "Home Assistant Agent 2023.4.1"
Home Assistant Agent Debug startup called
Home Assistant Agent Error Error in plugin execution startup:
File "plugin.py", line 151, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_core.py", line 181, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 374, in create_sockets
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 331, in new_respond_socket
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 248, in new_socket
type: [Errno 48] Address already in use
Indigo version: 2023.2.0
Silicon version: arm64
Re: Error on new install
Posted:
Fri Feb 02, 2024 1:16 pm
by FlyingDiver
From what I can tell, this is due to some other application/software running on that system that's already obtained exclusive use of the mDNS port (which it shouldn't be doing).
Is this a dedicated Indigo system? If not, what else are you running on it? Are you running multiple user accounts simultaneously?
Re: Error on new install
Posted:
Fri Feb 02, 2024 1:22 pm
by FlyingDiver
Re: Error on new install
Posted:
Fri Feb 02, 2024 4:51 pm
by CliveS
I think I may have pinned it down to adding a Silicon Labs zwave 700 dongle to HA, I was going to use that to add a few more devices and use the plugin to bring them into Indigo but will just stick to using Home Assistant to just run Zigbee2mqtt, Adguard, MQTT Explorer, Node-Red, Scrypted, Mosquitto and Tailscale on my old 2014 MacBook and leave home automation to Indigo.
Re: Error on new install
Posted:
Fri Feb 02, 2024 4:53 pm
by FlyingDiver
I'm not sure how that could be related to the error above.
Re: Error on new install
Posted:
Sat Feb 03, 2024 5:48 am
by CliveS
FlyingDiver wrote:I'm not sure how that could be related to the error above.
Yes you are correct (should not write replies half asleep!).
This morning I transferred my Indigo license to my MacBook M1 and installed the plug-in and got exactly the same error.
I then turned on debug and could setup and control a Tasmota switch (Sonos Woofer), then reloaded the plugin and the error returned, changed the debug mode and could once again control the device until a plugin reload.
At the end of the logs I changed the Sonos Woofer to Tasmota Display lights and they also came on and off until a reload when it failed again.
I'm Baffled
Logs are below
- Code: Select all
Stopped plugin "Home Assistant Agent 2023.4.1"
Starting plugin "Home Assistant Agent 2023.4.1" (pid 5913)
Processing requirements for plugin "Home Assistant Agent 2023.4.1"
Requirements for "Home Assistant Agent 2023.4.1" previously processed, continuing startup
Started plugin "Home Assistant Agent 2023.4.1"
Home Assistant Agent Debug startup called
Home Assistant Agent Error Error in plugin execution startup:
File "plugin.py", line 151, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_core.py", line 181, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 374, in create_sockets
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 331, in new_respond_socket
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 248, in new_socket
type: [Errno 48] Address already in use
Home Assistant Agent Sonos woofer Tasmota Switch: Starting Agent device for entity 'switch.sonos_woofer'
Home Assistant Agent Debug Sonos woofer Tasmota Switch: switch.sonos_woofer not in ha_entity_map[switch][sonos_woofer]
Home Assistant Agent Debug Sonos woofer Tasmota Switch: sending TurnOn (0) to switch.sonos_woofer
Home Assistant Agent Error Websocket not connected, cannot send: {'type': 'call_service', 'target': {'entity_id': 'switch.sonos_woofer'}, 'domain': 'switch', 'service': 'turn_on'}
Home Assistant Agent Debug Sonos woofer Tasmota Switch: sending TurnOn (0) to switch.sonos_woofer
Home Assistant Agent Error Websocket not connected, cannot send: {'type': 'call_service', 'target': {'entity_id': 'switch.sonos_woofer'}, 'domain': 'switch', 'service': 'turn_on'}
3 Feb 2024 at 11:20:57
Home Assistant Agent Debug found_server_list: filter = , typeId = 0, targetId = 0, valuesDict = UiValuesDict : (dict)
address : 192.168.100.140 (string)
found_list : (string)
haToken : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyOWEyMDRmZTJlMTM0YmE4YTRkNmUxZjk5M2M1MGRjZiIsImlhdCI6MTcwNjk1ODczOCwiZXhwIjoyMDIyMzE4NzM4fQ.g_BXbB76Xjvx_gxFaaEIRFMMXrD2G3WVHkdiyMl7K5w (string)
logLevel : 5 (string)
port : 8123 (string)
temp_scale : C (string)
Home Assistant Agent Debug found_station_list: retList = []
Home Assistant Agent Debug closedPrefsConfigUi: valuesDict = UiValuesDict : (dict)
address : 192.168.100.140 (string)
found_list : (string)
haToken : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyOWEyMDRmZTJlMTM0YmE4YTRkNmUxZjk5M2M1MGRjZiIsImlhdCI6MTcwNjk1ODczOCwiZXhwIjoyMDIyMzE4NzM4fQ.g_BXbB76Xjvx_gxFaaEIRFMMXrD2G3WVHkdiyMl7K5w (string)
logLevel : 20 (string)
port : 8123 (string)
temp_scale : C (string)
Tasmota Bridge received "T Sonos Woofer" outlet state update: "on"
Tasmota Bridge received "T Sonos Woofer" outlet state update: "off"
Tasmota Bridge received "T Sonos Woofer" outlet state update: "on"
Tasmota Bridge received "T Sonos Woofer" outlet state update: "off"
3 Feb 2024 at 11:21:45
Reloading plugin "Home Assistant Agent 2023.4.1" using API v3.4
Stopping plugin "Home Assistant Agent 2023.4.1" (pid 5913)
Home Assistant Agent Sonos woofer Tasmota Switch: Stopping Agent device for entity 'switch.sonos_woofer'
Stopped plugin "Home Assistant Agent 2023.4.1"
Starting plugin "Home Assistant Agent 2023.4.1" (pid 5979)
Processing requirements for plugin "Home Assistant Agent 2023.4.1"
Requirements for "Home Assistant Agent 2023.4.1" previously processed, continuing startup
Started plugin "Home Assistant Agent 2023.4.1"
Home Assistant Agent Error Error in plugin execution startup:
File "plugin.py", line 151, in startup
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_core.py", line 181, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 374, in create_sockets
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 331, in new_respond_socket
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/HomeAssistantAgent.indigoPlugin/Contents/Packages/zeroconf/_utils/net.py", line 248, in new_socket
type: [Errno 48] Address already in use
Home Assistant Agent Sonos woofer Tasmota Switch: Starting Agent device for entity 'switch.sonos_woofer'
Home Assistant Agent Error Websocket not connected, cannot send: {'type': 'call_service', 'target': {'entity_id': 'switch.sonos_woofer'}, 'domain': 'switch', 'service': 'turn_off'}
Home Assistant Agent Error Websocket not connected, cannot send: {'type': 'call_service', 'target': {'entity_id': 'switch.sonos_woofer'}, 'domain': 'switch', 'service': 'turn_on'}
Home Assistant Agent Error Websocket not connected, cannot send: {'type': 'call_service', 'target': {'entity_id': 'switch.sonos_woofer'}, 'domain': 'switch', 'service': 'turn_off'}
3 Feb 2024 at 11:23:31
Home Assistant Agent Debug logLevel = 10
Home Assistant Agent Debug start_websocket called with delay=0, using 192.168.100.140:8123
Home Assistant Agent Debug Attempting connection to 'ws://192.168.100.140:8123/api/websocket'
Home Assistant Agent Debug Websocket connection successful
Home Assistant Agent Debug Websocket got auth_required for ha_version 2024.1.6, sending auth_token
Home Assistant Agent Debug Websocket got auth_ok for ha_version 2024.1.6
Home Assistant Agent Debug Websocket reply Success for subscribe_events
Home Assistant Agent Debug Websocket reply Success for get_states
Home Assistant Agent Debug Updating device Sonos woofer Tasmota Switch with {'entity_id': 'switch.sonos_woofer', 'state': 'off', 'attributes': {'friendly_name': 'Sonos Woofer'}, 'last_changed': '2024-02-03T11:21:18.332449+00:00', 'last_updated': '2024-02-03T11:21:18.332449+00:00', 'context': {'id': '01HNQB743PPRQYNQ1TQYX2GYNB', 'parent_id': None, 'user_id': '7c6425205091474b97b48ee61c02e444'}}
Home Assistant Agent Debug Sonos woofer Tasmota Switch: sending TurnOn (0) to switch.sonos_woofer
Home Assistant Agent Debug call_service event: switch turn_on ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_on ['switch.sonos_woofer']
Home Assistant Agent Debug Websocket reply Success for call_service
Home Assistant Agent Debug call_service event: switch turn_on ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_on ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_on ['switch.sonos_woofer']
Tasmota Bridge received "T Sonos Woofer" outlet state update: "on"
Home Assistant Agent Debug Updating device Sonos woofer Tasmota Switch with {'entity_id': 'switch.sonos_woofer', 'state': 'on', 'attributes': {'friendly_name': 'Sonos Woofer'}, 'last_changed': '2024-02-03T11:23:36.830915+00:00', 'last_updated': '2024-02-03T11:23:36.830915+00:00', 'context': {'id': '01HNQBBBBE05RJSNVN25B34EJW', 'parent_id': None, 'user_id': '7c6425205091474b97b48ee61c02e444'}}
Home Assistant Agent Debug Sonos woofer Tasmota Switch: sending TurnOff (0) to switch.sonos_woofer
Home Assistant Agent Debug call_service event: switch turn_off ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_off ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_off ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_off ['switch.sonos_woofer']
Home Assistant Agent Debug call_service event: switch turn_off ['switch.sonos_woofer']
Home Assistant Agent Debug Websocket reply Success for call_service
Tasmota Bridge received "T Sonos Woofer" outlet state update: "off"
Home Assistant Agent Debug Updating device Sonos woofer Tasmota Switch with {'entity_id': 'switch.sonos_woofer', 'state': 'off', 'attributes': {'friendly_name': 'Sonos Woofer'}, 'last_changed': '2024-02-03T11:23:39.576554+00:00', 'last_updated': '2024-02-03T11:23:39.576554+00:00', 'context': {'id': '01HNQBBE1WTSFYM7074FNEV5E2', 'parent_id': None, 'user_id': '7c6425205091474b97b48ee61c02e444'}}
Home Assistant Agent Debug found_server_list: filter = , typeId = 0, targetId = 0, valuesDict = UiValuesDict : (dict)
address : 192.168.100.140 (string)
found_list : (string)
haToken : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIyOWEyMDRmZTJlMTM0YmE4YTRkNmUxZjk5M2M1MGRjZiIsImlhdCI6MTcwNjk1ODczOCwiZXhwIjoyMDIyMzE4NzM4fQ.g_BXbB76Xjvx_gxFaaEIRFMMXrD2G3WVHkdiyMl7K5w (string)
logLevel : 10 (string)
port : 8123 (string)
temp_scale : C (string)
Home Assistant Agent Debug found_station_list: retList = []
Tasmota Bridge received "T Sonos Woofer" outlet state update: "on"
Tasmota Bridge received "T Sonos Woofer" outlet state update: "off"
3 Feb 2024 at 11:25:27
Home Assistant Agent Sonos woofer Tasmota Switch: Stopping Agent device for entity 'switch.sonos_woofer'
Home Assistant Agent Sonos woofer Tasmota Switch: Starting Agent device for entity 'switch.living_room_display_lights'
3 Feb 2024 at 11:26:03
Tasmota Bridge received "T Living Room Display Lights" outlet state update: "on"
Tasmota Bridge received "T Living Room Display Lights" outlet state update: "off"
3 Feb 2024 at 11:26:21
Tasmota Bridge received "T Living Room Display Lights" outlet state update: "on"
Tasmota Bridge received "T Living Room Display Lights" outlet state update: "off"
Re: Error on new install
Posted:
Sat Feb 03, 2024 7:19 am
by FlyingDiver
Please answer the questions in my original post:
viewtopic.php?f=396&t=27779&p=223179#p223163Please disable (or delete) the existing HAA devices, and all other non-essential Indigo plugins (especially "Tasmota Bridge", which I can't find in the plugin store). Then restart the Indigo server (not just the plugin).
Re: Error on new install
Posted:
Sat Feb 03, 2024 8:35 am
by FlyingDiver
Also, you say this is a new install? So it's never worked previously? I'm wondering how the address of the HA server got set to homeassistant.local in the plugin config if the plugin is crashing on restart.
Re: Error on new install
Posted:
Sat Feb 03, 2024 9:03 am
by CliveS
Finally got this working.
I formatted the computer about 4 days before the latest Indigo update as Sonoma was causing problems with shortcuts. I reverted back to Ventura, reinstalled Indigo and copied over the backup I took just before the format. It is an M2 Mac mini and the only user is 'indigo'.
I stopped all plugins and HAA devices, rebooted the Mac and still got the errors so the only other apps I had loaded were Tailscale and NoMachine.
I stopped them from loading and restarted the Mac and HAA loaded with no errors, enabled all plugins and restarted and still loading fine, reinstalled NoMachine and Tailscale and rebooted and still HAA loading fine.
Rebooted 2 more times and still no problems so possibly either NoMachine or Tailscale was blocking the initial install.
Tasmota Bridge (aka core bridge) was written by @autolog as a private plugin for a HA box called CORE (which was a disaster) that we were both beta testing and I am using the plugin now just for bringing in Tasmota mains plugs into Indigo, our CORE box's are both gathering dust just like our Hubitat box's.
I did have it loaded before the change to Ventura but never used it so that is possibly were the homeassist.local came from
Thanks for pointing me in the right direction and getting it sorted.