kodi1 / tvh_rec Goto Github PK
View Code? Open in Web Editor NEWtvheadend recorder sensor - lovelace upcoming media card
tvheadend recorder sensor - lovelace upcoming media card
see this warning in logs:
2021-12-26 22:01:00 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.tvheadend_registrazione (<class 'custom_components.tvh_rec.sensor.HtsSensor'>) implements device_state_attributes. Please report it to the custom component author.
With new HA version:
No 'version' key in the manifest file for custom integration 'tvh_rec'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'tvh_rec'
SEE HERE:
Custom integrations now require a version key in their manifest file, this also means that all custom integrations now require a manifest file.
If you are using a legacy custom integration like custom_components/awesome.py this now needs to move to custom_components/awesome/init.py so you can add custom_components/awesome/manifest.json to it.
For more information about integration, manifests have a look here: https://developers.home-assistant.io/docs/creating_integration_manifest
For now, this will create a warning on startup. But this will eventually be blocked from loading if itβs missing a version in the manifest.
If you see these warnings, please report the issue with the author of that custom integration.
https://www.home-assistant.io/blog/2021/03/03/release-20213/
As you can see in the image, the rec sensow show in data the below value.
Is this correct?
i'm using last hass version (0.116.2) and this tvh: HTS Tvheadend 4.2.9pre+201911151752-0built202006011817git5bdcfd8ubuntu20.04.1
if this is an error, you can fix this?
[{"title_default": "$title", "line1_default": "$episode", "line2_default": "$studio $release", "line3_default": "$runtime $date $time", "line4_default": "$number", "icon": "mdi:arrow-down-bold"}]
i added this via hacs when restart i have no sensor in my list and in logs i get this
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 419, in _async_add_entity
await entity.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
state = self.state
File "/config/custom_components/tvh_rec/sensor.py", line 121, in state
return str(self._data['count'])
KeyError: 'count'
any ideas
Hi there,
thank you for sharing your code. I am wondering if it it possible to get number of active channels out of TVHeadend (e.g. Channel List). As IPTV is highly unreliable it would be really cool to see the changes of active channels over the time.
Thank you for your ideas how to accomplish this easily with your already established code. Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.