Skip to main content

A wrapper for the Evoflame API v1

Project description

Evonic Fire API Client

About

This package allows you to control and monitor an Evonic Fire, over a local WebSocket connection

Installation

pip install pyevonic

Usage

import asyncio

from pyevonic import Evonic

ev = Evonic("192.168.1.190")

async def main():
    await ev.connect()
    await ev.listen(callback=log)

def log(e):
    print(e.__dict__)


if __name__ == "__main__":
    asyncio.run(main())

Available Methods

Connect to the WebSocket of an Evonic Fire.

connect()

Listen for events on the Evonic WebSocket.

listen(callback=method)

Disconnect from a WebSocket

disconnect()

Control the main lighting for the Evonic Fire.

light_power(cmd) 

Valid cmd values: on off toggle

Toggles the feature light of an Evonic Fire

toggle_feature_light()

Sets the brightness of each RGB strip

set_light_brightness(rgb_id, brightness)

rgb_id values can be found in Device.info.modules

brightness must be an integer from 0 to 255

Sets the animation speed of each RGB strip

set_animation_speed(rgb_id, speed)

rgb_id values can be found in Device.info.modules

speed must be an integer from 0 to 255

Sets the heater temperature on an Evonic Fire

set_temperature(temp)

temp must be an integer between 50 and 90 for fahrenheit, and 10 and 33 for celsius

Controls the Heater for the Evonic Fire.

heater_power(cmd)

Valid cmd values: on off toggle

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

pyevonic-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

pyevonic-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pyevonic-0.0.2.tar.gz.

File metadata

  • Download URL: pyevonic-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pyevonic-0.0.2.tar.gz
Algorithm Hash digest
SHA256 22affaa501c78c0626ecc5809e551610cfc982d85c6f9eed814d2da2074bdcd4
MD5 4cf7c0559e141607987bef199f736079
BLAKE2b-256 f0c7f01df03966e36bb3b348e8537566302b447818dfb8f0f36e0fe186d0473a

See more details on using hashes here.

File details

Details for the file pyevonic-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyevonic-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pyevonic-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1ce3b56027f2a3787043fdf2249467169bcfa1efd220404af0aa49b9b050b7
MD5 79a9671cefc54fa4025fb72ae9778dc7
BLAKE2b-256 4b1dc89b526f1e4cc56f403d8524197c9a0f3df79e2ca182bf7f3f332148ceab

See more details on using hashes here.

Supported by

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