You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added my TV (Philips 65PUS8545 Android 11) to HA via philips_js integration (API 6).
It quickly recognized the TV, then switched to "Unavailable" state.
I've attached everything I could, it seems to me that HA is continuously getting some invalid JSON from the TV...
What version of Home Assistant Core has the issue?
core-2024.4.2
What was the last working version of Home Assistant Core?
2024-04-11 18:02:46.704 DEBUG (MainThread) [haphilipsjs] Get succeded: activities/current -> {"component":{"packageName":"org.droidtv.playtv","className":"org.droidtv.playtv.PlayTvActivity"}}
2024-04-11 18:02:46.772 DEBUG (MainThread) [haphilipsjs] Get succeded: context -> Context Service not started
2024-04-11 18:02:46.772 DEBUG (MainThread) [haphilipsjs] Invalid json received, trying adjusted version
2024-04-11 18:02:46.773 ERROR (MainThread) [homeassistant.components.philips_js] Unexpected error fetching philips_js data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/homeassistant/components/philips_js/__init__.py", line 191, in _async_update_data
await self.api.update()
File "/usr/local/lib/python3.12/site-packages/haphilipsjs/__init__.py", line 736, in update
await self.getContext()
File "/usr/local/lib/python3.12/site-packages/haphilipsjs/__init__.py", line 832, in getContext
r = cast(Optional[ContextType], await self.getReq(f"context"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/haphilipsjs/__init__.py", line 577, in getReq
return decode_xtv_response(resp)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/haphilipsjs/__init__.py", line 133, in decode_xtv_response
return decode_xtv_json(text)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/haphilipsjs/__init__.py", line 116, in decode_xtv_json
data = json.loads(text)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-04-11 18:02:46.782 DEBUG (MainThread) [homeassistant.components.philips_js] Finished fetching philips_js data in 2.037 seconds (success: False)
Additional information
My HA instance is a completely new containerized instance, this is my first integration, tried the "usual" workarounds from similar issues (restarting this and that, unplugging TV, etc).
The text was updated successfully, but these errors were encountered:
Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration (philips_js) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of philips_js can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign philips_js Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
I've added my TV (Philips
65PUS8545
Android 11) to HA viaphilips_js
integration (API 6).It quickly recognized the TV, then switched to "Unavailable" state.
I've attached everything I could, it seems to me that HA is continuously getting some invalid JSON from the TV...
What version of Home Assistant Core has the issue?
core-2024.4.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Philips TV
Link to integration documentation on our website
https://www.home-assistant.io/integrations/philips_js
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
My HA instance is a completely new containerized instance, this is my first integration, tried the "usual" workarounds from similar issues (restarting this and that, unplugging TV, etc).
The text was updated successfully, but these errors were encountered: