Closed thib5 closed 1 year ago
Binary sensor works. Tell us what you tried, what setup you have (HTTPS? Webhooks?). Enable debug logs and send them here. Provide more details about when it stopped working, what you did. For 1.3.6 you need to have webhooks working.
2023-08-13 08:43:14.752 DEBUG (MainThread) [custom_components.tapo_control] {'raw': {'getDeviceInfo': {'device_info': {'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_model': 'C100', 'device_name': 'C100 2.0', 'device_info': 'C100 2.0 IPC', 'hw_version': '2.0', 'sw_version': '1.3.6 Build 230512 Rel.47982n(4555)', 'device_alias': 'EntranceCam', 'avatar': 'room', 'longitude': 0, 'latitude': 0, 'has_set_location_info': 0, 'features': '3', 'barcode': '', 'mac': 'B4-B0-24-E6-DE-80', 'dev_id': '8021D019B9E0F7B988B90C59A0A0FD3F1F6B277C', 'oem_id': '3BABD40007EE7AD631EA61A73C8B9D64', 'hw_desc': '00000000000000000000000000000000'}}}, 'getDetectionConfig': {'motion_detection': {'motion_det': {'.name': 'motion_det', '.type': 'on_off', 'enabled': 'on', 'enhanced': 'off', 'sensitivity': 'medium', 'digital_sensitivity': '50'}}}, 'getPersonDetectionConfig': False, 'getVehicleDetectionConfig': False, 'getBCDConfig': {'sound_detection': {'bcd': {'.name': 'bcd', '.type': 'on_off', 'enabled': 'off', 'sensitivity': 'medium', 'digital_sensitivity': '50'}}}, 'getPetDetectionConfig': False, 'getBarkDetectionConfig': False, 'getMeowDetectionConfig': False, 'getGlassDetectionConfig': False, 'getTamperDetectionConfig': False, 'getLensMaskConfig': {'lens_mask': {'lens_mask_info': {'.name': 'lens_mask_info', '.type': 'lens_mask_info', 'enabled': 'off'}}}, 'getLdc': {'image': {'switch': {'.name': 'switch', '.type': 'switch_type', 'switch_mode': 'common', 'schedule_start_time': '21600', 'schedule_end_time': '64800', 'flip_type': 'off', 'rotate_type': 'off', 'ldc': 'on'}, 'common': {'.name': 'common', '.type': 'para', 'luma': '50', 'contrast': '50', 'chroma': '50', 'saturation': '50', 'sharpness': '50', 'exp_type': 'auto', 'shutter': '1/25', 'exp_gain': '0', 'inf_type': 'auto', 'inf_start_time': '64800', 'inf_end_time': '21600', 'inf_sensitivity': '4', 'inf_sensitivity_day2night': '57', 'inf_sensitivity_night2day': '160', 'inf_delay': '5', 'backlight': 'off', 'light_freq_mode': 'auto', 'wd_gain': '50', 'wb_type': 'auto', 'wb_R_gain': '0', 'wb_G_gain': '0', 'wb_B_gain': '0'}}}, 'getLastAlarmInfo': {'msg_alarm': {'chn1_msg_alarm_info': {'.name': 'chn1_msg_alarm_info', '.type': 'info', 'enabled': 'off', 'alarm_type': '0', 'alarm_mode': ['sound'], 'light_type': '1'}}}, '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': {'.name': 'media_encrypt', '.type': 'on_off', 'enabled': 'on'}}}, 'getConnectionType': {'link_type': 'wifi', 'ssid': 'FRITZ!Box 7560 OR', 'rssi': '4', 'rssiValue': -43}, 'getAlarmConfig': False, 'getAlarmPlan': False, 'getSirenTypeList': False, 'getLightTypeList': False, 'getSirenStatus': False, 'getLightFrequencyInfo': {'image': {'common': {'.name': 'common', '.type': 'para', 'luma': '50', 'contrast': '50', 'chroma': '50', 'saturation': '50', 'sharpness': '50', 'exp_type': 'auto', 'shutter': '1/25', 'exp_gain': '0', 'inf_type': 'auto', 'inf_start_time': '64800', 'inf_end_time': '21600', 'inf_sensitivity': '4', 'inf_sensitivity_day2night': '57', 'inf_sensitivity_night2day': '160', 'inf_delay': '5', 'backlight': 'off', 'light_freq_mode': 'auto', 'wd_gain': '50', 'wb_type': 'auto', 'wb_R_gain': '0', 'wb_G_gain': '0', 'wb_B_gain': '0'}}}, 'getLightFrequencyCapability': False, 'getChildDeviceList': False, 'getRotationStatus': {'image': {'switch': {'.name': 'switch', '.type': 'switch_type', 'switch_mode': 'common', 'schedule_start_time': '21600', 'schedule_end_time': '64800', 'flip_type': 'off', 'rotate_type': 'off', 'ldc': 'on'}}}, 'getNightVisionModeConfig': False}, 'user': 'gsca075@gmail.com', 'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_model': 'C100', 'device_name': 'C100 2.0', 'device_info': 'C100 2.0 IPC', 'hw_version': '2.0', 'sw_version': '1.3.6 Build 230512 Rel.47982n(4555)', 'device_alias': 'EntranceCam', 'avatar': 'room', 'longitude': 0, 'latitude': 0, 'has_set_location_info': 0, 'features': '3', 'barcode': '', 'mac': 'B4-B0-24-E6-DE-80', 'dev_id': '8021D019B9E0F7B988B90C59A0A0FD3F1F6B277C', 'oem_id': '3BABD40007EE7AD631EA61A73C8B9D64', 'hw_desc': '00000000000000000000000000000000'}, 'motion_detection_enabled': 'on', 'motion_detection_sensitivity': 'normal', 'person_detection_enabled': None, 'person_detection_sensitivity': None, 'vehicle_detection_enabled': None, 'vehicle_detection_sensitivity': None, 'babyCry_detection_enabled': 'off', 'babyCry_detection_sensitivity': 'normal', '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': 'off', 'lens_distrotion_correction': 'on', '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}
2023-08-13 08:43:14.752 DEBUG (MainThread) [custom_components.tapo_control] Updating entities...
2023-08-13 08:43:14.752 DEBUG (MainThread) [custom_components.tapo_control] Updating entity...
2023-08-13 08:43:14.752 DEBUG (MainThread) [custom_components.tapo_control]
I think HA community actually changed something related to the web hooks but I guess there is a motion alarm sensors that wasn't there before, basically multiple sensors for motion detection result on motion always detected.
@sca075 make sure to follow all the steps in readme and then open new issue if still experiencing problems including ALL the details requested above and more.
@sca075 make sure to follow all the steps in readme and then open new issue if still experiencing problems including ALL the details requested above and more.
In my case i just made a certificate and connect thru duckdns. Is there some instruction for noobs to connect move sensor? It's not appear when i do all steps. But i can't use http instead of https inside my local network, where to find manual to do it?
Ok let's go :
Make sure the camera has motion detection turned on:
Make sure the camera has privacy mode turned off
Make sure the camera can see you and your movement You wil have to trust me on that on ahah !
If you have webhooks enabled, and your Home Assistant internal URL is reachable on HTTP, make sure camera can reach it. I have webhooks enable... tried to disable it ... i know it's faster but it's not a must for me if i need to disable it i can do it... My home assistant is NOT reachable via http. everything is setup with a let's encrypt certificate
Make sure you have correct IP set for Home Assistant. Turn on Advanced Mode under /profile. Go to /config/network and under Network Adapter verify correct IP is shown for the device. If it is not correct, under Home Assistant URL uncheck Automatic next to Local Network and set it to http://
Certain camera firmwares have pullpoint broken, with only webhooks working. If you are not able to run webhooks because of above (https, or vlan setup), binary sensor will never show up. So that means if you have an https setup sensor won't work ... ?
So we found it ? the issue is that I have an ssl certificate for external access ?
Thanks
In orders to webhooks work on Tapo cameras you need to have HA reachable via http on local and have this URL set in the settings as the base URL. There is no other way, new firmwares have broken pullpoint which worked before.
Ok … how do I do that then ? Since i still want to access my server from the extern ?
Also, do i need webhook ? I disabled it and i still don’t have any sensor
There are many ways on how to do that depending on your env and setup. What you need is having http available on your local and https outside. You could for example to this by having HA run without ssl and then use nginx reverse proxy with certificate from letsencrypt, or you could use https to http tunnel service on your local.
Webhooks are the only supported onvif communication way on the bugged firmwares, yes you need them.
@JurajNyiri 5.2.3 in my case works without to touch anything on HA. I had some network issue and I'm sorry if I raised up on this discussion.. anyhow I will be reading the readme before updating to 5.3.0 (official release)
Description
Hey my binary sensor won't appear on both (c100 & c200 )of my cam ( don't know since when ) I did a lot of search a lot of trouble shoot but nothing work. I check everything in the FAQ ... still wont work...
Here some info : tapo integration: ( used to be 5.2.4 ) 5.3.0 beta 2 c100: Firmware 1.3.6 Build 230424 c200: firmware 1.3.6 Build 230424![image](https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/assets/16377867/591859cc-3a2b-403d-9bf8-0c64c32029a0)
Reproduction Steps
NA
Expected behavior
NA
If applicable, add error logs.
No response
Device Firmware
1.3.6 Build 230424
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
hassio on esxi
Search for similar issues
Yes
Additional information
No response