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. It has been tested with the Linnea, so other fires may or may not be compatible

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.13.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

pyevonic-0.0.13-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyevonic-0.0.13.tar.gz
Algorithm Hash digest
SHA256 2a7dbc00c2a0c2dda8a2ecd74969fe27ebedc4b36d50bf15d8a0246430f779ef
MD5 1a14e6a0d4ae7e9a40b9fde57a270a59
BLAKE2b-256 9ae58f823619ff09bd0fb7830fa044881ba48a47a17ce5d89cbddc509feb3bbe

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyevonic-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 00dbd38e112570febd4aa0fbb4e0d8a78c02f60942fd5cf38098a1e68398b212
MD5 0e53eafb2e73969b0f47a1b527348dac
BLAKE2b-256 09cada8e8e0050726bface4b40c1c60d7b1bf93df2337f61b034b2bb9257f1e6

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