Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Module to integrate Teufel smart speakers (aka Raumfeld Multiroom) intohttps://www.home-assistant.io/.

License

NotificationsYou must be signed in to change notification settings

B5r1oJ0A9G/hassfeld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language grade Python

hassfeld is a module primarily aimed to integrated Teufel Smart Speaker (aka Raumfeld Multiroom) intohttps://www.home-assistant.io/. However, the design is not tailored to Home Assistant and can be used as a module to any Pyhton program to control the Teufel Smart Speaker. The module also provides corresponding asyncio methods.

Look how it is to use with asyncrhonous I/O:

import asyncioimport aiohttpimport hassfeldasync def main():    host = "teufel-host.example.com"    port = 47365    session = aiohttp.ClientSession()    raumfeld = hassfeld.RaumfeldHost(host, port, session=session)    asyncio.create_task(raumfeld.async_update_all(session))    await raumfeld.async_wait_initial_update()    zone = ["Master Bedroom"]    media_info = await raumfeld.async_get_media_info(zone)    print(f"Media info: {media_info}")    await session.close()asyncio.run(main())

The use with blocking I/O was supported too but is currently broken:

import hassfeldraumfeld_host = "teufel-host.example.com"zone = [ "Living room", "Kitchen" ]raumfeld = hassfeld.RaumfeldHost(raumfeld_host)raumfeld.start_update_thread()raumfeld.search_and_zone_play(zone, 'raumfeld:any contains "Like a Rolling Stone"')

Features

  • Management and snapshot of zones.
  • Search and play songs.

Install hassfeld by running:

python3 -m pip install hassfeld

Contribute

License

The project is licensed under the GNU General Public License v3 (GPLv3).

About

Module to integrate Teufel smart speakers (aka Raumfeld Multiroom) intohttps://www.home-assistant.io/.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp