[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113183":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":14,"starSnapshotCount":14,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},113183,"point-remote-card","onkeloki\u002Fpoint-remote-card","onkeloki","Home Assistant card: point your phone at a lamp, blind, TV or speaker to control it – by compass or by camera recognition, no extra hardware",null,"JavaScript",76,4,52,0,11,22,49.8,"MIT License",false,"main",true,[23,24,25,26,27,28],"custom-card","hacs","home-assistant","homeassistant","lovelace","lovelace-card","2026-11-17 13:25:36","2026-11-19 23:39:36","# Point Remote Card\n\n[![hacs_badge](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FHACS-Custom-41BDF5.svg)](https:\u002F\u002Fwww.hacs.xyz\u002Fdocs\u002Fmarketplace\u002F)\n[![Validate](https:\u002F\u002Fgithub.com\u002Fonkeloki\u002Fpoint-remote-card\u002Factions\u002Fworkflows\u002Fvalidate.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fonkeloki\u002Fpoint-remote-card\u002Factions\u002Fworkflows\u002Fvalidate.yml)\n\n**Point your phone at a lamp, blind, TV or amplifier – and control it.**\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"point-remote-card-demo.gif\" alt=\"Point Remote Card demo: aiming the phone at devices and controlling them\" width=\"480\">\n\u003C\u002Fp>\n\nA Home Assistant dashboard card that turns your phone into a pointing remote. No extra hardware, no beacons:\nthe card reads the phone's compass and tilt sensors, so it knows where the top edge of the phone is pointing.\nYou teach each device's direction once from a place (couch, kitchen, …), and from then on you just aim and tap.\n\n## Features\n\n- 🎯 **Aim & control** – the device you point at is shown big, with controls that fit it:\n\n  | Device | Controls |\n  |---|---|\n  | Light | on\u002Foff, dim −\u002F+, warm\u002Fneutral\u002Fcold white, colour swatches (only what the lamp supports) |\n  | Cover \u002F blind | up · stop · down, position presets |\n  | Media player (TV, amplifier) | power, volume −\u002F+, play\u002Fpause, mute, source buttons |\n  | Fan | on\u002Foff, speed −\u002F+ |\n  | Climate | target temperature −\u002F+ |\n  | Lock | lock \u002F unlock |\n  | Switch, input boolean | on\u002Foff |\n  | Scene, script, button | activate \u002F run \u002F press |\n- 📷 **Camera mode** – no compass, no fixed place: aim the camera at a device and it is recognised in the picture (see below)\n- 📡 **Radar view** – all taught devices around your current aim (amber = on\u002Fopen, grey = off)\n- 🛋️ **One card per place** – add several cards (“Couch”, “Kitchen”, …), each with its own taught directions\n- 📍 **Location-aware** – combine with Home Assistant's card *visibility* conditions to show the right card where you are (see below)\n- 📳 **Haptic feedback** in the companion app; the target stays selected until you aim at another device, so you can lower the phone to tap\n- 🌍 **English, German, Dutch, French, Spanish, Italian** – follows your Home Assistant language (translations welcome!)\n- ☁️ Directions are stored in your Home Assistant user profile and work on every device you log in with\n\n## Installation\n\n### Marketplace (Home Assistant 2026.11 and newer)\n\n1. **Settings → Marketplace** → **Add from link** (upper right)\n2. GitHub link: `onkeloki\u002Fpoint-remote-card` → **Add** (type **Dashboard**, if asked)\n3. Open **Point Remote Card**, select **Install** and reload the browser \u002F app\n\n### HACS (Home Assistant before 2026.11)\n\n1. HACS → ⋮ → **Custom repositories**\n2. Repository: `https:\u002F\u002Fgithub.com\u002Fonkeloki\u002Fpoint-remote-card`, type **Dashboard**\n3. Install **Point Remote Card** and reload the browser \u002F app\n\n### Manual\n\n1. Copy `point-remote-card.js` to `\u002Fconfig\u002Fwww\u002Fpoint-remote-card.js`\n2. Settings → Dashboards → ⋮ → **Resources** → add `\u002Flocal\u002Fpoint-remote-card.js` as *JavaScript module*\n\n## Configuration\n\nThe card has a visual editor. In YAML:\n\n```yaml\ntype: custom:point-remote-card\nname: Couch            # name of the place, shown as title\nid: couch              # optional storage id – set it if you want to rename the card later without re-teaching\nauto_toggle: true      # optional – toggle a device just by pointing at it (see below)\nauto_toggle_delay: 1200 # optional – how long to point before it toggles, in ms (default 1200)\nentities:              # optional – without it, every supported device can be taught\n  - light.living_room\n  - cover.blind_left\n  - media_player.tv\n```\n\nPer-device options (YAML only):\n\n```yaml\nentities:\n  - entity: light.led_strip\n    name: LED strip\n    colors: [\"#ff0000\", \"#00ff00\", [0, 80, 255]]   # own colour swatches\n  - entity: cover.blind_left\n    positions: [0, 30, 60, 100]                   # own position presets\n  - entity: media_player.amplifier\n    sources: [TV, Spotify, Radio]                 # only these source buttons (false = none)\n  - entity: cover.balcony\n    auto_toggle: false                            # never toggle this one automatically\n```\n\n### Auto toggle\n\nWith `auto_toggle: true` you don't need to press anything: keep pointing at a device and a ring around the aim fills up –\nwhen it is full, the device toggles (on\u002Foff, open\u002Fclose, scene\u002Fscript\u002Fbutton: activate). Great for demos and exhibitions.\n\n- Pointing away and back toggles again; staying on the device does not.\n- Close calls between two devices never toggle.\n- Locks and climate devices are never toggled automatically; exclude more with `auto_toggle: false` per device.\n- Works in compass and camera mode.\n\n### Several places, automatically\n\nEach card is one place. Use the built-in visibility conditions to show the right one, e.g. with a room-presence sensor\n([Bermuda](https:\u002F\u002Fgithub.com\u002Fagittins\u002Fbermuda), ESPresense, …):\n\n```yaml\ntype: sections\nmax_columns: 1\nsections:\n  - type: grid\n    cards:\n      - type: custom:point-remote-card\n        name: Couch\n        visibility:\n          - condition: state\n            entity: sensor.my_phone_area\n            state_not: Kitchen\n      - type: custom:point-remote-card\n        name: Kitchen\n        visibility:\n          - condition: state\n            entity: sensor.my_phone_area\n            state: Kitchen\n```\n\n## Usage\n\n1. Open the card on your phone and tap **Enable sensors** (iOS asks for motion & orientation access once).\n2. Open **Teach devices**, pick a device, point the **top edge** of the phone at it and tap **Point now & save**. Hold still for a second.\n3. Repeat for each device.\n4. Now just point – the device is recognised and its controls appear.\n\n## Good to know\n\n- Directions are relative to **where you are**. Teach them from the place you'll use; use one card per place.\n- Indoor compasses are bent by speakers, radiators and steel, but since you teach and use from the same place, that error is mostly the same both times and cancels out.\n- Devices closer together than ~10–15° (seen from your place) are hard to tell apart; the card then says “close call”.\n- If the hint says the compass is inaccurate, move the phone in a figure eight.\n- **The sensors and the camera need https** (e.g. Nabu Casa or your own TLS) – on iOS and Android. Over plain `http:\u002F\u002Fhomeassistant.local:8123` the browser hides them; the card then tells you so.\n- Taught directions are stored per Home Assistant user.\n- Built and tuned for iPhone. Android uses the absolute orientation event and should work, but is untested so far – feedback welcome.\n\n## Camera mode\n\nCompass directions only work from the place you taught them. If you walk around a lot, use the camera mode instead:\nthe card shows the camera picture with a frame, and the device inside the frame is recognised.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"point-remote-card-camera-demo.gif\" alt=\"Camera mode demo: the device inside the frame is recognised and its controls appear\" width=\"300\">\n\u003C\u002Fp>\n\n```yaml\ntype: custom:point-remote-card\nmode: camera\nname: Camera remote\nentities:              # optional – limit recognition to these devices\n  - light.floor_lamp\n  - media_player.tv\ncamera_threshold: 0.7  # optional – how similar the picture must be (0…1), default 0.7\n```\n\n1. Tap **Start camera** and allow access.\n2. Open **Teach devices**, pick a device, aim so the device fills the frame and tap **Save view**. Hold still for a second.\n3. Save **2–3 views per device** from different spots and distances (and maybe with the light on and off). The more views, the better it works wherever you stand.\n4. Now just aim – the frame turns amber and the controls appear.\n\nGood to know:\n\n- Recognition runs **on the phone**. No picture leaves the device; only a compact fingerprint of each taught view (≈1.4 kB) is stored in your Home Assistant user profile. Camera views are shared by all camera cards of a user.\n- On first start the card loads the [MediaPipe](https:\u002F\u002Fai.google.dev\u002Fedge\u002Fmediapipe) image embedder (≈4 MB library + model from jsDelivr and Google, cached afterwards). For an offline setup host the files yourself and set `camera_lib` (folder of `@mediapipe\u002Ftasks-vision`) and `camera_model` (`.tflite` URL).\n- The card compares the whole frame, not just the device. Two devices that look alike *and* stand in a similar spot can be confused – then save more views or a closer one. The hint below the controls shows the current match score, which helps to tune `camera_threshold`.\n- The camera only runs while the card is visible and stops when the app goes to the background. Tap ■ to stop it.\n- Needs **https** like the compass. Tested in Chrome; in the companion apps the app must be allowed to use the camera – feedback welcome.\n\n## Upgrading from zeig-licht-card 1.x\n\nThe card was renamed. `custom:zeig-licht-card` keeps working, and a card without `name`\u002F`id` (or with `id: default`) takes over the directions taught with 1.x.\n\n## How it works\n\nThe heading of the phone's top edge is `360° − alpha` and its tilt is `beta` of the\n[DeviceOrientation](https:\u002F\u002Fdeveloper.mozilla.org\u002Fdocs\u002FWeb\u002FAPI\u002FDeviceOrientationEvent) event. On iOS, `alpha` is not north-referenced,\nso the card continuously estimates an offset from `webkitCompassHeading`. The device whose stored direction has the smallest\nangle to the current aim (max. 18°) is selected.\n\n## License\n\nMIT\n","Point Remote Card 是一款 Home Assistant 的自定义 Lovelace 卡片，将智能手机转化为无硬件依赖的指向式遥控器。它利用手机内置的陀螺仪与电子罗盘（或可选摄像头识别）实时判断设备朝向，支持对灯光、窗帘、媒体播放器、空调等设备进行方向绑定与一键控制；具备多区域配置（如客厅\u002F厨房独立学习）、雷达视图、本地化语言及 HACS\u002FMarketplace 便捷安装。适用于家庭自动化场景中希望摆脱物理遥控器、简化多设备交互的用户，尤其适合固定位置（如沙发）的日常控制需求。",2,"2026-11-24 04:45:04","CREATED_QUERY"]