Skip to main content

Connect to F&F Fox devices via RestAPI.

Project description

RestAPI Client for F&F Fox devices

This package contains simple RestAPI client written in Python for F&F Filipowski Sp. j. Fox devices such as single switch & energy (R1S1), double switch (R2S2), led (LED2S2), dimmer (DIM1S2), color module (RGBW), roller shutter (STR1S2).

Requirements

To obtain communication with device you should firstly configure it via F&F Fox mobile application available on Android and IOS (instructions included in app). Next grant access to remote control and enable RestAPI server with one of the following mode

  • Static RestAPI client auth key

  • Dynamic RestAPI client auth key

  • No auth key (default 000 should be used)

Attention All F&F Fox devices supports now only HTTP GET request method. In near future mqtt client will be available.

Features

  • Async API device communication
  • Turn on/off device
  • Change brightness (DIM1S2, LED2S2, RGBW)
  • Change color in HSV mode (RGBW)
  • Open/Close gate (STR1S2)
  • Change tilt position (STR1S2)
  • Get device information (such as manufacturer, firmaware version etc.)

Example

The following example illustrate how to configure F&F Fox double switch module

doubleSwitch = FoxR2S2Device(
	DeviceData(NAME, HOST, API_KEY, UNIQUE_ID, TYPE, CHANNELS))
  • Name: name of device
  • Host: device IP address (e.g 192.168.0.100)
  • API_KEY: auth api key, get it from F&F Fox mobile app
  • UNIQUE_ID: unique id for device
  • TYPE: device type (see wiki page)
  • CHANNELS: optional channel array

Turning on device:

await doubleSwitch.async_set_device_state(True)

More information about how to control device via API methods you can find on wiki page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foxrestapiclient-0.1.10.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file foxrestapiclient-0.1.10.tar.gz.

File metadata

  • Download URL: foxrestapiclient-0.1.10.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.10

File hashes

Hashes for foxrestapiclient-0.1.10.tar.gz
Algorithm Hash digest
SHA256 91f9ac95f63c3f0132b95158968122f4e4a4dccbb574f809ac17c0d3c3febbd3
MD5 0e9803aee1693a21f7edd1d81e5a9c60
BLAKE2b-256 7fd7387006a7a8835ad9d16dc8fb60125747f43bdd6d3bab0b0c85be3623929a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page