File: README.md

package info (click to toggle)
python-devialet 1.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 112 kB
  • sloc: python: 557; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Devialet
Devialet Python package

Please find the documentation Home Assistant documentation [here:](https://www.home-assistant.io/integrations/devialet)

**Example:**

```python
import asyncio
import aiohttp

from devialet import DevialetApi


async def main():
    session = async with aiohttp.ClientSession() as session:
        client = DevialetApi('192.168.1.10', session)
        await client.async_update()
        await client.async_set_volume_level(20)
        await client.async_media_next_track()
        await client.async_turn_off()

asyncio.run(main())

```