Hello guys,
I had a working tautulli setup but for some reason it stopped working. hopefully one of you guys can help me out.
This is the config I currently have:
Homeassistant 2021.12.7
Tautulli 2.8.1
Home assistant config:
- platform: tautulli
host: 192.168.0.11
#ssl: false
#verify_ssl: true
api_key: xxxxxxxxxxxxxxxxxxx
monitored_conditions:
- stream_count
- total_bandwidth
When I check the sensor it always stays at 0
When checking the api call I can see there is data in it.
{"response": {"result": "success", "message": null, "data": {"stream_count": "1", "sessions": [{"session_key": "5", "media_type": "episode", "view_offset": "145000", "progress_percent": "9", "quality_profile": "Original", "synced_version_profile": "", "optimized_version_profile": "", "user": "emperorvk", "channel_stream": 0, "section_id": "5", "library_name": "TV - Flemish", "rating_key": "9982", "parent_rating_key": "9981", "grandparent_rating_key": "9700", "title": "De nieuwe truitjes", "parent_title": "Season 1", "grandparent_title": "F.C. De Kampioenen", "original_title": "De Nieuwe Truitjes", "sort_title": "", "media_index": "1", "parent_media_index": "1", "studio": "TV1-Sector Amusement", "content_rating": "", "summary": "DDT heeft zijn garage naast het terrein van FC De Kampioenen, en dat bezorgt hem meer dan eens last. Nadat er alweer een ruit bij....
Checking the logs I can found it trows an error.
Logger: homeassistant
Source: components/tautulli/sensor.py:180
First occurred: 20:20:54 (16 occurrences)
Last logged: 20:46:05
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 541, in _async_write_ha_state
extra_state_attributes = self.extra_state_attributes
File "/usr/src/homeassistant/homeassistant/components/tautulli/sensor.py", line 180, in extra_state_attributes
_attributes[session.username][key] = getattr(session, key)
AttributeError: 'PyTautulliApiSession' object has no attribute 'stream_count'
Anyone an idea where this comes from?