Home-Assistant Custom Component

Discussion in 'General Development' started by wizmo, Oct 13, 2021.

  1. wizmo

    wizmo Member

    It’s mostly just internal changes to migrate to Async functions and general clean up.

    It does include
    - Faster response times.
    - Transition from the custom Send Key service to the standard Remote format
    - Built-in Rapid update (polling time)
    - A few minor fixes

    If anyone has anything else I need to look at, now is the time.
     
    Sledgehamma likes this.
  2. mrstinky

    mrstinky New Member

    I sometimes have an issue where the Zidoo Z9X crashes and can't recover via IR codes or anything. The red light on the front blinks and requires toggle off/on via the power switch in the rear..and I lose video signal when crash occurs. Usually happens in the media app (even idle or changing inputs to that app from another app in Zidoo) but I'm unsure why, I've read reports of other people experiencing this.

    Is there any way to catch this in an automation and turn it back on via a smart outlet plug? I believe the media player status still shows "idle", but I could be wrong..maybe it just takes a while to go to off status.
     
  3. wizmo

    wizmo Member

    If we can figure a way to reliably get it to crash, I could try and reproduce and see if there is anything showing in any of the standard calls.
     
  4. wizmo

    wizmo Member

    OK, I have released the new beta (beta-260124). In HACS, go to the integration and select 'Redownload' from the dots in the top right, then 'Show beta versions' and you should see it at the top of the list.

    There are a few minor functionality improvements, but this is mostly targeted at moving to the preferred Asyncio functions. I took the opportunity to clean up a lot of the code to further improve responsiveness. This did require quite a lot of rework, but have tried to remove any potential issues and I hope that the update will be transparent.

    <QUOTE>
    Update Zidoo API to asyncio, plus general cleanup and fixes aimed at improving responsiveness and and overall functionality. Also included is a separate virtual Remote Entity, which proves a more standard interface for sending key commands.

    NOTE: This release includes embedded Rapid Update. If you are currently using an automation based on the documentation example, this can now be removed, but please re-enable automatic update if necessary

    Please give it a try and report any issues.

    Changes
    1. replace zidoorc with aync version zidooapi
    2. Update integration to support new functions (#20 fix blocking call "bug").
    3. Add Rapid update when player is on
    4. Major cleanup and optimization of code.
    5. Add Remote Entity support (#22 thanks @albaintor) _NOTE: This will eventually replace the 'Send Key' service
    6. Fix progress time units from ms to seconds.
    7. Improve music browsing and search functions with Media Browser
      </QUOTE>
     
    Sledgehamma likes this.
  5. carlos ventura

    carlos ventura New Member

    Hi Wizmo
    My UHD3000 and HA integration is working flawlessly but it’s time to move to a UHD5000 unit. Question; if I configure a new UHD5000 with the same IP address of the 3000 will the integration still work as before ?
    Thankx
    Carlos
     
  6. wizmo

    wizmo Member

    Make a note of your old systems `Unique Id` value. Delete it or add '_old' to the ID, then update the ID of the new device with the original systems ID
     
  7. wizmo

    wizmo Member

  8. carlos ventura

    carlos ventura New Member

    On It !! Thankx. Im gonna order the 5000 today
    Best
    Carlos
     
  9. Fatima Furniture

    Fatima Furniture New Member

    To assist you concentrate on design, form, color, and function, Fatima Furniture offers a variety of furnishings like sofa set, bed set, couches and other furniture for your home. Our online furniture shop in the emirate that guarantees on-time delivery and excellent craftsmanship in keeping with the most recent fashions.
     
  10. Am0kSepp

    Am0kSepp New Member

    Hi @wizmo, first of all thanks for the great integration, I've been able to solve a lot of things.

    I used the aspect_ratio Template sensor to trigger my lens memory of my projector. This works perfectly, the only thing is that it does not work with bluray ISO files, and it is obviously due to the fact that all bluray ISOs are 16:9 format (if calculated by width and height). Is it may be possible to set the aspect ratio state to 21:9 when zidoo is playing an bluray ISO? Is there something like that in the Library of the integration?

    Thanks in advance
     
  11. wizmo

    wizmo Member

    Have a look at this https://github.com/wizmo2/zidoo-player/blob/main/notes.md#getting-aspect-ratio in the application notes. You maybe able to modify this to do what you need
     
  12. Przemyslaw Fras

    Przemyslaw Fras New Member

    Hello! You’ve done an amazing job with this project; it has helped me a lot with my integration. I’m currently using it to control the lights in my home theater. I created an automation to dim the lights when my Zidoo 8000 starts a movie and bring them back to 50% when it's paused.

    Could you please add a 'stop playing' trigger? This would allow me to turn the lights back on fully when I stop playing the move and back to menu. Right now, I can only trigger them based on play or pause. Thanks!"
     
  13. Houbi

    Houbi Member

    It would be perfect if there would be a "stop", but there isn't. and you also don't really need it...

    I resolved it like this: If state = "idle" and previous state = "paused" or "playing"

    In the end this is like stop and will achieve 100% what you are looking for.

    upload_2026-1-4_10-45-34.png
     
  14. Przemyslaw Fras

    Przemyslaw Fras New Member

    Thanks Houbi. I'm new to Home Assistant, so I'm still learning the ropes. While play/pause automations were easy to set up, I've noticed my Zidoo 8000 drops into 'idle' mode after 35 seconds. I'm worried this might interfere with your automation logic
     
  15. wizmo

    wizmo Member

    Does this happen every time on the 8000?
    It works as per Houbi comments on my Z9X.

    I dont have access to ay of the newer Zidoo systems, and there have been comments per differing functionality on some of the API calls.
     
  16. Przemyslaw Fras

    Przemyslaw Fras New Member

    This issue consistently occurs with my 8000 model. I am curious as to why a straightforward "STOP" option is not available on those units..
     
  17. wizmo

    wizmo Member

    Would you be willing to try a beta/test version of the integration so we can see why the idle is not working on your unit?
    [EDIT] Before that, can we see if there is already something in the debug logs. You need to select Settings from the side bar menu, then 'Devices and Sevices' and select the Zidoo Integration. In the top right, press the three dot menu and select Enable Debug Logging. There will be a banner in the inegration. Now try playing a movie for a few minutes then stop it. Once complete Disable the debuging. It should automatically download a log file to your PC.

    The zidoo api does not issue events. Everything is 'polled'. The play/pause to idle automation trigger is the HA equivalent.
     
    Last edited: Jan 8, 2026
  18. wizmo

    wizmo Member

    For anyone trying the new HT 5.0.68 beta, I reported a couple of issues that affect this integration on my Z9X. It expect it will be an issue on other systems as well.

    1. You can not launch a movie until after the app has been manually loaded. The call fails and does not play. (This also breaks the App and Web Access.)
    2. The Movie category returns movie collections instead of the movie list. (If it does not get resulved before the next offical release, It will require an integration update)

    A work around to Item 1, is to have the app launch on startup. (Apps, Press-Hold on HT5, Enable Launch on Startup). No workaround for the Movie list without a new integration update)
     
    Last edited: Jan 8, 2026
  19. wizmo

    wizmo Member

    There is a new beta availble (2.1.0rc) that, in theory, should support the DAC based audio outputs. I do not have any of the newer hardware to test, so would welcome feedback before it gets released.

    The code automatically detects if different DAC outputs are available. It should not affect the functionality on non-DAC players.
    For DAC players, there will be a new option in the Media Player panel to display and change the audio output. Please be aware, it uses a different API status call for the Music Player, which is missing some of the meta data available to older non-DAC based players (e.g. Track#, Date/Year) on your local files, but should also display information for remote streams.

    RELEASE NOTES:
    beta-011926 Pre-release

    Experimental support for DAC outputs, some user requested additions and major code cleaning

    Changes
    1. Add new key codes to remote [#46]
    2. Add TMDB and IMDB to extended media attributes [#47]
    3. Fix potential configuration option and unload errors with latest HA codebase
    4. Support for sound output mode (Thanks @smoothquark) [#45, #38]
     
    Last edited: Jan 19, 2026 at 3:37 PM
    Sledgehamma likes this.
  20. Sledgehamma

    Sledgehamma Well-Known Member

    Awesome, thanks a lot!
     

Share This Page