What Casamote can do in Home Assistant
Casamote connects to Home Assistant with the rights of the user who authorised it. Here is how to check that access, limit it and revoke it.
What access does Casamote get?
- Home Assistant has no per-app or per-device permissions: a token has the same rights as the user who created it.
- Casamote uses it to read devices, areas and states, receive live changes, control your devices, show cameras and chart history.
- The connection goes straight from the TV to Home Assistant, on your network. The
https://casamote.app/address shown by Home Assistant is only the app's name: the TV intercepts the login callback, nothing goes through casamote.app. - The token is encrypted on the TV. A backup only contains it if you tick the secrets option (protected by your PIN if one is set).
What happens when you type your login
- Casamote opens your Home Assistant's login page (
/auth/authorize) in a window locked to the Home Assistant address: any other site is blocked. - You type your username and password in the Home Assistant page. Home Assistant checks them (and two-factor authentication if enabled). Casamote does not read or store them.
- Home Assistant returns a one-time code. The TV intercepts it before anything loads (nothing is sent to casamote.app) and exchanges it with Home Assistant (
/auth/token) for an access token valid for 30 minutes and a refresh token. - Only the refresh token is kept, encrypted by Android's keystore. It is used to get a new access token every 30 minutes; Home Assistant invalidates it after 90 days without use.
- With a long-lived token pasted by hand, these steps do not happen: the token is used as is until you delete it.
What Casamote asks Home Assistant for
The complete list of the app's calls. There are no others: Casamote does not read users, logs or configuration, and changes nothing in Home Assistant except through the Frigate diagnostics, which you start yourself.
| Call | Why | Admin |
|---|---|---|
WebSocket get_states · GET /api/states | Read devices and their state (at start-up and as a fallback). | no |
WebSocket subscribe_events (state_changed) | Receive live changes. | no |
WebSocket config/area_registry/list, device_registry/list, entity_registry/list | Sort devices by room, reuse their names and hidden entities. | no |
POST /api/services/<domain>/<service> | Control a device when you press a tile (turn on, adjust, open…). | no |
GET /api/camera_proxy, /api/camera_proxy_stream | Camera images and video. | no |
GET /api/history/period | Dashboard chart history. | no |
WebSocket subscribe_events (casamote_camera) | Open a camera on an event sent by your automations. | yes |
WebSocket supervisor/api | Frigate diagnostics, only when you start it: reads the add-on list and, if you confirm, opens Frigate's ports. | yes |
Check the access
- Open Home Assistant with the account used for Casamote, then Profile (bottom left) › Security tab.
- Refresh tokens: if you signed in with your Home Assistant login, Casamote is listed as
https://casamote.app/, orhttp://TV-IP:8765/if you connected from your phone, with the date it was last used. - Long-lived access tokens: if you pasted a token into Casamote, it has the name you gave it when you created it.
Check from the admin side
- Profile › Security of the account used: for each token, when it was last used and the IP address (the TV's or the phone's).
- Settings › People › Users › the account: Administrator, Can only log in from the local network, account active.
- Failed login: Home Assistant shows a notification with the source IP (and can ban it if
ip_ban_enabledis set). - Detailed log: add the block below to
configuration.yaml, restart, then Settings › System › Logs shows each Casamote connection (“Connected from IP”) and what Home Assistant sends it. Remove it afterwards: it is very verbose.
logger:
default: warning
logs:
homeassistant.components.websocket_api: debugRevoke the access
Delete the matching entry in Profile › Security: Casamote can no longer read or control anything, and the system screen in Casamote asks you to reconnect. Disabling the user in Home Assistant also cuts access.
Recommended: a dedicated, non-admin user
- In Home Assistant: Settings › People › Users (tab shown when advanced mode is on in your profile) › Add user, for example “Casamote TV”.
- Leave Administrator off and turn on Can only log in from the local network.
- Connect Casamote with this account : in Casamote's Home Assistant system, “Sign in with Home Assistant”.
- This account cannot change Home Assistant's configuration, integrations or add-ons, and you can revoke it without touching your own account.
What needs an admin account
- Everything else works without admin rights: tiles, rooms, groups, dashboards, cameras, history, Frigate detections through the Home Assistant integration.
- Frigate diagnostics: opening the add-on's ports automatically goes through the Supervisor, which is admin-only. Without it, open the ports by hand in the add-on configuration.
casamote_cameraevent: Home Assistant only lets admins listen to custom events. Without it, use the MQTT commandcasamote/camera.
Limits to know
- Even without admin rights, a Home Assistant user can control all devices: Home Assistant cannot restrict access device by device.
- Hiding a device in Casamote removes it from the screen, not from the token's access.
- Locks, gates and alarms stay protected in Casamote by the PIN, whatever the Home Assistant account.