self._media_state = _data["playedMediaState"] I don't get why pylint is thinking that these functions are unavailable. Already on GitHub? File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform i have gotten some basic code keyed up and can access the network and the devices on the network.. and even tell them to do different things. pvizeli merged 11 commits into home-assistant: dev from pschmitt: livebox-play-tv-media-position Dec 13, 2017 self._client = LiveboxTvUhdClient(host, port) File "/config/custom_components/liveboxtvuhd/media_player.py", line 90, in init "responseCode": "-1", I don't know if pyteleloisirs only returns whole seconds and how big latencies may be. Quoi qu'il en soit. I will try to make it work. Of probeerde u een afstandsbediening aan … I will try to remove the channel info part and do a pull request once it works. Do you have the same issue? "result": Safe Mode improvements. We are happy to see you . File "/config/custom_components/liveboxtvuhd/media_player.py", line 72, in async_setup_platform requests==2.18.4pyyaml>=3.11,<4pytz>=2017.02pip>=8.0.3jinja2>=2.9.6voluptuous==0.10.5typing>=3,<4aiohttp==2.3.7yarl==0.18.0async_timeout==2.0.0chardet==3.0.4astral==1.4certifi>=2017.4.17. In liveboxplaytv a program represents a live TV program. Traceback (most recent call last): # pylint: disable=unused-import, too-many-lines import asyncio from concurrent.futures import ThreadPoolExecutor import enum import logging import os import pathlib import re import sys import threading from time import monotonic from types import MappingProxyType from typing import … It returns a json indexed using channel ID, so pretty easy to implement ... As a quick fix I suggest you grab the code from the previous Home Assistant Core release and manually add it as a custom component. Only one suggestion per line can be applied in a batch. It is not the first time I have this kind of issue, usually it is the pyteleloisirs module which is not good. See vlc for an example https://github.com/home-assistant/home-assistant/blob/08b0629eca6417a2bb1b6f3c805ff19208484e4d/homeassistant/components/media_player/vlc.py#L70-L72. # Home Assistant core aiohttp==3.4.4 astral==1.7.1 async_timeout==3.0.1 attrs==18.2.0 bcrypt==3.1.4 certifi>=2018.04.16 jinja2>=2.10 PyJWT==1.6.4 cryptography==2.3.1 pip>=8.0.3 pytz>=2018.04 pyyaml>=3.13,4 requests==2.20.1 ruamel.yaml==0.15.78 voluptuous==0.11.5 voluptuous-serialize==2.0.0 # homeassistant.components.nuimo_controller --only-binary=all nuimo==0.1.0 # … # Home Assistant core. I don't know how often liveboxplaytv or vlc send updates. {} It works and still do not understand why pylint is complaining... You're using Python 3.5+ async syntax in this lib. To add an Orange Livebox Play TV to your installation, add the following to your configuration.yaml file: # Example configuration.yaml entry media_player: - platform: liveboxplaytv host: … E:113,34: Module 'pyteleloisirs' has no 'get_program_duration' member (no-member) We’ll occasionally send you account related emails. So let’s dive in! Interesting, can you send me what you get when you go on http://IP_OF_LIVEBOX:8080/remoteControl/cmd?operation=10 (don't forget to replace IP_OF_LIVEBOX by the real IP). I'm happy to continue to manage the python libs but I won't be issuing any PR to home Assistant to "fix" the current situation. ): Hass.io, Integration causing this issue: liveboxplaytv. { Améliorations du mode sans échec. Assistant à domicile 0.105, nous avons introduit le mode sans échec. } Why not separate the both ? We don't want to introduce changes that will create constant state updates. assert isinstance(self.info, dict), "Failed to retrive info from {}".format(self.hostname) Sign up for a free GitHub account to open an issue and contact its maintainers and the community. @SBRK Did you manage to install liveboxplaytv as a custom component? It looks like this integration is based on web scraping and should be removed as per ADR004. KeyError: 'playedMediaState'. This suggestion is invalid because no changes were made to the code. homeassistant.components.splunk. okay @balloob you are saying it should be something along the lines of: But this won't update the current program duration (media_duration) when the current program ends. https://www.home-assistant.io/integrations/liveboxplaytv/, Erreur lors de la récupération du programme TV, Remove the liveboxplaytv integration (ADR0004), https://github.com/DalFanajin/Orange-Livebox-TV-UHD-4K-python-controller, https://rp-live-pc.woopic.com/live-webapp/v3/applications/PC/programs?groupBy=channel&period=current&epgIds=all&mco=OFR, Home Assistant release with the issue: 0.104.3 (the one before also I think), Last working Home Assistant release (if known): not sure, Operating environment (Hass.io/Docker/Windows/etc. In Home Assistant 0.105, we introduced Safe Mode. That certainly is strange, but that's what I'd try first. The device is not create and I cannot anymore know the status of the STB, No change was done on config nor network configuration (IP address of STB). Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Going to ping @balloob for a weigh-in. By clicking “Sign up for GitHub”, you agree to our terms of service and @pschmitt It looks like the webscrapping part was only used to fetch the current program shown on the livebox TV. privacy statement. Suggestions cannot be applied on multi-line comments. It uses the async syntax as well. https://github.com/home-assistant/home-assistant/blob/08b0629eca6417a2bb1b6f3c805ff19208484e4d/homeassistant/components/media_player/vlc.py#L68-L72, We should never ever add the current position in the state. }. privacy statement. We shouldn't implicitly depend on liveboxplaytv to pull in the requirement if we're calling it directly. przez dodatek https://www.home-assistant.io/integrations/liveboxplaytv/ i port 8080. działała część funkcji (wł, wył, volume, mute, ch up i down) niestety dodatek pisał … Search inside document. I mean in my case I mainly use the status of STB to turn on or off the tv or others stuff. Applying suggestions on deleted lines is not supported. So when it goes from play to pause etc. So this is pretty much guaranteed to be updated every time. also a good repo : https://github.com/DalFanajin/Orange-Livebox-TV-UHD-4K-python-controller, Hey ! Suggestions cannot be applied from pending reviews. You signed in with another tab or window. All hass code needs to support Python 3.4. https://github.com/pschmitt/pyteleloisirs/blob/c0820789daa83cd3749b5b64839173bf7e4006e3/pyteleloisirs/pyteleloisirs.py#L49, Thanks for the hint. The rest of this looks good, but could you elaborate on #10076 (comment) ? Notre objectif est de nous assurer que Home Assistant démarre toujours et de vous fournir une interface avec laquelle travailler. Have a question about this project? Search Portage & Overlays: Newest News Repository news GLSAs Browse USE Flags Overlays More.... - List View - The frontend will calculate this when needed by doing current position of state + (now - state.media_position_updated_at). and remove all webscrapping. I'm trying to use your component but got errors. File "/config/custom_components/liveboxtvuhd/client.py", line 50, in init to your account. "data": Suggestions cannot be applied while the pull request is closed. and this is not going to be something that i am going to be able to hammer out in … I've just found the API used by Orange to get their content : Sign in "message": "error", https://github.com/AkA57/liveboxtvuhd, Nice! ): Hass.io; Integration causing this issue: liveboxplaytv; Link to integration documentation on our website: https://www.home-assistant.io/integrations/liveboxplaytv/ Hmm, looking at the VLC example, I don't think that one is doing what we thought either. It could be another integration the pyteleloisir to get the actual program on TV. Home Assistant is a Home Automation framework for observing the state of entities and react to changes. """ Link to integration documentation on our website: Rewrite and submit a livebox integration w/o chanel info, Release the original code as a custom component. Successfully merging this pull request may close these issues. But I'm not sure whether is feasible without duplicating code between the 2 components. This commit was signed with the committer’s, This commit was created on GitHub.com and signed with GitHub’s. I haven't tried cause I definitely have no python skills. File "/config/custom_components/liveboxtvuhd/client.py", line 62, in update Ideally I'd do a mix of both ie have an official component that only supports the remote control part and a custom component along it that just provides the channel info. E:115,34: Module 'pyteleloisirs' has no 'get_remaining_time' member (no-member). homeassistant. File "/config/custom_components/liveboxtvuhd/client.py", line 169, in info await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) After few minutes I've try again and get: { "result": { "responseCode": "0", "message": "ok", "data": { "activeStandbyState": "0", "friendlyName": "Orange TV Dekoder (Sagemcom)", "macAddress": "MAC Addres", "osdContext": "HOMEPAGE", "wolSupport": "0" } } }. Looks like a copy-paste artifact got left in here. import json. A few small notes, but the biggest issue is the remaining time / last updated need to not change on every update. Home Assistant release with the issue: 0.104.3 (the one before also I think) Last working Home Assistant release (if known): not sure; Operating environment (Hass.io/Docker/Windows/etc. @pschmitt What do you think about it ? I don't understand why the media duration would be changing constantly. This is my attempt to make a custom component for home assistant. It's not really a problem if they only send updates at state changes. You are on page 1of 22. https://rp-live-pc.woopic.com/live-webapp/v3/applications/PC/programs?groupBy=channel&period=current&epgIds=all&mco=OFR. @@ -76,19 +77,32 @@ def __init__(self, host, port, name). De helderheid van lichten verhogen en verlagen. """. Support to send data to an Splunk instance. They are defined here: EDIT: Here is a snippet that essentially does the same as liveboxplaytv. return self.update() You must change the existing code in this line in order to create a valid suggestion. What I don't get is why pylint isn't complaining about the liveboxplaytv library. I use stonfute api (thanks to you!) I simply copied/pasted the liveboxplaytv folder from core/homeassistant/components (release 0.105.0) to my /config/custom_components folder. Hello guys, Yes, that should be rather easy to do. Already on GitHub? Can you send me the JSON value when you're watching TF1 ? That's what I was about to do. Error while setting up liveboxtvuhd platform for media_player Two options here: None of these are perfect imho. https://home-assistant.io/components/splunk/. Here is the full error stack I get in the logs: Maybe there's an API to grab current show ? return fut.result() A great release that improves stability, reliability and a lot of helpful additions to make everything much more friendly and easier to use. Add this suggestion to a batch that can be applied as a single commit. So it means that current position (and updated at) should only be updated when the state of the player changes. The part that controls the livebox itself does not use webscrapping and just sends local commands, so wouldn't it be possible to reintegrate the component without the scrapping part ? zaskoczę cię, ale do ostatniej aktualizacji icu 100 integrował się z systemem "inteligentnego domu" Home assistant. For more details about this component, please refer to the documentation at. Have a question about this project? Sign in Suggestions cannot be applied while viewing a subset of changes. Thanks! This adds progress information to media_player.liveboxplaytv. Writing this I realize that it should be elapsed_time (or position), not remaining_time. If VLC does this, we should remove it from there as well. If it's sent too often then something like this should be ok (untested): Or maybe it should compare with something larger than 1. File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for Schermafbeelding van Home Assistant die in de veilige modus wordt uitgevoerd. As time goes by the media position necessarily progresses. """. The text was updated successfully, but these errors were encountered: Hey there @pschmitt, mind taking a look at this issue as its been labeled with a integration (liveboxplaytv) you are listed as a codeowner for? Also regarding my own work on that: I do not own a livebox play TV anymore. https://github.com/pschmitt/pyteleloisirs/blob/master/pyteleloisirs/pyteleloisirs.py#L115, https://github.com/pschmitt/pyteleloisirs/blob/master/pyteleloisirs/pyteleloisirs.py#L129, Don't attempt to set media progress info if program is None, https://github.com/pschmitt/python-liveboxplaytv/blob/master/liveboxplaytv/liveboxplaytv.py#L134, homeassistant/components/media_player/liveboxplaytv.py, https://github.com/home-assistant/home-assistant/blob/08b0629eca6417a2bb1b6f3c805ff19208484e4d/homeassistant/components/media_player/vlc.py#L70-L72, Only update remaining play time when it changed, https://github.com/home-assistant/home-assistant. Ooit geprobeerd een automatisering te maken om uw lichten op te helderen of te dimmen? Re: Possible Vera replacement - Home Assistant Post by kgschlosser » Fri Aug 11, 2017 1:10 pm well I have some results in this end of things. Successfully merging a pull request may close this issue. to your account, Liveboxplaytv component stop working. Otherwise, would you know what I'm doing wrong? We should either expose get_program_duration and get_remaining_time off of liveboxplaytv, or specifically call out pyteleloisirs in the requirements list since we're using it directly. This suggestion has been applied or marked resolved. Our goal is to make sure Home Assistant always starts and provide you an interface to work with. Okay, but the media duration only depends on the current time. Media position and media remaining time need to only change when the player actually changes state. zwave is a very complex thing. Well, hello!, Home Assistant Core 0.106! { But in my case the setup of the module fails when it tries to build a dependency of liveboxplaytv module (error is "unable to execute 'gcc': No such file or directory"). device = LiveboxTvUhdDevice(host, port, name) You signed in with another tab or window. Look like you don't have a Livebox UHD TV but another model. We’ll occasionally send you account related emails. homeassistant v0.61.0. https://github.com/pschmitt/python-liveboxplaytv/blob/master/liveboxplaytv/liveboxplaytv.py#L134. By clicking “Sign up for GitHub”, you agree to our terms of service and