Skip to content

Commit

Permalink
IKEA INSPELNING support (#98)
Browse files Browse the repository at this point in the history
* Update outlet.py for Inspelning support

* Forgot the import

* Make the pipeline happy
  • Loading branch information
AboveColin authored Sep 24, 2024
1 parent bd07475 commit 2918080
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/dirigera/devices/outlet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations
import datetime
from typing import Any, Optional, Dict
from .device import Attributes, Device, StartupEnum
from ..hub.abstract_smart_home_hub import AbstractSmartHomeHub
Expand All @@ -10,8 +11,19 @@


class OutletAttributes(Attributes):
# pylint: disable=too-many-positional-arguments
is_on: bool
startup_on_off: Optional[StartupEnum] = None
status_light: Optional[bool] = None
identify_period: Optional[int] = None
permitting_join: Optional[bool] = None
energy_consumed_at_last_reset: Optional[float] = None
current_active_power: Optional[float] = None
current_amps: Optional[float] = None
current_voltage: Optional[float] = None
total_energy_consumed: Optional[float] = None
total_energy_consumed_last_updated: Optional[datetime.datetime] = None
time_of_last_energy_reset: Optional[datetime.datetime] = None


class Outlet(Device):
Expand Down

0 comments on commit 2918080

Please sign in to comment.