kodaksmarthome package

Submodules

kodaksmarthome.api module

class kodaksmarthome.api.KodakSmartHome(username, password, region='EU')[source]

Bases: object

Kodak Smart Home API session.

Provides connection to Kodak Smart Home portal.

Parameters
  • username (str) – username registered in Kodak Smart Home Portal

  • password (str) – password registered in Kodak Smart Home Portal

  • region (str) – Global Region Portal. Options: ‘EU’. Default: ‘EU’

connect()[source]

Connect to Kodak Smart Home Portal and get all information needed.

Returns

None

Exception

ConnectionError

disconnect()[source]

Disconnect from Kodak Smart Portal

Returns

None

Exception

ConnectionError

get_battery_events(device_id=None)[source]

List all battery devices events from specific device, sorted by creation date.

Returns

list of battery devices events

Exception

ConnectionError

Return type

list

property get_devices

List all registered devices in Kodak Smart Portal and its details.

Returns

all devices and information

Exception

ConnectionError

Return type

list

property get_events

Get all devices events

Returns

list of devices events

Exception

ConnectionError

Return type

list

get_events_device(device_id=None)[source]

Get all device events

Parameters

device_id (str) – device id available in the device information KodakSmartHome.get_devices

Returns

list events

Return type

list

get_motion_events(device_id=None)[source]

List all motion devices events from specific device sorted by creation date.

Returns

list of motion devices events

Exception

ConnectionError

Return type

list

get_sound_events(device_id=None)[source]

List all sound devices events from specific device sorted by creation date.

Returns

list of sound devices events

Exception

ConnectionError

Return type

list

update()[source]

Update the device list and events data

Returns

True

Return type

bool

Exception

ConnectionError

kodaksmarthome.constants module

Module contents