ouimeaux.device package

Submodules

ouimeaux.device.insight module

class ouimeaux.device.insight.Insight(url)[source]

Bases: ouimeaux.device.switch.Switch

current_power

Returns the current power usage in mW.

insight_params
last_change
on_for
ontotal
today_kwh
today_on_time
today_standby_time
totalmw

ouimeaux.device.lightswitch module

class ouimeaux.device.lightswitch.LightSwitch(url)[source]

Bases: ouimeaux.device.switch.Switch

ouimeaux.device.motion module

class ouimeaux.device.motion.Motion(url)[source]

Bases: ouimeaux.device.Device

ouimeaux.device.switch module

class ouimeaux.device.switch.Switch(url)[source]

Bases: ouimeaux.device.Device

Toggle the switch once, then again after a delay (in seconds).

off()[source]

Turn this device off. If already off, will return “Error”.

on()[source]

Turn this device on. If already on, will return “Error”.

set_state(state)[source]

Set the state of this device to on or off.

toggle()[source]

Toggle the switch’s state.

Module contents

class ouimeaux.device.Device(url)[source]

Bases: object

explain()[source]
get_service(name)[source]
get_state(force_update=False)[source]

Returns 0 if off and 1 if on.

list_services()[source]
model
name
ping()[source]
serialnumber
exception ouimeaux.device.DeviceUnreachable[source]

Bases: exceptions.Exception

exception ouimeaux.device.UnknownService[source]

Bases: exceptions.Exception

ouimeaux.device.test()[source]