thank you for that . I was always told it was 8001 because i could access the api via a browser
it seems to work yet this error keeps appearing
2019-10-21 19:37:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 273, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 832, in state_attributes
for attr in ATTR_TO_PROPERTY
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 833, in <dictcomp>
if getattr(self, attr) is not None
File "/config/custom_components/samsungtv_custom/media_player.py", line 304, in source_list
self._gen_installed_app_list()
File "/config/custom_components/samsungtv_custom/media_player.py", line 219, in _gen_installed_app_list
app_list = self._remote.app_list()
File "/usr/local/lib/python3.7/site-packages/samsungtvws/remote.py", line 175, in app_list
self._ws_send(payload)
File "/usr/local/lib/python3.7/site-packages/samsungtvws/remote.py", line 91, in _ws_send
self.connection.send(payload)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 250, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 275, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 445, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 117, in send
return sock.send(data)
File "/usr/local/lib/python3.7/ssl.py", line 1003, in send
return self._sslobj.write(data)
BrokenPipeError: [Errno 32] Broken pipe
2019-10-21 19:37:22 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for media_player.samsung_tv (<class 'custom_components.samsungtv_custom.media_player.SamsungTVDevice'>) took 2.734 seconds. Please report platform to the developers at https://goo.gl/Nvioub