Metadata-Version: 2.4
Name: ovos-home-plugin-dirigera
Version: 0.1.0a1
Summary: IKEA DIRIGERA as a brand of ovos-PHAL-plugin-home: IKEA lights, outlets, blinds, air purifiers, sensors, remotes, rooms and scenes in the one home - paired with the hub's button, all in the house. Made for Emkay.
Author: emkay-voice
Maintainer: Andreas Lorensen
License: Apache-2.0
Project-URL: Homepage, https://github.com/emkay-voice/ovos-home-plugin-dirigera
Project-URL: Issues, https://github.com/emkay-voice/ovos-home-plugin-dirigera/issues
Project-URL: Contract, https://github.com/emkay-voice/ovos-PHAL-plugin-home/blob/main/SPEC.md
Project-URL: Emkay, https://github.com/emkay-voice/emkay
Keywords: ovos,openvoiceos,plugin,smart-home,ikea,dirigera,tradfri,emkay
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Home Automation
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ovos-PHAL-plugin-home>=0.1.0a2
Requires-Dist: dirigera>=1.2
Requires-Dist: zeroconf
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# ovos-home-plugin-dirigera

IKEA's [DIRIGERA](https://www.ikea.com/) hub as one brand of the one home for OpenVoiceOS, [ovos-PHAL-plugin-home](https://github.com/emkay-voice/ovos-PHAL-plugin-home): IKEA lights, outlets, blinds, air purifiers, sensors and remotes, with the rooms and scenes from the IKEA Home smart app.

Made for [Emkay](https://emkay.ai), and works on any OVOS with the home plugin.

**All in the house.** DIRIGERA needs no internet connection, and nothing here leaves the LAN: the hub is the one host the brand talks to.

## Pairing

In the control panel's page **Home**, under Brands: **Find and pair**. The house finds the hub on the network (mDNS), says *press the button on the hub now*, and keeps the token it gets – readable only by the user OVOS runs as, never in `mycroft.conf`. Without the panel:

```json
"PHAL": {
  "ovos-PHAL-plugin-home": {
    "brands": {
      "dirigera": {"host": "192.168.1.50"}
    }
  }
}
```

and send `ovos.home.brand.pair` `{"brand": "dirigera", "hub": "192.168.1.50"}`, then press the button.

## What comes along

| DIRIGERA | The home |
|---|---|
| lights | on/off, brightness, warmth and colour as the lamp can |
| outlets | on/off, with power and energy where the outlet measures them (INSPELNING) |
| blinds | by position (FYRTUR, KADRILJ, PRAKTLYSING …) |
| air purifiers | on/off and auto/low/medium/high, with PM2.5 (STARKVIND) |
| environment sensors | temperature, humidity, PM2.5, CO₂, VOC (VINDSTYRKA, ALPSTUGA) |
| door/window, motion, water sensors | readings and events: a door opened, someone moved, **water** (PARASOLL, VALLHORN, BADRING) |
| remotes | buttons: pressed, double, long (STYRBAR, RODRET, SOMRIG) |
| rooms and scenes | from the IKEA Home smart app |

## Good to know

- DIRIGERA's local API isn't documented by IKEA. It is the one the community has worked out, spoken here through the [`dirigera`](https://github.com/Leggin/dirigera) library. A firmware update could change it.
- **Tested** against JSON as dumped from real hubs, not yet against a hub of our own. If you have a DIRIGERA, reports are very welcome in the issues – especially about blinds (which way is up) and remotes.

## License

Apache-2.0
