6 Feb 2025 • Apple products quarantine post

This is a combo post for a couple of nice little things you can do with your phone.

"Siri vacuum the kitchen"

Valetudo has a Home Assistant integration, you have to set up some MQTT garbage and that's probably annoying so I didn't do it.

Instead, you can get the payloads by hitting F12 in chrome and use the Shortcuts app to send HTTP requests. Assembling JSON payloads in the phone app is not very nice so do it on your laptop.

The relevant payloads are:

Start/pause/stop/go home:

PUT /api/v2/robot/capabilities/BasicControlCapability
{action: "start/pause/stop/home"}

Vacuum a specific room:

PUT /api/v2/robot/capabilities/MapSegmentationCapability
{
    "action": "start_segment_action",
    "segment_ids": ["XXX"],
    "iterations": 1,
    "customOrder": true
}

Get the segment ID from the inspector.

Vacuum a box:

PUT /api/v2/robot/capabilities/ZoneCleaningCapability
{
    "action": "clean",
    "zones":[{
        "iterations": 1,
        "points": {
            "pA": {"x": 2240, "y": 1855},
            "pB": {"x": 2475, "y": 1855},
            "pC": {"x": 2475, "y": 2115},
            "pD": {"x": 2240, "y": 2115}
        }
    }]
}

Get the coords from the inspector too.

Store cards

Pass4Wallet lets you add custom cards to Apple Wallet, and also lets you put them on the lock screen at certain locations, like how boarding passes show up at the airport.

You can put store cards in, Verkkokauppa have a barcode you can find in account settings that lets you tie purchases to your account, Kela-kortti barcodes are just your Henkilötunnus, and so on.

It's free and it works with no trash.

You can also configure Shortcuts to fire when you arrive at a certain location, such as setting your watch face to your K-Plussa barcode when you go to the supermarket. For this, find an online barcode to SVG generator, paste it into this template, and export at 352x430. The machine scanners don't have the resolution to read it but the handheld scanners can.