Git Product home page Git Product logo

aimp_custom_component's Introduction

aimp_custom_component

Custom component for Home Assistant to controling AIMP through network

screenshot

screenshot screenshot screenshot

dependencies

install needed component

make sure add firewall exception to AIMP, so Home Assistant can send request & get response through network

manual installation

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called aimp.
  4. Download __init__.py, manifest.json, media_player.py in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Add aimp to media_player config and Restart Home Assistant.

yaml config

media_player:
  - platform: aimp
    name: 'AIMP'
    host: !secret aimp_ip
    port: 3333

to-do

  • Add browse_media

Buy Me A Coffee

aimp_custom_component's People

Contributors

xilense avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aimp_custom_component's Issues

Error in Log after restarting / No media_player entity

Hello,
I´m getting the below error in the log after adding this code in the configuration.yaml and restarting HA, and the media_player antity will not be created.
I´m using AIMP for the first time, but I guess the setup is working, as I can open the webinterface with 192.168.1.14:3333 from a pc.

Any idea what I have done wrong? I´m using HA Core 2021.6.6
Thanks for help,
Philipp

media_player:   
  - platform: aimp
    name: AIMP Livingroom
    host: 192.168.1.14
    port: 3333
`2021-06-23 14:21:20 ERROR (MainThread) [homeassistant.components.media_player] aimp: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 432, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 550, in async_device_update
    await task
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/aimp/media_player.py", line 144, in update
    self.update_playinfo()
  File "/config/custom_components/aimp/media_player.py", line 169, in update_playinfo
    self._playinfo = resp.copy()
AttributeError: 'NoneType' object has no attribute 'copy'`

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.