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
Release history Release notifications | RSS feed
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.1.tar.gz
(6.6 kB
view hashes)