Comments (15)
Yes, It looks at the UUID/MAC address I think.
from home-assistant-custom-components-linkplay.
- Is there any conf cache inside the custom component?
- Why can't implement search devices by multicast (like the 4STREAM and native HomeAssistant DLNA rendered works)
from home-assistant-custom-components-linkplay.
- Double check the address of the devices. Use static address leases or fixed addresses. It's clearly written in the doc.
- Not supported, this is free work.
from home-assistant-custom-components-linkplay.
- Some investigations. Update function does not call really, state==STATE_UNAVAILABLE . trying to resolve the issue.
- I understand, just asking.
from home-assistant-custom-components-linkplay.
Restart HA.
from home-assistant-custom-components-linkplay.
Restart HA.
Sure, it was restarted many times. Reading the docs now and trying to understand when we need to call schedule_update_ha_state(True) (as I understand correctly) function.
from home-assistant-custom-components-linkplay.
We don't need to call that. HA calls it automatically every 10 seconds.
It can be called in exceptional cases when one doesn't want to wait for that amount of time for a refresh of state but shouldn't be abuse else entire HA system will be locked.
This component is currently not async.
from home-assistant-custom-components-linkplay.
There must be an issue in your network. No need to change anything in the code - this is trivial. Try restarting the speaker too.
from home-assistant-custom-components-linkplay.
There must be an issue in your network. No need to change anything in the code - this is trivial. Try restarting the speaker too.
Not sure about this. Tried to "Assert false" inside LinkPlayDevice.update() function - no results in logs. setup_platform() seems to work correctly, at least the new IP is correct. HA native DLNA rendered work ok also.
$wget http://192.168.1.*/httpapi.asp?command=getStatusEx from HA host work fine also.
from home-assistant-custom-components-linkplay.
Are you sure that HA will update the entity with an unavailable state?
from home-assistant-custom-components-linkplay.
Look, I have 4 linkplay devices working perfectly here...
Maybe your HA install is wrecked... Try removing the entire custom component restart ha, and re-install from HACS...
from home-assistant-custom-components-linkplay.
Are you sure that HA will update the entity with an unavailable state?
Yes.
from home-assistant-custom-components-linkplay.
Ok, removing Entity from registry and Restart helped. Then I tried to change the IP address of the host value to a random one and it add a new linkplay item. 1st is restored, 2nd is unavailable - it's ok. When I return the IP back - it works ok. The start post problem was that there was only one restored Entity in the registry. I do not have enough knowledge about HA structure, but it looks like HA did not accept a new entity with add_entities. Not sure how LinkPlayDevice objects compare inside the Entity registry, but it looks like HA decided that the restored entity and the entity with new IP are the same.
from home-assistant-custom-components-linkplay.
Yes, It looks at the UUID/MAC address I think.
Ok, so it could be the next logic (the only ONE device!):
- Add Entity1 -> Device online -> Entity1.MAC in registry
- Add Entity2 with another IP -> Device online (device with new IP, but old mac) -> Entity1.MAC == Entity2.MAC -> reject adding Entity2 to the registry, HA uses Entity1 with old IP (and as I understand Entity1 source code runs from cached inside registry database in this case)
- Add Entity3 with random IP -> Device offline (device with old ip, and old mac) -> Entity1.MAC != Entity3.MAC (can't resolve due offline) - Device added (as I decribe above).
So the 2nd item - is the start topic problem.
Thank you for your support!
from home-assistant-custom-components-linkplay.
Thanks.
from home-assistant-custom-components-linkplay.
Related Issues (20)
- Up2stream becomes unavailabe HOT 3
- Group/Ungroup toggle inconsistent with 2 slaves
- Rakoit M50 unavailable HOT 5
- Example config doesn't pass checks on 2023.11.2 HOT 1
- led_off doesn't work for Arylics anymore HOT 2
- Using deprecated constants for supported features HOT 1
- Integration problems with Harman Kardon Allure HOT 1
- NameError when connection is lost via UPnP
- Updating linkplay media_player took longer than the scheduled update interval HOT 3
- Announcements/TTS: how to use the resume feature? HOT 2
- The integration is not working with 2024.5.0b0 HOT 8
- linkplay' calls async_register from a thread at custom_components/linkplay/__init__.py, line 171: hass.services.async_register HOT 2
- Add MTLS-support HOT 5
- Add command to Command service
- Join error
- Controls not Working, playing info not always displayed, same with covers
- Slightly off-topic: Replacing the firmware of the Linkplay A31 module HOT 4
- Metadata not showing for WiiM device playing via AirPlay
- Streaming via Amazon Music App: incorrect entity state and attributes
- Error with new Home Assistant Core - 2024.7.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-custom-components-linkplay.