Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,31 @@

This repository provides an unofficial Python client for controlling the IKEA Dirigera Smart Home Hub. Current features:

- [light control](#controlling-lights)
- [outlet control](#controlling-outlets)
- [air purifier control](#controlling-air-purifier)
- [blinds control](#controlling-blinds)
- [remote controllers](#remote-controllers) (tested with STYRBAR)
- [environment sensor](#environment-sensor) (tested with VINDSTYRKA)
- [light sensor](#light-sensor) (tested with MYGGSPRAY)
- [scene](#scene)
- [motion sensor](#motion-sensor)
- [occupancy sensor](#occupancy-sensor) (tested with MYGGSPRAY)
- [open/close sensor](#open-close-sensor)
- [event listener](#event-listener) for hub events
- [Dirigera Python Client](#dirigera-python-client)
- [Installation](#installation)
- [Quickstart](#quickstart)
- [Dirigera Hub](#dirigera-hub)
- [Devices](#devices)
- [Core Device Data](#core-device-data)
- [Attributes](#attributes)
- [Capabilities](#capabilities)
- [Room](#room)
- [Controlling Lights](#controlling-lights)
- [Controlling Outlets](#controlling-outlets)
- [Controlling Air Purifier](#controlling-air-purifier)
- [Controlling Blinds](#controlling-blinds)
- [Remote Controllers](#remote-controllers)
- [Environment Sensor](#environment-sensor)
- [Scene](#scene)
- [Creating a Scene](#creating-a-scene)
- [Motion Sensor](#motion-sensor)
- [Open Close Sensor](#open-close-sensor)
- [Event Listener](#event-listener)
- [Motivation](#motivation)
- [Contributing](#contributing)
- [Setup of dev](#setup-of-dev)
- [Tests](#tests)
- [License](#license)

Support for other features will be added in the future and your input in form of issues and PRs is greatly appreciated.

Expand Down Expand Up @@ -452,9 +465,10 @@ The environment sensor object has the following attributes (additional to the co
current_temperature: Optional[float] = None
current_r_h: Optional[int] = None # current humidity
current_p_m25: Optional[int] = None # current particulate matter 2.5
current_c_o2: Optional[int] = None # current carbon dioxide in ppm, only for Alpstuga Air Quality Sensor
max_measured_p_m25: Optional[int] = None # maximum measurable particulate matter 2.5
min_measured_p_m25: Optional[int] = None # minimum measurable particulate matter 2.5
voc_index: Optional[int] = None # current volatile organic compound
voc_index: Optional[int] = None # current volatile organic compound, only for Vindstyrka Air Quality Sensor
```

Available methods for environment sensor are:
Expand Down
6 changes: 5 additions & 1 deletion src/dirigera/devices/environment_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@


class EnvironmentSensorAttributes(Attributes):
# Shared attributes
current_temperature: Optional[float] = None
current_r_h: Optional[int] = None
current_p_m25: Optional[int] = None
max_measured_p_m25: Optional[int] = None
min_measured_p_m25: Optional[int] = None
voc_index: Optional[int] = None
battery_percentage: Optional[int] = None
# Exposed by Vindstyrka Air Quality Sensor
voc_index: Optional[int] = None
# Exposed by Alpstuga Air Quality Sensor
current_c_o2: Optional[int] = None


class EnvironmentSensor(Device):
Expand Down