core icon indicating copy to clipboard operation
core copied to clipboard

Family Hub Camera not working on Samsung TIZEN 4.0

Open GuruPG opened this issue 6 years ago • 72 comments

Home Assistant release with the issue: 0.101.2

Last working Home Assistant release (if known): Unknown

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io runing on Raspberry 4

Integration: https://www.home-assistant.io/integrations/familyhub/

Description of problem: Camera feed does not work after fridge has upgraded to TIZEN 4.0 firmware.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

camera:
  - platform: familyhub
    ip_address: '192.168.0.103'

Traceback (if applicable):

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 496, in get
    return await self.handle(request, camera)
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 513, in handle
    image = await camera.async_camera_image()
  File "/usr/src/homeassistant/homeassistant/components/familyhub/camera.py", line 47, in async_camera_image
    return await self.family_hub_cam.async_get_cam_image()
  File "/usr/local/lib/python3.7/site-packages/pyfamilyhublocal/__init__.py", line 29, in async_get_cam_image
    glazeCameraInfo = await self._get_cam_info()
  File "/usr/local/lib/python3.7/site-packages/pyfamilyhublocal/__init__.py", line 57, in _get_cam_info
    data = json.loads(await response.read())
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/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)

Additional information:

GuruPG avatar Nov 02 '19 17:11 GuruPG

I have the same issue - as very clearly described above. Happy to provide any diagnostic data if helpful.

angustyler avatar Jan 02 '20 19:01 angustyler

Hasn't worked for me for sometime now, too (months). Here's my log. Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 496, in get return await self.handle(request, camera) File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 513, in handle image = await camera.async_camera_image() File "/usr/src/homeassistant/homeassistant/components/familyhub/camera.py", line 47, in async_camera_image return await self.family_hub_cam.async_get_cam_image() File "/usr/local/lib/python3.7/site-packages/pyfamilyhublocal/__init__.py", line 29, in async_get_cam_image glazeCameraInfo = await self._get_cam_info() File "/usr/local/lib/python3.7/site-packages/pyfamilyhublocal/__init__.py", line 57, in _get_cam_info data = json.loads(await response.read()) File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.7/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)

DKrics avatar Jan 05 '20 20:01 DKrics

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 04 '20 21:04 stale[bot]

Issue is still present.

zirdum avatar Apr 04 '20 21:04 zirdum

Same

GuruPG avatar Apr 04 '20 23:04 GuruPG

Still not working despite up to date version of HA.

DKrics avatar Apr 04 '20 23:04 DKrics

Issue is still presistent

gmony911 avatar Apr 28 '20 00:04 gmony911

same over here

dvbit avatar Jun 03 '20 11:06 dvbit

Same here as well

On Wed, 3 Jun 2020, 12:16 dvbit, [email protected] wrote:

same over here

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/28473#issuecomment-638129169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDAO7LCPG4GEYOZV4DZV7TRUYWIHANCNFSM4JIGZZNQ .

angustyler avatar Jun 03 '20 11:06 angustyler

Still not working running 0.112.4

aLTeReGo-SWI avatar Jul 11 '20 22:07 aLTeReGo-SWI

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 12 '20 03:10 stale[bot]

Still an open issue.

GuruPG avatar Oct 12 '20 06:10 GuruPG

Same issue, just tried setting up the integration today.

ReenigneArcher avatar Nov 20 '20 01:11 ReenigneArcher

Same issue

ishboo avatar Nov 22 '20 21:11 ishboo

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 20 '21 22:02 github-actions[bot]

I confirm this still occurs with latest version.

On Sat, 20 Feb 2021, 22:18 github-actions[bot], [email protected] wrote:

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/28473#issuecomment-782757941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDAO7KP754SJ4NIM4PWVILTAAYMTANCNFSM4JIGZZNQ .

angustyler avatar Feb 20 '21 22:02 angustyler

The underlying python module no longer works as is with Tizen 4.0. It's looking for this URL: http://ip:17654/.krate/owner/share/scloud/glazeCameraInfo.txt to parse and then make subsequent requests for the actual images. This URL now returns a 404 as do the typical camera_#.jpg URLs. I have been unable to find what the new URL should be if it even exists. Samsung may have just removed the access altogether.

veilofsecurity avatar Apr 23 '21 19:04 veilofsecurity

The Samsung Family Hub app for Android (and probably ios) is able to show the inside view of the fridge. Maybe the integration could be fixed by inspecting the traffic for the official app and replicating it to the integration.

ReenigneArcher avatar May 14 '21 15:05 ReenigneArcher

Same issue here :( still does not work on 2021.6.6

hesspoint avatar Jun 24 '21 14:06 hesspoint

Same issue core-2021.8.1

modogo2000 avatar Aug 10 '21 19:08 modogo2000

still no worky

angrycatmeowmeow avatar Oct 11 '21 15:10 angrycatmeowmeow

still not working same issue... broken image icon

AndyPuderbach avatar Dec 15 '21 18:12 AndyPuderbach

Still seeing this issue on HA 2022.2.3

dmrichards26 avatar Feb 08 '22 15:02 dmrichards26

Is this integration actually still maintained? I get the feeling that it is abandoned.

hesspoint avatar Feb 08 '22 18:02 hesspoint

Is this integration actually still maintained? I get the feeling that it is abandoned.

It's dead

ReenigneArcher avatar Feb 09 '22 02:02 ReenigneArcher

dead

atv2016 avatar May 27 '22 08:05 atv2016

Im on tizen 6 but it's still dead

michauMiau avatar Oct 06 '22 14:10 michauMiau

I tried adding my fridge and opening up the settings from the UI and I see the following message:

This entity ('camera.familyhub_camera') does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.

I can only assume it's dead from the earlier posts.

amathews84 avatar Oct 11 '22 04:10 amathews84

RIP

thenoid avatar Dec 29 '22 05:12 thenoid

I have the same issue, I would like to have this functionality so +1 on my end if anyone can solve it.

djfjeff avatar Jan 20 '23 14:01 djfjeff