Giter VIP home page Giter VIP logo

Comments (9)

jalmeroth avatar jalmeroth commented on June 29, 2024

Hm, this is an interesting use case. Do you think this is something one could archive using Discovery/NetDisco? Could you try to find out the specifics?

from pymusiccast.

runningman84 avatar runningman84 commented on June 29, 2024

From my point of view discovery/netdisco would not help very much here. Because in my case I have configured these devices statically like this:

  • platform: yamaha_musiccast
    host: 192.168.178.xxx
    name: Yamaha WX-030 Box
    port: 5555
  • platform: yamaha_musiccast
    host: 192.168.178.yyy
    name: Yamaha RX-V481 AVR
    port: 5556

My implementation just assumed the device as STATE_OFF.
See line 126:
https://gist.github.com/runningman84/5464ec4dc39b10efd10828ca7cef25d0

from pymusiccast.

jalmeroth avatar jalmeroth commented on June 29, 2024

Well, actually I think this will not work here. pymusiccast queries Zone-information to setup the linked devices. Its also establishing a UDP-connection to receive live-events from your device. If the device is turned off, we can not establish the connection or finish the setup properly.

from pymusiccast.

runningman84 avatar runningman84 commented on June 29, 2024

yes but you could keep it in an offline state until it gets up?

from pymusiccast.

jalmeroth avatar jalmeroth commented on June 29, 2024

No, because I can't set it up properly. And my interpretation of good HASS-behaviour is that we shouldn't poll indefinitely to finish device setup.

from pymusiccast.

jalmeroth avatar jalmeroth commented on June 29, 2024

… and even if, how do I get notified that the device got up?

from pymusiccast.

runningman84 avatar runningman84 commented on June 29, 2024

hmm my device_tracker sensor could tell you...

from pymusiccast.

jalmeroth avatar jalmeroth commented on June 29, 2024

I think your request is getting a bit too far here. If you are able to provide a pull-request that solves this issue, I will be happy to accept it.

from pymusiccast.

jalmeroth avatar jalmeroth commented on June 29, 2024

@runningman84 FYI: home-assistant/core#10258 (comment)

from pymusiccast.

Related Issues (13)

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.