Giter Club home page Giter Club logo

xiaomi_miio_gateway's Introduction

xiaomi_miio_gateway

Home Assistant Xiaomi Gateway Radio

This is a custom component to play/stop the Network radio in a Xiaomi Gateway

this plays the last played station on the gateway

follow this to get custom radios in the gateway -> http://ximiraga.ru

Installation:

Follow only one of these installation methods.

Installation and tracking with HACS:
  1. You can install this custom component by adding this repository (https://github.com/h4v1nfun/xiaomi_miio_gateway) to HACS in the settings menu of HACS first. You will find the custom component in the integration menu afterwards, look for 'Xiaomi Mi Gateway Radio Media Player'.

  2. Set the configuration.yaml

Manual installation:
  1. Copy xiaomi_gateway_radio into custom_components

  2. Set the configuration.yaml

configuration.yaml example

media_player:
  - platform: xiaomi_gateway_radio
    host: <ip of gateway>
    token: <gateway token>

token is obtained the same way as explained here -> https://www.home-assistant.io/components/vacuum.xiaomi_miio/#retrieving-the-access-token

Contributors:

https://github.com/VedgeKonn

https://github.com/glebsterx

https://github.com/fufar

xiaomi_miio_gateway's People

Contributors

fufar avatar glebsterx avatar h4v1nfun avatar vedgekonn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xiaomi_miio_gateway's Issues

MediaPlayerDevice is deprecated

Hello.
HA had some changes and now MediaPlayerDevice is deprecated.
This is message from HA logs

Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:938 
Integration: Медиаплеер (documentation, issues) 
First occurred: 0:12:53 (1 occurrences) 
Last logged: 0:12:53

MediaPlayerDevice is deprecated, modify XiaomiGateway to extend MediaPlayerEntity

HA WARNING: Radio will no longer be loaded due to "No 'version' key in the manifest"

I got this error a few minutes ago and it is right that there is no version number in that file.
Not a big deal to add I guess.

Source: loader.py:794
First occurred: 20:00:02 (1 occurrences)
Last logged: 20:00:02

No 'version' key in the manifest file for custom integration 'xiaomi_gateway_radio'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'xiaomi_gateway_radio'

Dependencies import error after 0.88

Hi.
Can you please update component to make compatiable to the latest HA version.

2019-02-21 10:49:44 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.media_player.xiaomi_miio_gateway. Make sure all dependencies are installed
Traceback (most recent call last):
  File "d:\program\python\python36\lib\site-packages\homeassistant\loader.py", line 147, in _load_file
    module = importlib.import_module(path)
  File "d:\program\python\python36\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "d:\User\.homeassistant\custom_components\media_player\xiaomi_miio_gateway.py", line 11, in <module>
    from homeassistant.components.media_player import (
ImportError: cannot import name 'SUPPORT_TURN_ON'

Maybe related to https://developers.home-assistant.io/blog/2019/02/19/the-great-migration.html

And, please, add support for https://github.com/custom-components/custom_updater
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.