Python integration with local Evonic Fire WebSocket server
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
pip install pyevonic
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())
connect()
listen(callback=method)
disconnect()
light_power(cmd)
Valid cmd
values: on
off
toggle
toggle_feature_light()
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
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
set_temperature(temp)
temp
must be an integer between 50
and 90
for fahrenheit, and 10
and 33
for celsius
heater_power(cmd)
Valid cmd
values: on
off
toggle