Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able unblock Windows device #73

Open
4 tasks done
OneAn9ryN00b opened this issue Dec 20, 2024 · 0 comments
Open
4 tasks done

Not able unblock Windows device #73

OneAn9ryN00b opened this issue Dec 20, 2024 · 0 comments

Comments

@OneAn9ryN00b
Copy link

System Health details

System Information

version core-2024.12.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.0
os_name Linux
os_version 6.6.66-haos
arch x86_64
timezone America/New_York
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4979
Installed Version 2.0.1
Stage running
Available Repositories 1497
Downloaded Repositories 28
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.1
update_channel stable
supervisor_version supervisor-2024.12.0
agent_version 1.6.0
docker_version 27.2.0
disk_total 457.7 GB
disk_used 36.1 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Samba share (12.3.2), Home Assistant Google Drive Backup (0.112.1), Node-RED (18.1.1), Studio Code Server (5.17.3), Terminal & SSH (9.16.0), InfluxDB (5.0.1), Grafana (10.2.2), Cloudflared (5.2.3), ESPHome Device Builder (2024.12.1), TasmoAdmin (0.31.2), Network UPS Tools (0.14.0)
Dashboards
dashboards 7
resources 14
views 29
mode storage
Recorder
oldest_recorder_run December 10, 2024 at 2:54 AM
current_recorder_run December 20, 2024 at 12:02 PM
estimated_db_size 811.93 MiB
database_engine sqlite
database_version 3.45.3

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

I'm not able unblock Windows device that is already set to block. I however can block it successfully from the Integration. It also shows correct screentime in the sensors section of the integration, so I know the integration is set up properly, and connected to my account. But unblocking the Windows PC gives me a popup error: Failed to perform the action switch/turn_off. ('HTTP Error', 500, "Internal Server Error".

Ironically. when I go in the actual Family Safety app, and unblock the PC, it shows up in the logs of the Integration that its been unblocked.

This has always been present, and never working for me in previous versions, so its not isolated to this newest version. So I don't know if its something else going on with my account. I have un-installed and re-installed the integration a couple of times in my troubleshooting, but so far same results. Just wondering if there's anything else i can try, or look at. I can provide more logs if needed.

image

Reproduction steps

1.Clicking on the switch to off on the "Block Windows" automatically produces the HTTP Error.

Debug logs

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:07:37 PM (3 occurrences)
Last logged: 12:11:01 PM

[140302400486512] Unexpected exception
[140302423064240] Unexpected exception
[140302424046704] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/family_safety/switch.py", line 117, in async_turn_off
    await self._disable_override()
  File "/config/custom_components/family_safety/entity_base.py", line 144, in _disable_override
    await self._account.override_device(self._platform, OverrideType.CANCEL)
  File "/usr/local/lib/python3.13/site-packages/pyfamilysafety/account.py", line 150, in override_device
    response = await self._api.send_request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/pyfamilysafety/api.py", line 116, in send_request
    raise HttpException("HTTP Error", response.status, await response.text())
pyfamilysafety.exceptions.HttpException: ('HTTP Error', 500, '"Internal Server Error"')

Diagnostics dump

config_entry-family_safety-01JD969PA4XNXNASMRM5VBKRHJ.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant