JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.12k stars 89 forks source link

D230 Unable to set night vision to `auto` #631

Closed RedNo7 closed 2 months ago

RedNo7 commented 3 months ago

Description

I had power outage resulting in most of my doorbell entities being permanently unavailabel - I was unable to remove the device so pulled the plug on the hub, restarted HA and re-added the hub - all good.

However, the doorbell camera night vision is unable to be set to auto - setting to on or off is fine.

Reproduction Steps

  1. integrate hub/doorbell
  2. click on device ➜ night vision
  3. try to select auto

Screenshot 2024-07-20 at 12 09 24

The following error appears in the UI image

Expected behavior

I expect to be able to select auto

If applicable, add error logs.

I restarted HA after upgrading to v5.4.28

2024-07-20 12:11:19.218 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tapo_control which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:19.220 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dyson_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:19.222 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sun2 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:19.223 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hypervolt_charger which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:19.225 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration feedparser which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:19.227 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-07-20 12:11:33.448 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend", False)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 54: hass.http.register_static_path(f"{URL_BASE}/frontend", locate_dir(), cache_headers=False), please create a bug report at https://github.com/hacs/integration/issues
2024-07-20 12:11:33.464 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-20 12:11:33.477 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-20 12:11:33.492 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", False)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-20 12:11:37.827 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'dyson_local' calls async_forward_entry_setup for integration, dyson_local with title: Pure Cool and entry_id: 1c3f95d046f740418d0b03b4d2504fdc, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/dyson_local/__init__.py, line 137: hass.async_create_task(, please create a bug report at https://github.com/libdyson-wg/ha-dyson/issues
2024-07-20 12:11:38.114 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration dyson_local with title: Pure Cool and entry_id: 1c3f95d046f740418d0b03b4d2504fdc, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
2024-07-20 12:11:38.197 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration dyson_local with title: Pure Cool and entry_id: 1c3f95d046f740418d0b03b4d2504fdc, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
2024-07-20 12:11:38.226 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration dyson_local with title: Pure Cool and entry_id: 1c3f95d046f740418d0b03b4d2504fdc, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
2024-07-20 12:11:38.232 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration dyson_local with title: Pure Cool and entry_id: 1c3f95d046f740418d0b03b4d2504fdc, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2122, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1175, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
2024-07-20 12:11:48.511 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform tapo_control is taking over 10 seconds.
2024-07-20 12:11:48.513 WARNING (MainThread) [homeassistant.components.select] Setup of select platform tapo_control is taking over 10 seconds.
2024-07-20 12:11:56.411 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% from 'met_office_codes.jinja' import code2ha %} {% set dh = state_attr('sensor.local_datahub_3_hourly','timeSeries') %} {% set ns = namespace(forecast=[]) %} {% for ts in dh -%}
{% if 'T00' in ts['time'] or 'T12' in ts['time'] and ts['time']|as_datetime > now() -%}
{% set index = (dh|map(attribute='time')|list).index(ts['time']) -%}
{% set dhr = dh[((0,index-1,dh|count)|sort)[1]:((0,index+2,dh|count)|sort)[1]] %}
{% set tsd = { 'datetime': (ts['time']|as_datetime).isoformat(),
'is_daytime': 'T12' in ts['time'],
'condition': code2ha(ts['significantWeatherCode']),
'humidity': dhr|map(attribute='screenRelativeHumidity')|average|round(0),
'pressure': dhr|map(attribute='mslp')|average|round(0),
'temperature': dhr|map(attribute='maxScreenAirTemp')|max|round(0),
'templow': dhr|map(attribute='minScreenAirTemp')|min|round(0),
'precipitation_probability': dhr|map(attribute='probOfPrecipitation')|average|round(0),
'wind_speed': dhr|map(attribute='windSpeed10m')|average|round(0) } -%}
{% set ns.forecast = ns.forecast + [tsd] -%}
{% endif -%}
{% endfor %} {{ ns.forecast }}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 604, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2639, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
TypeError: 'NoneType' object is not iterable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 716, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 606, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: 'NoneType' object is not iterable
2024-07-20 12:11:56.454 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('TypeError: 'NoneType' object is not iterable') while processing template 'Template<template=({% from 'met_office_codes.jinja' import code2ha %} {% set dh = state_attr('sensor.local_datahub_3_hourly','timeSeries') %} {% set ns = namespace(forecast=[]) %} {% for ts in dh -%}
{% if 'T00' in ts['time'] or 'T12' in ts['time'] and ts['time']|as_datetime > now() -%}
{% set index = (dh|map(attribute='time')|list).index(ts['time']) -%}
{% set dhr = dh[((0,index-1,dh|count)|sort)[1]:((0,index+2,dh|count)|sort)[1]] %}
{% set tsd = { 'datetime': (ts['time']|as_datetime).isoformat(),
'is_daytime': 'T12' in ts['time'],
'condition': code2ha(ts['significantWeatherCode']),
'humidity': dhr|map(attribute='screenRelativeHumidity')|average|round(0),
'pressure': dhr|map(attribute='mslp')|average|round(0),
'temperature': dhr|map(attribute='maxScreenAirTemp')|max|round(0),
'templow': dhr|map(attribute='minScreenAirTemp')|min|round(0),
'precipitation_probability': dhr|map(attribute='probOfPrecipitation')|average|round(0),
'wind_speed': dhr|map(attribute='windSpeed10m')|average|round(0) } -%}
{% set ns.forecast = ns.forecast + [tsd] -%}
{% endif -%}
{% endfor %} {{ ns.forecast }}) renders=4>' for attribute '_forecast_twice_daily' in entity 'weather.met_office_datahub'
2024-07-20 12:11:56.777 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-20 12:12:07.346 WARNING (MainThread) [custom_components.tapo_control] Front running on battery: False
2024-07-20 12:12:07.472 WARNING (MainThread) [custom_components.tapo_control] Garage running on battery: False
2024-07-20 12:12:10.153 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:11.520 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:18.912 WARNING (MainThread) [custom_components.tapo_control] Garage running on battery: False
2024-07-20 12:12:21.840 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:21.841 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:31.845 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:31.845 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:37.347 WARNING (MainThread) [custom_components.tapo_control] Front running on battery: False
2024-07-20 12:12:37.473 WARNING (MainThread) [custom_components.tapo_control] Garage running on battery: False
2024-07-20 12:12:41.848 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:41.849 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:47.350 WARNING (MainThread) [custom_components.tapo_control] Front running on battery: False
2024-07-20 12:12:47.475 WARNING (MainThread) [custom_components.tapo_control] Garage running on battery: False
2024-07-20 12:12:51.853 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:51.854 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:12:59.015 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547084572496] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 188, in async_handle_select_option
await self.async_select_option(option)
File "/config/custom_components/tapo_control/select.py", line 315, in async_select_option
result = await self._hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytapo/__init__.py", line 1576, in setDayNightMode
return self.setNightVisionModeConfig("md_night_vision")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytapo/__init__.py", line 1586, in setNightVisionModeConfig
return self.executeFunction(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pytapo/__init__.py", line 510, in executeFunction
raise Exception(
Exception: Error: 60305, Response: {"method": "setNightVisionModeConfig", "result": {}, "error_code": 60305}
2024-07-20 12:13:01.856 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:13:01.857 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False
2024-07-20 12:13:07.349 WARNING (MainThread) [custom_components.tapo_control] Front running on battery: False
2024-07-20 12:13:07.474 WARNING (MainThread) [custom_components.tapo_control] Garage running on battery: False
2024-07-20 12:13:11.860 WARNING (MainThread) [custom_components.tapo_control] Hub running on battery: False

Device Firmware

1.1.16 build 20240617 rel. 65780

Integration Version

5.4.28 (just updated)

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

Docker on Rpi 4 (2GB)

Search for similar issues

Yes

Additional information

No response

JurajNyiri commented 3 months ago

@RedNo7 Just to confirm (unrelated), your cameras are running on electricity, not battery or solar right?

JurajNyiri commented 3 months ago

For the issue, please post screenshot from the official tapo app of the options available.

RedNo7 commented 3 months ago

@RedNo7 Just to confirm (unrelated), your cameras are running on electricity, not battery or solar right?

My camera are powered but this issue refers to my battery operated DS230 doorbell.

JurajNyiri commented 3 months ago

Which one of these is the doorbell? Front, Garage, Hub

JurajNyiri commented 3 months ago

Could you please post a screenshot of attributes under developer tools for the doorbell?

RedNo7 commented 3 months ago

For the issue, please post screenshot from the official tapo app of the options available. IMG_6862 IMG_6864

Funnily enough, I was checking that just now and cannot actually see a night mode option that has off, on, auto.

Under 'video and Display, I do havenight mode settings`: IMG_6865 IMG_6866

RedNo7 commented 3 months ago

Which one of these is the doorbell? Front, Garage, Hub

none. The doorbell is a device under hub though. Screenshot 2024-07-20 at 12 23 40

Screenshot 2024-07-20 at 12 24 04

JurajNyiri commented 3 months ago

Do the options On and Off work at all? What do they do?

RedNo7 commented 3 months ago

Could you please post a screenshot of attributes under developer tools for the doorbell?

how do I do this (where is it) or do you mean a list of all the entities for the doorbell?

JurajNyiri commented 3 months ago

Nevermind on that, there is no camera entity on doorbell or hub devices at all, all good there. Just check what on/off via integration does out of curiosity.

RedNo7 commented 3 months ago

Do the options On and Off work at all? What do they do?

Honestly, I never noticed this entity before now, and only because it popped up as unknown. off and on do stick but not sure what it does.

Screenshot 2024-07-20 at 12 27 14

RedNo7 commented 3 months ago

Nevermind on that, there is no camera entity on doorbell or hub devices at all, all good there. Just check what on/off via integration does out of curiosity.

OK, got it.

off sets Night mode Settings to full colour on sets night mode settings to infrared

...so I assume auto should set night mode settings to Doorbell mode?? IMG_6866

JurajNyiri commented 3 months ago

Let me get back in about 10 min with further instructions, need to think on this a bit and finish one PR.

JurajNyiri commented 3 months ago
  1. Set option via tapo app to doorbell mode
  2. Enable debug mode for integrration
  3. Post log after the log statement "Raw update data", or just one two value for keys "getNightVisionModeConfig" and "getLdc".

Since you have multiple cameras, just post all 3 to be safe. You should see something like this (value will be different, and possibly False):

Screenshot 2024-07-20 at 13 50 52

and

Screenshot 2024-07-20 at 13 55 04
RedNo7 commented 3 months ago

I couldn't find raw update data, but searching for night vision ode shows these 4 lines. 2 say hub so I assume one is the doorbell.

2024-07-20 13:56:08.327 DEBUG (MainThread) [custom_components.tapo_control] {'raw': {'getDeviceInfo': [{'device_info': {'basic_info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}, 'info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}}}], 'getDetectionConfig': [False], 'getPersonDetectionConfig': [False], 'getVehicleDetectionConfig': [False], 'getBCDConfig': [False], 'getPetDetectionConfig': [False], 'getBarkDetectionConfig': [False], 'getMeowDetectionConfig': [False], 'getGlassDetectionConfig': [False], 'getTamperDetectionConfig': [False], 'getLensMaskConfig': [False], 'getLdc': [False], 'getLastAlarmInfo': [False], 'getLedStatus': [{'led': {'config': {'.name': 'config', '.type': 'led', 'enabled': 'on'}}}], 'getTargetTrackConfig': [False], 'getPresetConfig': [False], 'getFirmwareUpdateStatus': [{'cloud_config': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}}], 'getMediaEncrypt': [{'cet': {'media_encrypt': {'enabled': 'on'}}}], 'getConnectionType': [{'link_type': 'ethernet'}], 'getAlarmConfig': [False], 'getAlarmPlan': [False], 'getSirenTypeList': [{'siren_type_list': ['Doorbell Ring 1', 'Doorbell Ring 2', 'Doorbell Ring 3', 'Doorbell Ring 4', 'Doorbell Ring 5', 'Doorbell Ring 6', 'Doorbell Ring 7', 'Doorbell Ring 8', 'Doorbell Ring 9', 'Doorbell Ring 10', 'Phone Ring', 'Alarm 1', 'Alarm 2', 'Alarm 3', 'Alarm 4', 'Dripping Tap', 'Alarm 5', 'Connection 1', 'Connection 2']}, False], 'getSirenConfig': [{'siren_type': 'Doorbell Ring 2', 'volume': '6', 'duration': 5}], 'getLightTypeList': [False], 'getSirenStatus': [{'status': 'off', 'time_left': 0}, False], 'getLightFrequencyInfo': [False], 'getLightFrequencyCapability': [False], 'getChildDeviceList': [{'start_index': 0, 'child_device_list': [{'device_id': '8021B7BCF9B97CD2231768645F13642B21F3B6DD', 'parent_device_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'device_model': 'D230', 'device_name': 'D230 1.0', 'alias': 'Doorbell', 'avatar': 'camera d230', 'sw_ver': '1.1.16 Build 20240617 rel.65780', 'hw_ver': '1.0', 'mac': '5C:E9:31:B5:B6:11', 'device_type': 'SMART.IPCAMERA', 'category': 'camera', 'hw_id': 'FA0B0A09DE3399EB4F20616A92FA7A18', 'oem_id': 'CC76064AF2058DA42D6752DA96D088F6', 'system_time': 1721480167, 'led_status': 'on', 'updating': False, 'online': True, 'firmware_status': 'OK', 'power': 'BATTERY', 'battery_percent': 60, 'battery_charging': 'NO', 'rssi': -48, 'dev_name': 'Tapo Smart Doorbell', 'ipaddr': '172.23.30.2', 'short_addr': 0, 'ext_addr': '5CE931B5B6110000', 'status': 'configured', 'onboarding_timestamp': 1713463117, 'battery_voltage': 3804, 'battery_temperature': 25, 'battery_installed': 1, 'low_battery': False, 'power_save_mode': 'auto', 'power_save_status': 'off', 'uptime': 2189169, 'cam_uptime': 5593, 'subg_cam_rssi': 0, 'subg_hub_rssi': 0, 'region': 'EU', 'anti_theft_status': 0}], 'sum': 1}], 'getRotationStatus': [False], 'getNightVisionModeConfig': [False], 'getWhitelampStatus': [False], 'getWhitelampConfig': [False], 'getMsgPushConfig': [False], 'getSdCardStatus': [{'harddisk_manage': {'hd_info': [{'hd_info_1': {'disk_name': '1', 'loop_record_status': '1', 'rw_attr': 'rw', 'total_space': '476.62 GB', 'write_protect': '0', 'type': 'local', 'status': 'normal', 'detect_status': 'normal', 'percent': '100', 'free_space': '472.33 GB', 'video_total_space': '452.79 GB', 'video_free_space': '448.49 GB'}}]}}], 'getCircularRecordingConfig': [{'harddisk_manage': {'harddisk': {'loop': 'on'}}}], 'getRecordPlan': [False], 'getAudioConfig': [False], 'getFirmwareAutoUpgradeConfig': [{'auto_upgrade': {'common': {'enabled': 'on', 'time': '03:00', 'random_range': 30}}}], 'getVideoQualities': [False], 'getVideoCapability': [False]}, 'user': 'admin', 'basic_info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}, 'motion_detection_enabled': None, 'motion_detection_sensitivity': None, 'motion_detection_digital_sensitivity': None, 'person_detection_enabled': None, 'person_detection_sensitivity': None, 'vehicle_detection_enabled': None, 'vehicle_detection_sensitivity': None, 'babyCry_detection_enabled': None, 'babyCry_detection_sensitivity': None, 'pet_detection_enabled': None, 'pet_detection_sensitivity': None, 'bark_detection_enabled': None, 'bark_detection_sensitivity': None, 'meow_detection_enabled': None, 'meow_detection_sensitivity': None, 'glass_detection_enabled': None, 'glass_detection_sensitivity': None, 'tamper_detection_enabled': None, 'tamper_detection_sensitivity': None, 'privacy_mode': None, 'notifications': None, 'rich_notifications': None, 'lens_distrotion_correction': None, 'light_frequency_mode': None, 'day_night_mode': None, 'force_white_lamp_state': None, 'flip': None, 'alarm': None, 'alarm_mode': None, 'led': 'on', 'auto_track': None, 'presets': {}, 'firmwareUpdateStatus': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}, 'childDevices': {'start_index': 0, 'child_device_list': [{'device_id': '8021B7BCF9B97CD2231768645F13642B21F3B6DD', 'parent_device_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'device_model': 'D230', 'device_name': 'D230 1.0', 'alias': 'Doorbell', 'avatar': 'camera d230', 'sw_ver': '1.1.16 Build 20240617 rel.65780', 'hw_ver': '1.0', 'mac': '5C:E9:31:B5:B6:11', 'device_type': 'SMART.IPCAMERA', 'category': 'camera', 'hw_id': 'FA0B0A09DE3399EB4F20616A92FA7A18', 'oem_id': 'CC76064AF2058DA42D6752DA96D088F6', 'system_time': 1721480167, 'led_status': 'on', 'updating': False, 'online': True, 'firmware_status': 'OK', 'power': 'BATTERY', 'battery_percent': 60, 'battery_charging': 'NO', 'rssi': -48, 'dev_name': 'Tapo Smart Doorbell', 'ipaddr': '172.23.30.2', 'short_addr': 0, 'ext_addr': '5CE931B5B6110000', 'status': 'configured', 'onboarding_timestamp': 1713463117, 'battery_voltage': 3804, 'battery_temperature': 25, 'battery_installed': 1, 'low_battery': False, 'power_save_mode': 'auto', 'power_save_status': 'off', 'uptime': 2189169, 'cam_uptime': 5593, 'subg_cam_rssi': 0, 'subg_hub_rssi': 0, 'region': 'EU', 'anti_theft_status': 0}], 'sum': 1}, 'whitelampConfigForceTime': None, 'whitelampConfigIntensity': None, 'whitelampStatus': None, 'sdCardData': [{'disk_name': '1', 'loop_record_status': '1', 'rw_attr': 'rw', 'total_space': '476.62 GB', 'write_protect': '0', 'type': 'local', 'status': 'normal', 'detect_status': 'normal', 'percent': '100', 'free_space': '472.33 GB', 'video_total_space': '452.79 GB', 'video_free_space': '448.49 GB'}], 'recordPlan': None, 'microphoneVolume': None, 'microphoneMute': None, 'microphoneNoiseCancelling': None, 'speakerVolume': None, 'autoUpgradeEnabled': 'on', 'connectionInformation': {'link_type': 'ethernet'}, 'videoCapability': False, 'videoQualities': False}
2024-07-20 13:56:56.001 DEBUG (MainThread) [custom_components.tapo_control] {'raw': {'getDeviceInfo': [{'device_info': {'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_info': 'C325WB 1.0 IPC', 'features': 3, 'barcode': '', 'device_model': 'C325WB', 'sw_version': '1.1.17 Build 240529 Rel.57938n', 'device_name': 'C325WB 1.0', 'hw_version': '1.0', 'device_alias': 'Garage', 'mobile_access': '0', 'mac': 'F0-A7-31-5B-9C-A7', 'dev_id': '8021FDB31867B6EB820B3DF1957AE30A21DB1F04', 'hw_id': '27E58F86343A05F1F3A90E5F2F7952CA', 'oem_id': '45A364BF130D6772384832DF1C48546B', 'hw_desc': '00000000000000000000000000000000', 'manufacturer_name': 'TP-LINK', 'region': 'EU', 'ffs': False, 'is_cal': True, 'avatar': 'camera c310', 'has_set_location_info': 1, 'longitude': -12276, 'latitude': 518650}}}], 'getDetectionConfig': [{'motion_detection': {'motion_det': {'enabled': 'off', 'sensitivity': 'high', 'digital_sensitivity': '80', 'people_enabled': 'off', 'vehicle_enabled': 'off', 'non_vehicle_enabled': 'off'}}}], 'getPersonDetectionConfig': [{'people_detection': {'detection': {'enabled': 'on', 'sensitivity': '80'}}}], 'getVehicleDetectionConfig': [{'vehicle_detection': {'detection': {'enabled': 'on', 'sensitivity': '70'}}}], 'getBCDConfig': [False], 'getPetDetectionConfig': [{'pet_detection': {'detection': {'enabled': 'off', 'sensitivity': '60'}}}], 'getBarkDetectionConfig': [False], 'getMeowDetectionConfig': [False], 'getGlassDetectionConfig': [False], 'getTamperDetectionConfig': [{'tamper_detection': {'tamper_det': {'enabled': 'on', 'sensitivity': 'medium', 'digital_sensitivity': '50'}}}], 'getLensMaskConfig': [{'lens_mask': {'lens_mask_info': {'enabled': 'off'}}}], 'getLdc': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '15', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}, 'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '0', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '4', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'auto_ir', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLastAlarmInfo': [{'msg_alarm': {'chn1_msg_alarm_info': {'enabled': 'off', 'light_alarm_enabled': 'on', 'alarm_mode': ['sound'], 'alarm_type': '0', 'light_type': '1', 'sound_alarm_enabled': 'on', 'alarm_volume': 'low', 'alarm_duration': '0'}}}], 'getLedStatus': [{'led': {'config': {'enabled': 'on'}}}], 'getTargetTrackConfig': [False], 'getPresetConfig': [False], 'getFirmwareUpdateStatus': [{'cloud_config': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}}], 'getMediaEncrypt': [{'cet': {'media_encrypt': {'enabled': 'on'}}}], 'getConnectionType': [{'link_type': 'ethernet'}], 'getAlarmConfig': [False], 'getAlarmPlan': [False], 'getSirenTypeList': [False, False], 'getSirenConfig': [False], 'getLightTypeList': [False], 'getSirenStatus': [False, False], 'getLightFrequencyInfo': [{'image': {'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '0', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '4', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'auto_ir', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLightFrequencyCapability': [False], 'getChildDeviceList': [False], 'getRotationStatus': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '15', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getNightVisionModeConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '15', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getWhitelampStatus': [{'status': 0, 'rest_time': 0}], 'getWhitelampConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '15', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getMsgPushConfig': [{'msg_push': {'chn1_msg_push_info': {'notification_enabled': 'off', 'rich_notification_enabled': 'off'}}}], 'getSdCardStatus': [{'harddisk_manage': {'hd_info': [{'hd_info_1': {'disk_name': '1', 'rw_attr': 'rw', 'status': 'normal', 'detect_status': 'normal', 'write_protect': '0', 'percent': '100', 'type': 'local', 'record_duration': '0', 'record_free_duration': '0', 'record_start_time': '1707326188', 'loop_record_status': '0', 'total_space': '476.3GB', 'total_space_accurate': '511475220480B', 'free_space': '270.1GB', 'free_space_accurate': '289971618568B', 'video_total_space': '457.0GB', 'video_total_space_accurate': '490700013568B', 'video_free_space': '270.1GB', 'video_free_space_accurate': '289971618568B', 'picture_total_space': '0B', 'picture_total_space_accurate': '0B', 'picture_free_space': '0B', 'picture_free_space_accurate': '0B', 'crossline_total_space': '0B', 'crossline_total_space_accurate': '0B', 'crossline_free_space': '0B', 'crossline_free_space_accurate': '0B', 'msg_push_total_space': '0B', 'msg_push_total_space_accurate': '0B', 'msg_push_free_space': '0B', 'msg_push_free_space_accurate': '0B'}}]}}], 'getCircularRecordingConfig': [{'harddisk_manage': {'harddisk': {'loop': 'on'}}}], 'getRecordPlan': [{'record_plan': {'chn1_channel': {'enabled': 'on', 'monday': '["0000-2400:2"]', 'tuesday': '["0000-2400:2"]', 'wednesday': '["0000-2400:2"]', 'thursday': '["0000-2400:2"]', 'friday': '["0000-2400:2"]', 'saturday': '["0000-2400:2"]', 'sunday': '["0000-2400:2"]'}}}], 'getAudioConfig': [{'audio_config': {'speaker': {'volume': '100', 'mute': 'off', 'output_device_type': 'SpeakerOut'}, 'microphone': {'sampling_rate': '8', 'channels': '1', 'encode_type': 'G711alaw', 'mute': 'off', 'volume': '0', 'input_device_type': 'MicIn', 'noise_cancelling': 'on', 'bitrate': '64', 'echo_cancelling': 'off'}}}], 'getFirmwareAutoUpgradeConfig': [{'auto_upgrade': {'common': {'enabled': 'on', 'time': '08:00', 'random_range': '120'}}}], 'getVideoQualities': [{'video': {'main': {'quality': '3', 'bitrate': '3072', 'frame_rate': '65556', 'smart_codec': 'off', 'encode_type': 'H264', 'resolution': '2688*1520', 'bitrate_type': 'vbr', 'name': 'VideoEncoder_1', 'default_bitrate': '3072', 'hdr': '0'}}}], 'getVideoCapability': [{'video_capability': {'main': {'encode_types': ['H264', 'H265'], 'frame_rates': ['65537', '65546', '65551', '65556'], 'bitrates': ['256', '512', '1024', '1536', '3072'], 'bitrate_types': ['cbr', 'vbr'], 'resolutions': ['2688*1520', '1920*1080', '1280*720'], 'qualitys': ['1', '3', '5'], 'hdrs': ['0', '1'], 'minor_stream_support': '1'}}}]}, 'user': 'admin', 'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_info': 'C325WB 1.0 IPC', 'features': 3, 'barcode': '', 'device_model': 'C325WB', 'sw_version': '1.1.17 Build 240529 Rel.57938n', 'device_name': 'C325WB 1.0', 'hw_version': '1.0', 'device_alias': 'Garage', 'mobile_access': '0', 'mac': 'F0-A7-31-5B-9C-A7', 'dev_id': '8021FDB31867B6EB820B3DF1957AE30A21DB1F04', 'hw_id': '27E58F86343A05F1F3A90E5F2F7952CA', 'oem_id': '45A364BF130D6772384832DF1C48546B', 'hw_desc': '00000000000000000000000000000000', 'manufacturer_name': 'TP-LINK', 'region': 'EU', 'ffs': False, 'is_cal': True, 'avatar': 'camera c310', 'has_set_location_info': 1, 'longitude': -12276, 'latitude': 518650}, 'motion_detection_enabled': 'off', 'motion_detection_sensitivity': 'high', 'motion_detection_digital_sensitivity': '80', 'person_detection_enabled': 'on', 'person_detection_sensitivity': 'high', 'vehicle_detection_enabled': 'on', 'vehicle_detection_sensitivity': 'high', 'babyCry_detection_enabled': None, 'babyCry_detection_sensitivity': None, 'pet_detection_enabled': 'off', 'pet_detection_sensitivity': 'normal', 'bark_detection_enabled': None, 'bark_detection_sensitivity': None, 'meow_detection_enabled': None, 'meow_detection_sensitivity': None, 'glass_detection_enabled': None, 'glass_detection_sensitivity': None, 'tamper_detection_enabled': 'on', 'tamper_detection_sensitivity': 'high', 'privacy_mode': 'off', 'notifications': 'off', 'rich_notifications': 'off', 'lens_distrotion_correction': 'off', 'light_frequency_mode': 'auto', 'day_night_mode': 'auto', 'force_white_lamp_state': None, 'flip': 'off', 'alarm': 'off', 'alarm_mode': ['sound'], 'led': 'on', 'auto_track': None, 'presets': {}, 'firmwareUpdateStatus': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}, 'childDevices': False, 'whitelampConfigForceTime': '300', 'whitelampConfigIntensity': '15', 'whitelampStatus': 0, 'sdCardData': [{'disk_name': '1', 'rw_attr': 'rw', 'status': 'normal', 'detect_status': 'normal', 'write_protect': '0', 'percent': '100', 'type': 'local', 'record_duration': '0', 'record_free_duration': '0', 'record_start_time': '1707326188', 'loop_record_status': '0', 'total_space': '476.3GB', 'total_space_accurate': '511475220480B', 'free_space': '270.1GB', 'free_space_accurate': '289971618568B', 'video_total_space': '457.0GB', 'video_total_space_accurate': '490700013568B', 'video_free_space': '270.1GB', 'video_free_space_accurate': '289971618568B', 'picture_total_space': '0B', 'picture_total_space_accurate': '0B', 'picture_free_space': '0B', 'picture_free_space_accurate': '0B', 'crossline_total_space': '0B', 'crossline_total_space_accurate': '0B', 'crossline_free_space': '0B', 'crossline_free_space_accurate': '0B', 'msg_push_total_space': '0B', 'msg_push_total_space_accurate': '0B', 'msg_push_free_space': '0B', 'msg_push_free_space_accurate': '0B'}], 'recordPlan': {'enabled': 'on', 'monday': '["0000-2400:2"]', 'tuesday': '["0000-2400:2"]', 'wednesday': '["0000-2400:2"]', 'thursday': '["0000-2400:2"]', 'friday': '["0000-2400:2"]', 'saturday': '["0000-2400:2"]', 'sunday': '["0000-2400:2"]'}, 'microphoneVolume': '0', 'microphoneMute': 'off', 'microphoneNoiseCancelling': 'on', 'speakerVolume': '100', 'autoUpgradeEnabled': 'on', 'connectionInformation': {'link_type': 'ethernet'}, 'videoCapability': {'video_capability': {'main': {'encode_types': ['H264', 'H265'], 'frame_rates': ['65537', '65546', '65551', '65556'], 'bitrates': ['256', '512', '1024', '1536', '3072'], 'bitrate_types': ['cbr', 'vbr'], 'resolutions': ['2688*1520', '1920*1080', '1280*720'], 'qualitys': ['1', '3', '5'], 'hdrs': ['0', '1'], 'minor_stream_support': '1'}}}, 'videoQualities': {'video': {'main': {'quality': '3', 'bitrate': '3072', 'frame_rate': '65556', 'smart_codec': 'off', 'encode_type': 'H264', 'resolution': '2688*1520', 'bitrate_type': 'vbr', 'name': 'VideoEncoder_1', 'default_bitrate': '3072', 'hdr': '0'}}}}
2024-07-20 13:57:09.061 DEBUG (MainThread) [custom_components.tapo_control] {'raw': {'getDeviceInfo': [{'device_info': {'basic_info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}, 'info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}}}], 'getDetectionConfig': [False], 'getPersonDetectionConfig': [False], 'getVehicleDetectionConfig': [False], 'getBCDConfig': [False], 'getPetDetectionConfig': [False], 'getBarkDetectionConfig': [False], 'getMeowDetectionConfig': [False], 'getGlassDetectionConfig': [False], 'getTamperDetectionConfig': [False], 'getLensMaskConfig': [False], 'getLdc': [False], 'getLastAlarmInfo': [False], 'getLedStatus': [{'led': {'config': {'.name': 'config', '.type': 'led', 'enabled': 'on'}}}], 'getTargetTrackConfig': [False], 'getPresetConfig': [False], 'getFirmwareUpdateStatus': [{'cloud_config': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}}], 'getMediaEncrypt': [{'cet': {'media_encrypt': {'enabled': 'on'}}}], 'getConnectionType': [{'link_type': 'ethernet'}], 'getAlarmConfig': [False], 'getAlarmPlan': [False], 'getSirenTypeList': [{'siren_type_list': ['Doorbell Ring 1', 'Doorbell Ring 2', 'Doorbell Ring 3', 'Doorbell Ring 4', 'Doorbell Ring 5', 'Doorbell Ring 6', 'Doorbell Ring 7', 'Doorbell Ring 8', 'Doorbell Ring 9', 'Doorbell Ring 10', 'Phone Ring', 'Alarm 1', 'Alarm 2', 'Alarm 3', 'Alarm 4', 'Dripping Tap', 'Alarm 5', 'Connection 1', 'Connection 2']}, False], 'getSirenConfig': [{'siren_type': 'Doorbell Ring 2', 'volume': '6', 'duration': 5}], 'getLightTypeList': [False], 'getSirenStatus': [{'status': 'off', 'time_left': 0}, False], 'getLightFrequencyInfo': [False], 'getLightFrequencyCapability': [False], 'getChildDeviceList': [{'start_index': 0, 'child_device_list': [{'device_id': '8021B7BCF9B97CD2231768645F13642B21F3B6DD', 'parent_device_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'device_model': 'D230', 'device_name': 'D230 1.0', 'alias': 'Doorbell', 'avatar': 'camera d230', 'sw_ver': '1.1.16 Build 20240617 rel.65780', 'hw_ver': '1.0', 'mac': '5C:E9:31:B5:B6:11', 'device_type': 'SMART.IPCAMERA', 'category': 'camera', 'hw_id': 'FA0B0A09DE3399EB4F20616A92FA7A18', 'oem_id': 'CC76064AF2058DA42D6752DA96D088F6', 'system_time': 1721480228, 'led_status': 'on', 'updating': False, 'online': True, 'firmware_status': 'OK', 'power': 'BATTERY', 'battery_percent': 60, 'battery_charging': 'NO', 'rssi': -48, 'dev_name': 'Tapo Smart Doorbell', 'ipaddr': '172.23.30.2', 'short_addr': 0, 'ext_addr': '5CE931B5B6110000', 'status': 'configured', 'onboarding_timestamp': 1713463117, 'battery_voltage': 3804, 'battery_temperature': 25, 'battery_installed': 1, 'low_battery': False, 'power_save_mode': 'auto', 'power_save_status': 'off', 'uptime': 2189230, 'cam_uptime': 5593, 'subg_cam_rssi': 0, 'subg_hub_rssi': 0, 'region': 'EU', 'anti_theft_status': 0}], 'sum': 1}], 'getRotationStatus': [False], 'getNightVisionModeConfig': [False], 'getWhitelampStatus': [False], 'getWhitelampConfig': [False], 'getMsgPushConfig': [False], 'getSdCardStatus': [{'harddisk_manage': {'hd_info': [{'hd_info_1': {'disk_name': '1', 'loop_record_status': '1', 'rw_attr': 'rw', 'total_space': '476.62 GB', 'write_protect': '0', 'type': 'local', 'status': 'normal', 'detect_status': 'normal', 'percent': '100', 'free_space': '472.33 GB', 'video_total_space': '452.79 GB', 'video_free_space': '448.49 GB'}}]}}], 'getCircularRecordingConfig': [{'harddisk_manage': {'harddisk': {'loop': 'on'}}}], 'getRecordPlan': [False], 'getAudioConfig': [False], 'getFirmwareAutoUpgradeConfig': [{'auto_upgrade': {'common': {'enabled': 'on', 'time': '03:00', 'random_range': 30}}}], 'getVideoQualities': [False], 'getVideoCapability': [False]}, 'user': 'admin', 'basic_info': {'device_type': 'SMART.TAPOHUB', 'device_model': 'H200', 'device_name': 'H200 1.0', 'device_info': 'H200 1.0', 'hw_version': '1.0', 'sw_version': '1.3.3 Build 20240604 rel.61598', 'device_alias': 'Hub', 'mac': 'F0-A7-31-98-06-A2', 'dev_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'oem_id': '20BDFF5DD35D9F82C31FC30217AA348D', 'hw_id': '99A36151C79A3A5D72823C98BC0FDA5F', 'status': 'configured', 'bind_status': True, 'child_num': 1, 'avatar': 'hub_h200', 'latitude': 518650, 'longitude': -12276, 'has_set_location_info': 1, 'need_sync_sha1_password': 0, 'product_name': 'Tapo Smart Hub', 'region': 'EU'}, 'motion_detection_enabled': None, 'motion_detection_sensitivity': None, 'motion_detection_digital_sensitivity': None, 'person_detection_enabled': None, 'person_detection_sensitivity': None, 'vehicle_detection_enabled': None, 'vehicle_detection_sensitivity': None, 'babyCry_detection_enabled': None, 'babyCry_detection_sensitivity': None, 'pet_detection_enabled': None, 'pet_detection_sensitivity': None, 'bark_detection_enabled': None, 'bark_detection_sensitivity': None, 'meow_detection_enabled': None, 'meow_detection_sensitivity': None, 'glass_detection_enabled': None, 'glass_detection_sensitivity': None, 'tamper_detection_enabled': None, 'tamper_detection_sensitivity': None, 'privacy_mode': None, 'notifications': None, 'rich_notifications': None, 'lens_distrotion_correction': None, 'light_frequency_mode': None, 'day_night_mode': None, 'force_white_lamp_state': None, 'flip': None, 'alarm': None, 'alarm_mode': None, 'led': 'on', 'auto_track': None, 'presets': {}, 'firmwareUpdateStatus': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}, 'childDevices': {'start_index': 0, 'child_device_list': [{'device_id': '8021B7BCF9B97CD2231768645F13642B21F3B6DD', 'parent_device_id': '802DF8EA1206D2FF2C96F98D9EAC719B21ED0446', 'device_model': 'D230', 'device_name': 'D230 1.0', 'alias': 'Doorbell', 'avatar': 'camera d230', 'sw_ver': '1.1.16 Build 20240617 rel.65780', 'hw_ver': '1.0', 'mac': '5C:E9:31:B5:B6:11', 'device_type': 'SMART.IPCAMERA', 'category': 'camera', 'hw_id': 'FA0B0A09DE3399EB4F20616A92FA7A18', 'oem_id': 'CC76064AF2058DA42D6752DA96D088F6', 'system_time': 1721480228, 'led_status': 'on', 'updating': False, 'online': True, 'firmware_status': 'OK', 'power': 'BATTERY', 'battery_percent': 60, 'battery_charging': 'NO', 'rssi': -48, 'dev_name': 'Tapo Smart Doorbell', 'ipaddr': '172.23.30.2', 'short_addr': 0, 'ext_addr': '5CE931B5B6110000', 'status': 'configured', 'onboarding_timestamp': 1713463117, 'battery_voltage': 3804, 'battery_temperature': 25, 'battery_installed': 1, 'low_battery': False, 'power_save_mode': 'auto', 'power_save_status': 'off', 'uptime': 2189230, 'cam_uptime': 5593, 'subg_cam_rssi': 0, 'subg_hub_rssi': 0, 'region': 'EU', 'anti_theft_status': 0}], 'sum': 1}, 'whitelampConfigForceTime': None, 'whitelampConfigIntensity': None, 'whitelampStatus': None, 'sdCardData': [{'disk_name': '1', 'loop_record_status': '1', 'rw_attr': 'rw', 'total_space': '476.62 GB', 'write_protect': '0', 'type': 'local', 'status': 'normal', 'detect_status': 'normal', 'percent': '100', 'free_space': '472.33 GB', 'video_total_space': '452.79 GB', 'video_free_space': '448.49 GB'}], 'recordPlan': None, 'microphoneVolume': None, 'microphoneMute': None, 'microphoneNoiseCancelling': None, 'speakerVolume': None, 'autoUpgradeEnabled': 'on', 'connectionInformation': {'link_type': 'ethernet'}, 'videoCapability': False, 'videoQualities': False}
2024-07-20 13:57:15.944 DEBUG (MainThread) [custom_components.tapo_control] {'raw': {'getDeviceInfo': [{'device_info': {'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_info': 'C325WB 1.0 IPC', 'features': 3, 'barcode': '', 'device_model': 'C325WB', 'sw_version': '1.1.17 Build 240529 Rel.57938n', 'device_name': 'C325WB 1.0', 'hw_version': '1.0', 'device_alias': 'Front', 'mobile_access': '0', 'mac': 'F0-A7-31-5B-8E-37', 'dev_id': '8021CD2F99F952A42A0985E51D439F5421DA2B4A', 'hw_id': '27E58F86343A05F1F3A90E5F2F7952CA', 'oem_id': '45A364BF130D6772384832DF1C48546B', 'hw_desc': '00000000000000000000000000000000', 'manufacturer_name': 'TP-LINK', 'region': 'EU', 'ffs': False, 'is_cal': True, 'avatar': 'camera c310', 'has_set_location_info': 1, 'longitude': -12276, 'latitude': 518650}}}], 'getDetectionConfig': [{'motion_detection': {'motion_det': {'enabled': 'off', 'sensitivity': 'high', 'digital_sensitivity': '80', 'people_enabled': 'off', 'vehicle_enabled': 'off', 'non_vehicle_enabled': 'off'}}}], 'getPersonDetectionConfig': [{'people_detection': {'detection': {'enabled': 'on', 'sensitivity': '90'}}}], 'getVehicleDetectionConfig': [{'vehicle_detection': {'detection': {'enabled': 'on', 'sensitivity': '70'}}}], 'getBCDConfig': [False], 'getPetDetectionConfig': [{'pet_detection': {'detection': {'enabled': 'off', 'sensitivity': '60'}}}], 'getBarkDetectionConfig': [False], 'getMeowDetectionConfig': [False], 'getGlassDetectionConfig': [False], 'getTamperDetectionConfig': [{'tamper_detection': {'tamper_det': {'enabled': 'on', 'sensitivity': 'high', 'digital_sensitivity': '80'}}}], 'getLensMaskConfig': [{'lens_mask': {'lens_mask_info': {'enabled': 'off'}}}], 'getLdc': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '30', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}, 'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '0', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '4', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'auto_ir', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLastAlarmInfo': [{'msg_alarm': {'chn1_msg_alarm_info': {'enabled': 'off', 'light_alarm_enabled': 'on', 'alarm_mode': ['sound'], 'alarm_type': '0', 'light_type': '1', 'sound_alarm_enabled': 'on', 'alarm_volume': 'low', 'alarm_duration': '0'}}}], 'getLedStatus': [{'led': {'config': {'enabled': 'on'}}}], 'getTargetTrackConfig': [False], 'getPresetConfig': [False], 'getFirmwareUpdateStatus': [{'cloud_config': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}}], 'getMediaEncrypt': [{'cet': {'media_encrypt': {'enabled': 'on'}}}], 'getConnectionType': [{'link_type': 'ethernet'}], 'getAlarmConfig': [False], 'getAlarmPlan': [False], 'getSirenTypeList': [False, False], 'getSirenConfig': [False], 'getLightTypeList': [False], 'getSirenStatus': [False, False], 'getLightFrequencyInfo': [{'image': {'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '0', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '4', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'auto_ir', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLightFrequencyCapability': [False], 'getChildDeviceList': [False], 'getRotationStatus': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '30', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getNightVisionModeConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '30', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getWhitelampStatus': [{'status': 0, 'rest_time': 0}], 'getWhitelampConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'wtl_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '30', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal'}}}], 'getMsgPushConfig': [{'msg_push': {'chn1_msg_push_info': {'notification_enabled': 'off', 'rich_notification_enabled': 'off'}}}], 'getSdCardStatus': [{'harddisk_manage': {'hd_info': [{'hd_info_1': {'disk_name': '1', 'rw_attr': 'rw', 'status': 'normal', 'detect_status': 'normal', 'write_protect': '0', 'percent': '100', 'type': 'local', 'record_duration': '0', 'record_free_duration': '0', 'record_start_time': '1699380261', 'loop_record_status': '0', 'total_space': '476.3GB', 'total_space_accurate': '511475220480B', 'free_space': '269.1GB', 'free_space_accurate': '288988094044B', 'video_total_space': '457.0GB', 'video_total_space_accurate': '490700013568B', 'video_free_space': '269.1GB', 'video_free_space_accurate': '288988094044B', 'picture_total_space': '0B', 'picture_total_space_accurate': '0B', 'picture_free_space': '0B', 'picture_free_space_accurate': '0B', 'crossline_total_space': '0B', 'crossline_total_space_accurate': '0B', 'crossline_free_space': '0B', 'crossline_free_space_accurate': '0B', 'msg_push_total_space': '0B', 'msg_push_total_space_accurate': '0B', 'msg_push_free_space': '0B', 'msg_push_free_space_accurate': '0B'}}]}}], 'getCircularRecordingConfig': [{'harddisk_manage': {'harddisk': {'loop': 'on'}}}], 'getRecordPlan': [{'record_plan': {'chn1_channel': {'enabled': 'on', 'monday': '["0000-2400:2"]', 'tuesday': '["0000-2400:2"]', 'wednesday': '["0000-2400:2"]', 'thursday': '["0000-2400:2"]', 'friday': '["0000-2400:2"]', 'saturday': '["0000-2400:2"]', 'sunday': '["0000-2400:2"]'}}}], 'getAudioConfig': [{'audio_config': {'speaker': {'volume': '100', 'mute': 'off', 'output_device_type': 'SpeakerOut'}, 'microphone': {'sampling_rate': '8', 'channels': '1', 'encode_type': 'G711alaw', 'mute': 'off', 'volume': '0', 'input_device_type': 'MicIn', 'noise_cancelling': 'on', 'bitrate': '64', 'echo_cancelling': 'off'}}}], 'getFirmwareAutoUpgradeConfig': [{'auto_upgrade': {'common': {'enabled': 'on', 'time': '07:00', 'random_range': '120'}}}], 'getVideoQualities': [{'video': {'main': {'quality': '3', 'bitrate': '3072', 'frame_rate': '65556', 'smart_codec': 'off', 'encode_type': 'H264', 'resolution': '2688*1520', 'bitrate_type': 'vbr', 'name': 'VideoEncoder_1', 'default_bitrate': '3072', 'hdr': '0'}}}], 'getVideoCapability': [{'video_capability': {'main': {'encode_types': ['H264', 'H265'], 'frame_rates': ['65537', '65546', '65551', '65556'], 'bitrates': ['256', '512', '1024', '1536', '3072'], 'bitrate_types': ['cbr', 'vbr'], 'resolutions': ['2688*1520', '1920*1080', '1280*720'], 'qualitys': ['1', '3', '5'], 'hdrs': ['0', '1'], 'minor_stream_support': '1'}}}]}, 'user': 'admin', 'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_info': 'C325WB 1.0 IPC', 'features': 3, 'barcode': '', 'device_model': 'C325WB', 'sw_version': '1.1.17 Build 240529 Rel.57938n', 'device_name': 'C325WB 1.0', 'hw_version': '1.0', 'device_alias': 'Front', 'mobile_access': '0', 'mac': 'F0-A7-31-5B-8E-37', 'dev_id': '8021CD2F99F952A42A0985E51D439F5421DA2B4A', 'hw_id': '27E58F86343A05F1F3A90E5F2F7952CA', 'oem_id': '45A364BF130D6772384832DF1C48546B', 'hw_desc': '00000000000000000000000000000000', 'manufacturer_name': 'TP-LINK', 'region': 'EU', 'ffs': False, 'is_cal': True, 'avatar': 'camera c310', 'has_set_location_info': 1, 'longitude': -12276, 'latitude': 518650}, 'motion_detection_enabled': 'off', 'motion_detection_sensitivity': 'high', 'motion_detection_digital_sensitivity': '80', 'person_detection_enabled': 'on', 'person_detection_sensitivity': 'high', 'vehicle_detection_enabled': 'on', 'vehicle_detection_sensitivity': 'high', 'babyCry_detection_enabled': None, 'babyCry_detection_sensitivity': None, 'pet_detection_enabled': 'off', 'pet_detection_sensitivity': 'normal', 'bark_detection_enabled': None, 'bark_detection_sensitivity': None, 'meow_detection_enabled': None, 'meow_detection_sensitivity': None, 'glass_detection_enabled': None, 'glass_detection_sensitivity': None, 'tamper_detection_enabled': 'on', 'tamper_detection_sensitivity': 'high', 'privacy_mode': 'off', 'notifications': 'off', 'rich_notifications': 'off', 'lens_distrotion_correction': 'off', 'light_frequency_mode': 'auto', 'day_night_mode': 'auto', 'force_white_lamp_state': None, 'flip': 'off', 'alarm': 'off', 'alarm_mode': ['sound'], 'led': 'on', 'auto_track': None, 'presets': {}, 'firmwareUpdateStatus': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}, 'childDevices': False, 'whitelampConfigForceTime': '300', 'whitelampConfigIntensity': '30', 'whitelampStatus': 0, 'sdCardData': [{'disk_name': '1', 'rw_attr': 'rw', 'status': 'normal', 'detect_status': 'normal', 'write_protect': '0', 'percent': '100', 'type': 'local', 'record_duration': '0', 'record_free_duration': '0', 'record_start_time': '1699380261', 'loop_record_status': '0', 'total_space': '476.3GB', 'total_space_accurate': '511475220480B', 'free_space': '269.1GB', 'free_space_accurate': '288988094044B', 'video_total_space': '457.0GB', 'video_total_space_accurate': '490700013568B', 'video_free_space': '269.1GB', 'video_free_space_accurate': '288988094044B', 'picture_total_space': '0B', 'picture_total_space_accurate': '0B', 'picture_free_space': '0B', 'picture_free_space_accurate': '0B', 'crossline_total_space': '0B', 'crossline_total_space_accurate': '0B', 'crossline_free_space': '0B', 'crossline_free_space_accurate': '0B', 'msg_push_total_space': '0B', 'msg_push_total_space_accurate': '0B', 'msg_push_free_space': '0B', 'msg_push_free_space_accurate': '0B'}], 'recordPlan': {'enabled': 'on', 'monday': '["0000-2400:2"]', 'tuesday': '["0000-2400:2"]', 'wednesday': '["0000-2400:2"]', 'thursday': '["0000-2400:2"]', 'friday': '["0000-2400:2"]', 'saturday': '["0000-2400:2"]', 'sunday': '["0000-2400:2"]'}, 'microphoneVolume': '0', 'microphoneMute': 'off', 'microphoneNoiseCancelling': 'on', 'speakerVolume': '100', 'autoUpgradeEnabled': 'on', 'connectionInformation': {'link_type': 'ethernet'}, 'videoCapability': {'video_capability': {'main': {'encode_types': ['H264', 'H265'], 'frame_rates': ['65537', '65546', '65551', '65556'], 'bitrates': ['256', '512', '1024', '1536', '3072'], 'bitrate_types': ['cbr', 'vbr'], 'resolutions': ['2688*1520', '1920*1080', '1280*720'], 'qualitys': ['1', '3', '5'], 'hdrs': ['0', '1'], 'minor_stream_support': '1'}}}, 'videoQualities': {'video': {'main': {'quality': '3', 'bitrate': '3072', 'frame_rate': '65556', 'smart_codec': 'off', 'encode_type': 'H264', 'resolution': '2688*1520', 'bitrate_type': 'vbr', 'name': 'VideoEncoder_1', 'default_bitrate': '3072', 'hdr': '0'}}}}

Does this help?

JurajNyiri commented 3 months ago

Unfortunately no.

Try to download https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision this version manually, you should see WARN log messages (no need for debug anymore) and the doorbell should be in there somewhere. Keep it running for around 60 min or so and post results please (or as soon as you see doorbell in there -- not hub).

RedNo7 commented 3 months ago

will do that tomorrow - thanks!

edit: down it, but what results do you want me to post (I still cannot set to auto).

edit: logs: home-assistant_2024-07-20T17-08-24.486Z.log

JurajNyiri commented 3 months ago

Thank you for the logs @RedNo7 .

Still no data for doorbell in there I need, but try this https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision_2 should work, same thing, set to the value in the app and then post logs after an hour.

RedNo7 commented 3 months ago

Will do - cheers

JurajNyiri commented 3 months ago

@RedNo7 If you haven't yet, download again, I just pushed further changes to https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision_2 based on new version 5.5.0 having even more information, that should help us here.

RedNo7 commented 3 months ago

Will do - not currently at home.

RedNo7 commented 3 months ago

downloading the newer version now.

thanks.

RedNo7 commented 3 months ago

OK, set the value to auto (per the app) - it didil;t 'stick; as expected and will wait an hour now.

JurajNyiri commented 3 months ago

Set it to doorbell mode via the official app please.

RedNo7 commented 3 months ago

FYI - I have a Tapo hub update. I will wait the hour, send you the logs and then do the update (and then retry in just incase it has an effect). Screenshot 2024-07-22 at 09 38 48

RedNo7 commented 3 months ago

done. It was already in doorbell mode so moved it to another option and then back.

will upload in ~30 mins....

RedNo7 commented 3 months ago

logs: home-assistant_2024-07-22T09-09-42.744Z.log

JurajNyiri commented 3 months ago

Thank you, the only thing that is coming up are logs for C325WB. I am not sure how that is possible. Can you confirm you can see the night vision select for the doorbell?

If you have the option to port forward temporarily the hub so that I can try to connect to it and see the issue myself it would be helpful and would speed up resolution of this issue.

RedNo7 commented 3 months ago

I updated your integration to v5.5.3 and now it says it is no longer being provided by the integration.

Screenshot 2024-07-22 at 10 42 33

I can/will re-download your test version and check again if you like?

JurajNyiri commented 3 months ago

@RedNo7 That must be caused by a recent update. Could you please download again https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision_2 and see if it is there now?

If it is, the same as before, keep it running for a while, then post logs.

RedNo7 commented 3 months ago

huh. I can no longer see it with the experiment_night_vision2 version installed.

I hope I haven't been messing you about because I didn't clear by browser cache?

JurajNyiri commented 3 months ago

@RedNo7 did you re-download the latest version on https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision_2 I pushed before my comment before?

RedNo7 commented 3 months ago

yes, I did.

Interestingly*, now it is saying that number. doorbell_spotlight_intensity is no longer being provided.

I'll completely delete the integration and add it again to be sure (using https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/experiment_night_vision_2)

JurajNyiri commented 3 months ago

Ok in that case download https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/archive/88a8ac1eea00edc462b9a8ce0b3c3c2118ba7ee2.zip this is from before the changes introduced in 5.5.3, there should be an entity there.

JurajNyiri commented 3 months ago

In trustingly, now it is saying that number. doorbell_spotlight_intensity is no longer being provided.

That is ok, there should be a select dropdown instead in that case (not on the version I just posted though).

RedNo7 commented 3 months ago

OK, it's back.

Screenshot 2024-07-22 at 11 25 01

JurajNyiri commented 3 months ago

Please post logs once you have them

RedNo7 commented 3 months ago

how's this? home-assistant_2024-07-22T11-12-36.075Z.log

JurajNyiri commented 3 months ago

Finally I see the doorbell, I will take a look a bit later on a fix. Thank you!

RedNo7 commented 3 months ago

honestly, THANK YOU!

JurajNyiri commented 3 months ago

@RedNo7 What night vision modes to you see for C325WB in the app?

JurajNyiri commented 3 months ago

@RedNo7 Please test https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/archive/refs/heads/experiment_night_vision_2.zip . You should see either a Night Vision entity or possibly also a Night Vision Switching entity.

@RedNo7 please still let me know what night vision modes you see for C325WB in the app?

@marcosngomezi could you please test this on C420?

RedNo7 commented 3 months ago

@RedNo7 please still let me know what night vision modes you see for C325WB in the app?

I see:

Both C325WBs are set to 'Full-color Mode" at the moment.

RedNo7 commented 3 months ago

@RedNo7 Please test https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/archive/refs/heads/experiment_night_vision_2.zip . You should see either a Night Vision entity or possibly also a Night Vision Switching entity.

Will do this tomorrow - thanks!

JurajNyiri commented 3 months ago

Thank you, please let me know also what you see in the integration for C325WB and what it maps to - for the options that are not there, what do they do in the app?

marcosngomezi commented 3 months ago

Hi there, works in C420 and names are more similar(and maybe better) to the ones in the app 👍

RedNo7 commented 3 months ago

Thank you, please let me know also what you see in the integration for C325WB and what it maps to - for the options that are not there, what do they do in the app?

I don't knowingly have any issues with the C325WB, my issue was only with the DS230 doorbell.

...will do this later as well though 👍

RedNo7 commented 3 months ago

@JurajNyiri

OK, installed the latest night_vision_2 and I can now see Night Vision has been correctly populated with Doorbell Mode !! Screenshot 2024-07-23 at 08 36 44

Here is everything for your info: Screenshot 2024-07-23 at 08 37 05

Screenshot 2024-07-23 at 08 37 17

Screenshot 2024-07-23 at 08 37 32

Screenshot 2024-07-23 at 08 37 47


Edit: Changing Night Vision in HA changed it also in the Tapo app. Changing it in the Tapo app did not change it in HA (but is that a polling issue)?


Edit2: FYI - number.doorbell_spotlight_intensity is unavailable again

JurajNyiri commented 3 months ago

@RedNo7 Thank you! Let me know when you look into the C325WB, what options it has in HA and what it chooses in the app, and the ones that it doesn't, what does it do in the app? Then I will adjust, merge and release this.

Changing Night Vision in HA changed it also in the Tapo app. Changing it in the Tapo app did not change it in HA (but is that a polling issue)?

Polling delay, but I will double check.

FYI - number.doorbell_spotlight_intensity is unavailable again

Expected, it wasn't supposed to be there on this camera. You can safely delete the entity and use select instead.

RedNo7 commented 3 months ago

@RedNo7 Thank you! Let me know when you look into the C325WB, what options it has in HA and what it chooses in the app, and the ones that it doesn't, what does it do in the app? Then I will adjust, merge and release this.

OK, here is part 1 of the answer - just what is in HA - I'll try to match them to what's in the app later this morning. Note that where there are 2 snapshots the bottom entry of the 1st snapshot is duplicated at the top of the 2nd snapshot to ensure I got them all

UI controls: controls

UI sensors: sensors

UI config: config 1 config 2

UI diagnostic: diagnostic 1 diagnostic 2

UI by entity_ID: entity_id 1 entity_id 2