I tried out the custom component but it doesn’t seem to work for now.
It states an unknown error when trying to connect on all the three API’s.
Here some logs:
Logger: custom_components.philips_js
Source: custom_components/philips_js/config_flow.py:136
Integration: Philips TV (documentation)
First occurred: 11:51:44 (4 occurrences)
Last logged: 11:53:07
System data is empty
Logger: aiohttp.server
Source: custom_components/philips_js/config_flow.py:104
First occurred: 11:51:41 (8 occurrences)
Last logged: 11:53:09
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 155, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/philips_js/config_flow.py", line 152, in async_step_user
return await self.async_step_pair()
File "/config/custom_components/philips_js/config_flow.py", line 104, in async_step_pair
self._pair_state = await self._hub.pairRequest(
File "/usr/local/lib/python3.8/site-packages/haphilipsjs/__init__.py", line 346, in pairRequest
raise NoneJsonData(resp.text)
haphilipsjs.NoneJsonData: Non json data received: <html><head><title>Method not allowed</title></head><body>Method not allowed</body></html>