Hi,
I’m running the latest Adguard Version (v0.98.1-174-gbfc6) and I’m missing all the sensors and one switch ( AdGuard Filtering).
I already removed the integration and re-added it. Now it’s only showing one sensor (rule_count) that does not work.
In the logs I can see a few errors, seems that AdGuard changed something in their API:
Oct 14 11:24:19 homeassistant hass[25399]: 2019-10-14 11:24:19 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.adguard
Oct 14 11:24:19 homeassistant hass[25399]: 2019-10-14 11:24:19 INFO (MainThread) [homeassistant.components.switch] Setting up switch.adguard
Oct 14 11:24:19 homeassistant hass[25399]: 2019-10-14 11:24:19 ERROR (MainThread) [homeassistant.components.sensor] adguard: Error on device update!
Oct 14 11:24:19 homeassistant hass[25399]: Traceback (most recent call last):
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
Oct 14 11:24:19 homeassistant hass[25399]: await entity.async_device_update(warning=False)
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 446, in async_device_update
Oct 14 11:24:19 homeassistant hass[25399]: await self.async_update()
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/__init__.py", line 157, in async_update
Oct 14 11:24:19 homeassistant hass[25399]: await self._adguard_update()
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/sensor.py", line 153, in _adguard_update
Oct 14 11:24:19 homeassistant hass[25399]: self._state = await self.adguard.stats.replaced_parental()
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/adguardhome/stats.py", line 37, in replaced_parental
Oct 14 11:24:19 homeassistant hass[25399]: return response["replaced_parental]
Oct 14 11:24:19 homeassistant hass[25399]: TypeError: string indices must be integers
Oct 14 11:24:19 homeassistant hass[25399]: 2019-10-14 11:24:19 DEBUG (MainThread) [homeassistant.components.adguard] An error occurred while updating AdGuard Home sensor.
Oct 14 11:24:19 homeassistant hass[25399]: Traceback (most recent call last):
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/__init__.py", line 157, in async_update
Oct 14 11:24:19 homeassistant hass[25399]: await self._adguard_update()
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/sensor.py", line 222, in _adguard_update
Oct 14 11:24:19 homeassistant hass[25399]: self._state = await self.adguard.filtering.rules_count()
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/adguardhome/filtering.py", line 39, in rules_count
Oct 14 11:24:19 homeassistant hass[25399]: response = await self._adguard._request("filtering/status")
Oct 14 11:24:19 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/adguardhome/adguardhome.py", line 122, in _request
Oct 14 11:24:19 homeassistant hass[25399]: response.status, {"message": contents.decode("utf8")}
Oct 14 11:24:19 homeassistant hass[25399]: adguardhome.exceptions.AdGuardHomeError: (404, {'message': '404 page not found\n'})
Oct 14 11:24:20 homeassistant hass[25399]: 2019-10-14 11:24:20 ERROR (MainThread) [homeassistant.components.switch] adguard: Error on device update!
Oct 14 11:24:20 homeassistant hass[25399]: Traceback (most recent call last):
Oct 14 11:24:20 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
Oct 14 11:24:20 homeassistant hass[25399]: await entity.async_device_update(warning=False)
Oct 14 11:24:20 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 446, in async_device_update
Oct 14 11:24:20 homeassistant hass[25399]: await self.async_update()
Oct 14 11:24:20 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/__init__.py", line 157, in async_update
Oct 14 11:24:20 homeassistant hass[25399]: await self._adguard_update()
Oct 14 11:24:20 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/adguard/switch.py", line 219, in _adguard_update
Oct 14 11:24:20 homeassistant hass[25399]: self._state = await self.adguard.querylog.enabled()
Oct 14 11:24:20 homeassistant hass[25399]: File "/srv/homeassistant/lib/python3.7/site-packages/adguardhome/querylog.py", line 17, in enabled
Oct 14 11:24:20 homeassistant hass[25399]: return response["querylog_enabled]
Oct 14 11:24:20 homeassistant hass[25399]: KeyError: 'querylog_enabled'