Git Product home page Git Product logo

kuna's Introduction

Kuna Smart Home Security Custom Integration for Home Assistant

hacs_badge

Home Assistant custom integration supporting Kuna cameras.

Home Assistant 0.96.0 or higher is required.

For each camera in a Kuna account, the following devices will be created:

  • Binary Sensor with device class 'motion', and default name "[Camera Name] Motion".
  • Camera with default name "[Camera Name] Camera".
  • Switch with default name "[Camera Name] Switch", which controls the camera's light bulb.

IoT Class: Cloud Polling

Installation (Home Assistant >= 0.96.0)

This custom integration must be installed for it to be loaded by Home Assistant.

The recommended installation method is via HACS.

Installation via HACS

  1. Add "marthoc/kuna" as a custom repository in HACS under "Settings".
  2. Search for "Kuna Smart Home Security" under "Integrations" in HACS.
  3. Click "Install".
  4. Proceed with Configuration.

Manual Installation

  1. Create a custom_components directory in your Home Assistant configuration directory ('config' share if using hass.io with the Samba add-on or ~/.home-assistant/ for Linux installations).
  2. Create a kuna directory in your custom_components directory.
  3. Grab the latest release from the GitHub "Releases" page.
  4. Copy all files (including the hidden .translations directory) from custom_components/kuna in the release to your config/custom_components/kuna directory.
  5. Restart Home Assistant and proceed with Configuration.

Configuration

To enable the integration, add it from the Configuration - Integrations menu in Home Assistant. Click "+", then "Kuna Smart Home Security".

(Note: previous versions of this component were configured in configuration.yaml; now, all configuration is via the Integration menu.)

The following options can be configured when setting up the integration:

Parameter Optional/Required Default Description
email Required N/A The email address used to log into the Kuna app.
password Required N/A The password used to log into the Kuna app.
recording_interval Optional 7200 The frequency, in seconds, that the component checks for new recordings for each camera.
stream_interval Optional 5 The frequency, in seconds, that the camera's frontend streaming view will refresh its image.
update_interval Optional 15 The frequency, in seconds, that the component polls the Kuna server for updates.

Updating

Update via HACS or by grabbing the latest release and overwriting the contents of your config/custom_components/kuna directory with the contents of custom_components/kuna in the release.

Downloading Recordings

On Home Assistant start, and every recording_interval seconds thereafter, this component checks the Kuna API for new recordings for each camera in the Kuna account, and fires a Home Assistant event for each recording found. These events can be used in an automation to trigger a download of the video with the downloader Home Assistant component. The default recording_interval, 7200 seconds (2 hours) corresponds to the length of time that recordings remain in the Kuna system without a premium subscription.

To automatically download new recordings, you must first set up the downloader Home Assistant component and then set up an automation.

Configuring the Downloader Component

Add the following to your configuration.yaml:

downloader:
  download_dir: downloads

You must ensure that the directory exists before restarting Home Assistant. Given the above example, you would need to ensure that there is a "downloads" subdirectory in your Home Assistant configuration directory, and that the Home Assistant user has write permission to that directory.

Refer to this page for further information on the downloader component: https://www.home-assistant.io/components/downloader/

Automatically Downloading Recordings via Automation

For each recording available in the Kuna API, this component fires a Home Assistant event with the following parameters:

  • event_type: "kuna_event"
  • event_data:
    • category: "recording"
    • serial_number: the serial number of the camera that generated the recording
    • label: a Kuna-assigned string that represents the timestamp of the recording in local time (e.g. "2019_03_18__16_20_06-0400")
    • timestamp: a Kuna-assigned string that represents the timestamp of the recording in UTC (e.g. "2019-03-18T20:20:06.986645Z")
    • duration: the length of the recording in seconds
    • url: the web address at which an mp4 file of the recording is available for download

You can use these parameters to build an automation using the event trigger and templates. To download all recordings, set up the following automation:

- alias: Download Kuna recordings
  trigger:
    platform: event
    event_type: kuna_event
    event_data:
      category: recording
  action:
    service: downloader.download_file
    data_template:
      url: '{{ trigger.event.data.url }}'
      filename: '{{ trigger.event.data.label }}.mp4'

If you want to limit downloads to only a specific camera, add the serial_number parameter under 'event_data' in the trigger.

Caveats

This integration has only been tested with a Maximus Smart Light. Testing and feedback by users with other (and multiple!) Kuna devices would be much appreciated!

This custom integration retrieves data from the same private API used by the Kuna mobile app, as Kuna does not offer a public API. Be gentle to the API and use at your own risk!

TODO

  • Support streaming from Kuna's websockets streaming endpoint in Home Assistant frontend.

kuna's People

Contributors

marthoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kuna's Issues

Logged warning about `does not support requesting width and height`

Doesn't seem to affect anything, like the previous issue I just filed, but figured it was worth reporting as well

Logger: homeassistant.components.camera
Source: components/camera/__init__.py:502
Integration: Camera (documentation, issues)
First occurred: 8:02:35 PM (3 occurrences)
Last logged: 8:02:35 PM

The camera entity camera.basement_camera does not support requesting width and height, please open an issue with the integration author
The camera entity camera.front_door_camera does not support requesting width and height, please open an issue with the integration author
The camera entity camera.deck_door_camera does not support requesting width and height, please open an issue with the integration author

Getting this error: Kuna API request error: 503, message='Service Unavailable'

Running on Docker Container Home Assistant 0.95.4. Everything seems to work fine, but I am getting this error: Kuna API request error: 503, message='Service Unavailable'. It happens every time that motion occurs. The interesting thing is that after two hours I got the recordings on my folder (that's great). Maybe problems connecting with the Kuna service?
I only have one camera (the light type) and your custom component has been working well.

Lost camera entities.

I have two Kuna "Porch Light" cameras. A few days ago (likely after the HA update), the camera entities disappeared from HA. I uninstalled and reinstalled and the integration only creates the switch entity and the sensor (motion) entity for both cameras with no camera entities created.

I set the logger to debug and got this in the logs:

kuna: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 684, in async_device_update await task File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/kuna/camera.py", line 100, in update self.is_streaming = True AttributeError: can't set attribute

Integration Not Showing Up

I followed the simple instructions but for some reason the Integration does not show up when I try to add it.

Can't even get started

Hi.

I appreciate all of your work to get this to us all. That said, I'm new to Home Assistant and I'm having trouble even getting started. Your first instruction states: "Add "marthoc/kuna" as a custom repository in HACS under "Settings"." HOW do I add/make a "custom repository"? I can't find this option anywhere in Settings.

Thank you for your time,
Ron.

Cameras Not Displaying and Warning after 0.110 Upgrade

After upgrading HA to 0.110 I am getting errors regarding Kuna cameras and the video is not displaying in Lovelace. I have uninstalled and reinstalled via HACS and still get the same errors.

image

Here is the data from the logs.
2020-05-22 09:35:24 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
2020-05-22 09:35:40 WARNING (MainThread) [homeassistant.components.binary_sensor] BinarySensorDevice is deprecated, modify KunaBinarySensor to extend BinarySensorEntity
2020-05-22 09:35:40 WARNING (MainThread) [homeassistant.components.switch] SwitchDevice is deprecated, modify KunaSwitch to extend SwitchEntity
2020-05-22 09:35:41 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
2020-05-22 09:35:41 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
2020-05-22 09:35:41 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
2020-05-22 09:35:41 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this
2020-05-22 09:35:41 WARNING (MainThread) [homeassistant.helpers.translation] kuna: the '.translations' directory has been moved, the new name is 'translations', starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename this

Streaming issue in 0.109.6

Thanks form a different part of the GTA- hope you're staying safe.

Post update to 0.109.6 of Home Assitant, and aiohttp 3.6.2

Recurring error is
raise ValueError('Unsupported body type %r' % type(body))
ValueError: Unsupported body type <class 'coroutine'>
2020-05-08 13:50:37 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 567, in body
self._body = body = payload.PAYLOAD_REGISTRY.get(body)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/payload.py", line 106, in get
raise LookupError()
aiohttp.payload.LookupError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/view.py", line 125, in handle
result = await result
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/camera/init.py", line 490, in get
return await self.handle(request, camera)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/camera/init.py", line 510, in handle
return web.Response(body=image, content_type=camera.content_type)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 545, in init
self.body = body
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 569, in body
raise ValueError('Unsupported body type %r' % type(body))
ValueError: Unsupported body type <class 'coroutine'>
/usr/lib/python3.7/asyncio/base_events.py:1756: RuntimeWarning: coroutine 'KunaCamera.camera_image' was never awaited
handle = self._ready.popleft()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

error url

I have 2 of the maximus smart lights, but I get this error.

Error while executing automation automation.download_kuna_recordings. Invalid data for call_service at pos 1: invalid url for dictionary value @ data['url']

Logged warning about `implements device_state_attributes`

Seems minor but figured it was worth reporting.

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 8:01:39 PM (3 occurrences)
Last logged: 8:01:39 PM

Entity camera.basement_camera (<class 'custom_components.kuna.camera.KunaCamera'>) implements device_state_attributes. Please report it to the custom component author.
Entity camera.front_door_camera (<class 'custom_components.kuna.camera.KunaCamera'>) implements device_state_attributes. Please report it to the custom component author.
Entity camera.deck_door_camera (<class 'custom_components.kuna.camera.KunaCamera'>) implements device_state_attributes. Please report it to the custom component author.

downloader writing some files with two dots in name

Hello, I created the automation according to the README.md file but some are written with two dots before the extension.
Screenshot 2022-06-02 174236

I've even tried to run a replace function to try to alleviate this but it didn't work.

service: downloader.download_file
data:
url: '{{ trigger.event.data.url }}'
filename: '{{ trigger.event.data.label | replace(''.'','''') }}.mp4'

Any suggestions?

Investigation: Getting the WebSocket wrapped RTSP stream

I had an itch to scratch and ended up starting to reverse-engineer the way the Kuna app gets a video stream. My initial results - where I'm stopping for now - are here: kevin-david/pykuna#1

I've gotten this far with a few approaches:

What I've found so far is that the app goes through some kind of negotation through the websocket, then has a (custom-looking?) protocol to pass messages across the socket. I have a feeling it's might not be custom and can be easily handled by something else - but haven't found anything yet. There are a few RTSP websocket proxies out there: https://www.bing.com/search?q=+websocket+rtsp+proxy

Here's what the websocket dump looks like, address https://video.kunasystems.com/ws/rtsp/proxy?authtoken=<your_auth_token>

big file
2022-04-11 02:15:20.091
0000000000 68 65 6c 6c 6f                                    hello
2022-04-11 02:15:24.009
0000000000 00 00 00 07 00 00 00 01 00 00 00 12 4f 4f 4b 4e   ............OOKN
0000000010 42 4c 30 31 31 34 00 00 00 00 00 00 00 33 00 00   BL01147redact3..
0000000020 00 28 39 33 35 39 37 31 37 66 36 33 32 32 66 33   .(9359717f6322f3
0000000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   redacted_access_
0000000040 62 34 33 61 36 30 63 61 38 61                     b43a60ca8a
2022-04-11 02:15:24.104
0000000000 00 00 00 08 0d 39 15 ae 00 00 00 01 00 00 00 00   .....9..........
0000000010 ff ff ff ff 00 02 37 6d 00 00 d6 fa 00 00 00 05   ......7m........
0000000020 00 02 37 6e 00 02 37 6f 00 02 37 70 00 02 37 71   ..7n..7o..7p..7q
0000000030 00 02 37 72                                       ..7r
2022-04-11 02:15:24.108
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 7f   ......7m..7m....
0000000010 4f 50 54 49 4f 4e 53 20 72 74 73 70 3a 2f 2f 6c   OPTIONS rtsp://l
0000000020 6f 63 61 6c 68 6f 73 74 3a 34 35 35 34 2f 73 74   ocalhost:4554/st
0000000030 72 65 61 6d 32 20 52 54 53 50 2f 31 2e 30 0d 0a   ream2 RTSP/1.0..
0000000040 43 53 65 71 3a 20 32 0d 0a 55 73 65 72 2d 41 67   CSeq: 2..User-Ag
0000000050 65 6e 74 3a 20 4c 69 62 56 4c 43 2f 33 2e 30 2e   ent: LibVLC/3.0.
0000000060 30 2d 67 69 74 20 28 4c 49 56 45 35 35 35 20 53   0-git (LIVE555 S
0000000070 74 72 65 61 6d 69 6e 67 20 4d 65 64 69 61 20 76   treaming Media v
0000000080 32 30 31 36 2e 31 31 2e 32 38 29 0d 0a 0d 0a      2016.11.28)....
2022-04-11 02:15:24.172
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 91   ......7m..7m....
0000000010 52 54 53 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d   RTSP/1.0 200 OK.
0000000020 0a 43 53 65 71 3a 20 32 0d 0a 44 61 74 65 3a 20   .CSeq: 2..Date: 
0000000030 4d 6f 6e 2c 20 41 70 72 20 31 31 20 32 30 32 32   Mon, Apr 11 2022
0000000040 20 30 32 3a 31 35 3a 32 36 20 47 4d 54 0d 0a 50    02:15:26 GMT..P
0000000050 75 62 6c 69 63 3a 20 4f 50 54 49 4f 4e 53 2c 20   ublic: OPTIONS, 
0000000060 44 45 53 43 52 49 42 45 2c 20 53 45 54 55 50 2c   DESCRIBE, SETUP,
0000000070 20 54 45 41 52 44 4f 57 4e 2c 20 50 4c 41 59 2c    TEARDOWN, PLAY,
0000000080 20 47 45 54 5f 50 41 52 41 4d 45 54 45 52 2c 20    GET_PARAMETER, 
0000000090 53 45 54 5f 50 41 52 41 4d 45 54 45 52 0d 0a 0d   SET_PARAMETER...
00000000a0 0a                                                .
2022-04-11 02:15:24.176
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 99   ......7m..7m....
0000000010 44 45 53 43 52 49 42 45 20 72 74 73 70 3a 2f 2f   DESCRIBE rtsp://
0000000020 6c 6f 63 61 6c 68 6f 73 74 3a 34 35 35 34 2f 73   localhost:4554/s
0000000030 74 72 65 61 6d 32 20 52 54 53 50 2f 31 2e 30 0d   tream2 RTSP/1.0.
0000000040 0a 43 53 65 71 3a 20 33 0d 0a 55 73 65 72 2d 41   .CSeq: 3..User-A
0000000050 67 65 6e 74 3a 20 4c 69 62 56 4c 43 2f 33 2e 30   gent: LibVLC/3.0
0000000060 2e 30 2d 67 69 74 20 28 4c 49 56 45 35 35 35 20   .0-git (LIVE555 
0000000070 53 74 72 65 61 6d 69 6e 67 20 4d 65 64 69 61 20   Streaming Media 
0000000080 76 32 30 31 36 2e 31 31 2e 32 38 29 0d 0a 41 63   v2016.11.28)..Ac
0000000090 63 65 70 74 3a 20 61 70 70 6c 69 63 61 74 69 6f   cept: applicatio
00000000a0 6e 2f 73 64 70 0d 0a 0d 0a                        n/sdp....
2022-04-11 02:15:24.257
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 03 81   ......7m..7m....
0000000010 52 54 53 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d   RTSP/1.0 200 OK.
0000000020 0a 43 53 65 71 3a 20 33 0d 0a 44 61 74 65 3a 20   .CSeq: 3..Date: 
0000000030 4d 6f 6e 2c 20 41 70 72 20 31 31 20 32 30 32 32   Mon, Apr 11 2022
0000000040 20 30 32 3a 31 35 3a 32 36 20 47 4d 54 0d 0a 43    02:15:26 GMT..C
0000000050 6f 6e 74 65 6e 74 2d 42 61 73 65 3a 20 72 74 73   ontent-Base: rts
0000000060 70 3a 2f 2f 6c 6f 63 61 6c 68 6f 73 74 3a 34 35   p://localhost:45
0000000070 35 34 2f 73 74 72 65 61 6d 32 0d 0a 43 6f 6e 74   54/stream2..Cont
0000000080 65 6e 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63   ent-Type: applic
0000000090 61 74 69 6f 6e 2f 73 64 70 0d 0a 43 6f 6e 74 65   ation/sdp..Conte
00000000a0 6e 74 2d 4c 65 6e 67 74 68 3a 20 37 33 35 0d 0a   nt-Length: 735..
00000000b0 0d 0a 76 3d 30 0d 0a 6f 3d 2d 20 31 36 34 39 35   ..v=0..o=- 16495
00000000c0 37 31 30 36 36 35 30 38 37 37 37 20 31 20 49 4e   71066508777 1 IN
00000000d0 20 49 50 34 20 31 39 32 2e 31 36 38 2e 31 2e 31    IP4 192.168.1.1
00000000e0 34 36 0d 0a 73 3d 4b 75 6e 61 0d 0a 69 3d 73 74   46..s=Kuna..i=st
00000000f0 72 65 61 6d 31 0d 0a 74 3d 30 20 30 0d 0a 61 3d   ream1..t=0 0..a=
0000000100 74 6f 6f 6c 3a 4b 75 6e 61 3a 20 4e 6f 76 20 31   tool:Kuna: Nov 1
0000000110 34 20 32 30 31 39 20 2d 20 30 31 3a 35 32 3a 35   4 2019 - 01:52:5
0000000120 32 0d 0a 61 3d 74 79 70 65 3a 62 72 6f 61 64 63   2..a=type:broadc
0000000130 61 73 74 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 2a   ast..a=control:*
0000000140 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74 3d 30 2d   ..a=range:npt=0-
0000000150 0d 0a 61 3d 78 2d 71 74 2d 74 65 78 74 2d 6e 61   ..a=x-qt-text-na
0000000160 6d 3a 4b 75 6e 61 0d 0a 61 3d 78 2d 71 74 2d 74   m:Kuna..a=x-qt-t
0000000170 65 78 74 2d 69 6e 66 3a 73 74 72 65 61 6d 31 0d   ext-inf:stream1.
0000000180 0a 6d 3d 76 69 64 65 6f 20 30 20 52 54 50 2f 41   .m=video 0 RTP/A
0000000190 56 50 20 39 36 0d 0a 63 3d 49 4e 20 49 50 34 20   VP 96..c=IN IP4 
00000001a0 31 39 32 2e 31 36 38 2e 31 2e 31 34 36 0d 0a 62   192.168.1.146..b
00000001b0 3d 41 53 3a 31 30 30 30 0d 0a 61 3d 72 74 70 6d   =AS:1000..a=rtpm
00000001c0 61 70 3a 39 36 20 48 32 36 34 2f 39 30 30 30 30   ap:96 H264/90000
00000001d0 0d 0a 61 3d 66 6d 74 70 3a 39 36 20 70 61 63 6b   ..a=fmtp:96 pack
00000001e0 65 74 69 7a 61 74 69 6f 6e 2d 6d 6f 64 65 3d 31   etization-mode=1
00000001f0 3b 20 70 72 6f 66 69 6c 65 2d 6c 65 76 65 6c 2d   ; profile-level-
0000000200 69 64 3d 34 44 34 30 31 45 3b 20 73 70 72 6f 70   id=4D401E; sprop
0000000210 2d 70 61 72 61 6d 65 74 65 72 2d 73 65 74 73 3d   -parameter-sets=
0000000220 5a 30 31 41 48 70 70 6b 42 71 48 76 2b 41 74 77   Z01AHppkBqHv+Atw
0000000230 45 42 41 55 41 41 41 50 70 41 41 42 31 4d 4f 68   EBAUAAAPpAAB1MOh
0000000240 41 44 61 77 41 47 31 53 75 38 75 4e 43 41 47 31   ADawAG1Su8uNCAG1
0000000250 67 41 4e 71 6c 64 35 63 4b 41 3d 3d 2c 61 4f 34   gANqld5cKA==,aO4
0000000260 38 67 41 3d 3d 3b 0d 0a 61 3d 66 72 61 6d 65 72   8gA==;..a=framer
0000000270 61 74 65 3a 31 34 2e 39 38 35 0d 0a 61 3d 63 6c   ate:14.985..a=cl
0000000280 69 70 72 65 63 74 3a 30 2c 30 2c 34 38 30 2c 38   iprect:0,0,480,8
0000000290 34 38 0d 0a 61 3d 63 6f 6e 74 72 6f 6c 3a 74 72   48..a=control:tr
00000002a0 61 63 6b 31 0d 0a 6d 3d 61 75 64 69 6f 20 30 20   ack1..m=audio 0 
00000002b0 52 54 50 2f 41 56 50 20 39 38 0d 0a 63 3d 49 4e   RTP/AVP 98..c=IN
00000002c0 20 49 50 34 20 31 39 32 2e 31 36 38 2e 31 2e 31    IP4 192.168.1.1
00000002d0 34 36 0d 0a 61 3d 72 74 70 6d 61 70 3a 39 38 20   46..a=rtpmap:98 
00000002e0 6d 70 65 67 34 2d 67 65 6e 65 72 69 63 2f 34 38   mpeg4-generic/48
00000002f0 30 30 30 2f 31 0d 0a 61 3d 66 6d 74 70 3a 39 38   000/1..a=fmtp:98
0000000300 20 73 74 72 65 61 6d 74 79 70 65 3d 35 3b 20 70    streamtype=5; p
0000000310 72 6f 66 69 6c 65 2d 6c 65 76 65 6c 2d 69 64 3d   rofile-level-id=
0000000320 34 31 3b 20 6d 6f 64 65 3d 41 41 43 2d 68 62 72   41; mode=AAC-hbr
0000000330 3b 20 63 6f 6e 66 69 67 3d 31 31 38 38 3b 20 53   ; config=1188; S
0000000340 69 7a 65 4c 65 6e 67 74 68 3d 31 33 3b 20 49 6e   izeLength=13; In
0000000350 64 65 78 4c 65 6e 67 74 68 3d 33 3b 20 49 6e 64   dexLength=3; Ind
0000000360 65 78 44 65 6c 74 61 4c 65 6e 67 74 68 3d 33 3b   exDeltaLength=3;
0000000370 20 50 72 6f 66 69 6c 65 3d 31 3b 0d 0a 61 3d 63    Profile=1;..a=c
0000000380 6f 6e 74 72 6f 6c 3a 74 72 61 63 6b 35 0d 0a 0d   ontrol:track5...
0000000390 0a                                                .
2022-04-11 02:15:24.270
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 b8   ......7m..7m....
0000000010 53 45 54 55 50 20 72 74 73 70 3a 2f 2f 6c 6f 63   SETUP rtsp://loc
0000000020 61 6c 68 6f 73 74 3a 34 35 35 34 2f 73 74 72 65   alhost:4554/stre
0000000030 61 6d 32 2f 74 72 61 63 6b 31 20 52 54 53 50 2f   am2/track1 RTSP/
0000000040 31 2e 30 0d 0a 43 53 65 71 3a 20 34 0d 0a 55 73   1.0..CSeq: 4..Us
0000000050 65 72 2d 41 67 65 6e 74 3a 20 4c 69 62 56 4c 43   er-Agent: LibVLC
0000000060 2f 33 2e 30 2e 30 2d 67 69 74 20 28 4c 49 56 45   /3.0.0-git (LIVE
0000000070 35 35 35 20 53 74 72 65 61 6d 69 6e 67 20 4d 65   555 Streaming Me
0000000080 64 69 61 20 76 32 30 31 36 2e 31 31 2e 32 38 29   dia v2016.11.28)
0000000090 0d 0a 54 72 61 6e 73 70 6f 72 74 3a 20 52 54 50   ..Transport: RTP
00000000a0 2f 41 56 50 3b 75 6e 69 63 61 73 74 3b 63 6c 69   /AVP;unicast;cli
00000000b0 65 6e 74 5f 70 6f 72 74 3d 34 33 37 33 34 2d 34   ent_port=43734-4
00000000c0 33 37 33 35 0d 0a 0d 0a                           3735....
2022-04-11 02:15:24.327
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 cb   ......7m..7m....
0000000010 52 54 53 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d   RTSP/1.0 200 OK.
0000000020 0a 43 53 65 71 3a 20 34 0d 0a 44 61 74 65 3a 20   .CSeq: 4..Date: 
0000000030 4d 6f 6e 2c 20 41 70 72 20 31 31 20 32 30 32 32   Mon, Apr 11 2022
0000000040 20 30 32 3a 31 35 3a 32 36 20 47 4d 54 0d 0a 54    02:15:26 GMT..T
0000000050 72 61 6e 73 70 6f 72 74 3a 20 52 54 50 2f 41 56   ransport: RTP/AV
0000000060 50 3b 75 6e 69 63 61 73 74 3b 64 65 73 74 69 6e   P;unicast;destin
0000000070 61 74 69 6f 6e 3d 32 35 35 2e 32 35 35 2e 32 35   ation=255.255.25
0000000080 35 2e 30 3b 73 6f 75 72 63 65 3d 6c 6f 63 61 6c   5.0;source=local
0000000090 68 6f 73 74 3b 63 6c 69 65 6e 74 5f 70 6f 72 74   host;client_port
00000000a0 3d 34 33 37 33 34 2d 34 33 37 33 35 3b 73 65 72   =43734-43735;ser
00000000b0 76 65 72 5f 70 6f 72 74 3d 35 30 30 30 30 2d 35   ver_port=50000-5
00000000c0 30 30 30 31 0d 0a 53 65 73 73 69 6f 6e 3a 20 36   0001..Session: 6
00000000d0 34 44 34 30 42 35 35 0d 0a 0d 0a                  4D40B55....
2022-04-11 02:15:24.334
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 cb   ......7m..7m....
0000000010 53 45 54 55 50 20 72 74 73 70 3a 2f 2f 6c 6f 63   SETUP rtsp://loc
0000000020 61 6c 68 6f 73 74 3a 34 35 35 34 2f 73 74 72 65   alhost:4554/stre
0000000030 61 6d 32 2f 74 72 61 63 6b 35 20 52 54 53 50 2f   am2/track5 RTSP/
0000000040 31 2e 30 0d 0a 43 53 65 71 3a 20 35 0d 0a 55 73   1.0..CSeq: 5..Us
0000000050 65 72 2d 41 67 65 6e 74 3a 20 4c 69 62 56 4c 43   er-Agent: LibVLC
0000000060 2f 33 2e 30 2e 30 2d 67 69 74 20 28 4c 49 56 45   /3.0.0-git (LIVE
0000000070 35 35 35 20 53 74 72 65 61 6d 69 6e 67 20 4d 65   555 Streaming Me
0000000080 64 69 61 20 76 32 30 31 36 2e 31 31 2e 32 38 29   dia v2016.11.28)
0000000090 0d 0a 54 72 61 6e 73 70 6f 72 74 3a 20 52 54 50   ..Transport: RTP
00000000a0 2f 41 56 50 3b 75 6e 69 63 61 73 74 3b 63 6c 69   /AVP;unicast;cli
00000000b0 65 6e 74 5f 70 6f 72 74 3d 35 39 32 39 36 2d 35   ent_port=59296-5
00000000c0 39 32 39 37 0d 0a 53 65 73 73 69 6f 6e 3a 20 36   9297..Session: 6
00000000d0 34 44 34 30 42 35 35 0d 0a 0d 0a                  4D40B55....
2022-04-11 02:15:24.387
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 cb   ......7m..7m....
0000000010 52 54 53 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d   RTSP/1.0 200 OK.
0000000020 0a 43 53 65 71 3a 20 35 0d 0a 44 61 74 65 3a 20   .CSeq: 5..Date: 
0000000030 4d 6f 6e 2c 20 41 70 72 20 31 31 20 32 30 32 32   Mon, Apr 11 2022
0000000040 20 30 32 3a 31 35 3a 32 36 20 47 4d 54 0d 0a 54    02:15:26 GMT..T
0000000050 72 61 6e 73 70 6f 72 74 3a 20 52 54 50 2f 41 56   ransport: RTP/AV
0000000060 50 3b 75 6e 69 63 61 73 74 3b 64 65 73 74 69 6e   P;unicast;destin
0000000070 61 74 69 6f 6e 3d 32 35 35 2e 32 35 35 2e 32 35   ation=255.255.25
0000000080 35 2e 30 3b 73 6f 75 72 63 65 3d 6c 6f 63 61 6c   5.0;source=local
0000000090 68 6f 73 74 3b 63 6c 69 65 6e 74 5f 70 6f 72 74   host;client_port
00000000a0 3d 35 39 32 39 36 2d 35 39 32 39 37 3b 73 65 72   =59296-59297;ser
00000000b0 76 65 72 5f 70 6f 72 74 3d 35 30 30 30 30 2d 35   ver_port=50000-5
00000000c0 30 30 30 31 0d 0a 53 65 73 73 69 6f 6e 3a 20 36   0001..Session: 6
00000000d0 34 44 34 30 42 35 35 0d 0a 0d 0a                  4D40B55....
2022-04-11 02:15:24.391
0000000000 00 00 00 06 00 02 37 6f 00 00 00 06 ff ff ff ff   ......7o........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.395
0000000000 00 00 00 06 00 02 37 6e 00 00 00 07 ff ff ff ff   ......7n........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.397
0000000000 00 00 00 06 00 02 37 6f 00 00 00 08 ff ff ff ff   ......7o........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.398
0000000000 00 00 00 06 00 02 37 6e 00 00 00 09 ff ff ff ff   ......7n........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.399
0000000000 00 00 00 06 00 02 37 70 00 00 00 0a ff ff ff ff   ......7p........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.400
0000000000 00 00 00 06 00 02 37 70 00 00 00 0b ff ff ff ff   ......7p........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.401
0000000000 00 00 00 06 00 02 37 71 00 00 00 0c ff ff ff ff   ......7q........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.402
0000000000 00 00 00 06 00 02 37 71 00 00 00 0d ff ff ff ff   ......7q........
0000000010 00 00 00 00 00 00 00 04 ce fa ed fe               ............
2022-04-11 02:15:24.403
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 a2   ......7m..7m....
0000000010 50 4c 41 59 20 72 74 73 70 3a 2f 2f 6c 6f 63 61   PLAY rtsp://loca
0000000020 6c 68 6f 73 74 3a 34 35 35 34 2f 73 74 72 65 61   lhost:4554/strea
0000000030 6d 32 20 52 54 53 50 2f 31 2e 30 0d 0a 43 53 65   m2 RTSP/1.0..CSe
0000000040 71 3a 20 36 0d 0a 55 73 65 72 2d 41 67 65 6e 74   q: 6..User-Agent
0000000050 3a 20 4c 69 62 56 4c 43 2f 33 2e 30 2e 30 2d 67   : LibVLC/3.0.0-g
0000000060 69 74 20 28 4c 49 56 45 35 35 35 20 53 74 72 65   it (LIVE555 Stre
0000000070 61 6d 69 6e 67 20 4d 65 64 69 61 20 76 32 30 31   aming Media v201
0000000080 36 2e 31 31 2e 32 38 29 0d 0a 53 65 73 73 69 6f   6.11.28)..Sessio
0000000090 6e 3a 20 36 34 44 34 30 42 35 35 0d 0a 52 61 6e   n: 64D40B55..Ran
00000000a0 67 65 3a 20 6e 70 74 3d 30 2e 30 30 30 2d 0d 0a   ge: npt=0.000-..
00000000b0 0d 0a                                             ..
2022-04-11 02:15:24.482
0000000000 00 00 00 04 00 02 37 6d 00 02 37 6d 00 00 00 f9   ......7m..7m....
0000000010 52 54 53 50 2f 31 2e 30 20 32 30 30 20 4f 4b 0d   RTSP/1.0 200 OK.
0000000020 0a 43 53 65 71 3a 20 36 0d 0a 44 61 74 65 3a 20   .CSeq: 6..Date: 
0000000030 4d 6f 6e 2c 20 41 70 72 20 31 31 20 32 30 32 32   Mon, Apr 11 2022
0000000040 20 30 32 3a 31 35 3a 32 37 20 47 4d 54 0d 0a 52    02:15:27 GMT..R
0000000050 61 6e 67 65 3a 20 6e 70 74 3d 30 2e 30 30 30 2d   ange: npt=0.000-
0000000060 0d 0a 53 65 73 73 69 6f 6e 3a 20 36 34 44 34 30   ..Session: 64D40
0000000070 42 35 35 0d 0a 52 54 50 2d 49 6e 66 6f 3a 20 75   B55..RTP-Info: u
0000000080 72 6c 3d 72 74 73 70 3a 2f 2f 31 39 32 2e 31 36   rl=rtsp://192.16
0000000090 38 2e 31 2e 31 34 36 2f 73 74 72 65 61 6d 31 2f   8.1.146/stream1/
00000000a0 74 72 61 63 6b 31 3b 73 65 71 3d 36 31 31 37 34   track1;seq=61174
00000000b0 3b 72 74 70 74 69 6d 65 3d 32 37 30 35 37 34 33   ;rtptime=2705743
00000000c0 32 31 30 2c 75 72 6c 3d 72 74 73 70 3a 2f 2f 31   210,url=rtsp://1
00000000d0 39 32 2e 31 36 38 2e 31 2e 31 34 36 2f 61 75 64   92.168.1.146/aud
00000000e0 69 6f 2f 74 72 61 63 6b 35 3b 73 65 71 3d 35 35   io/track5;seq=55
00000000f0 32 30 36 3b 72 74 70 74 69 6d 65 3d 35 34 36 34   206;rtptime=5464
0000000100 32 31 33 39 30 0d 0a 0d 0a                        21390....
2022-04-11 02:15:24.516
0000000000 00 00 00 06 00 02 37 70 0d 39 16 12 00 00 00 0d   ......7p.9......
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 01 16 80 e2 d7 a7 20 91 c2 8e 0d f3 7a   P........ .....z
0000000030 14 00 40 04 08 00 00 03 f8 00 00 ff f9 4c 40 10   [email protected]@.
0000000040 22 7c 01 16 34 21 08 91 59 0c 52 fc 67 bf 17 cf   "|..4!..Y.R.g...
0000000050 df ed bb ae ab 98 cb 65 f2 4a 84 ab ad c9 34 1a   .......e.J....4.
0000000060 4a bc 4f 53 47 90 2b 9b f3 5e a7 24 98 ad f6 9d   J.OSG.+..^.$....
0000000070 ce ee 5b a3 a9 17 13 e2 85 23 b1 65 64 be a8 86   ..[......#.ed...
0000000080 5a cc 92 b4 81 5a 94 4b 18 72 f2 e5 9f 65 65 71   Z....Z.K.r...eeq
0000000090 52 4b 2d 1a 4f 41 92 74 b8 b6 22 33 50 c4 fe d4   RK-.OA.t.."3P...
00000000a0 d5 1c 26 02 e2 cb 60 af 2b a4 cb 10 5d 54 40 99   ..&...`.+...]T@.
00000000b0 32 c0 72 8a fe 9d fe da 90 00 c1 c0 ff f9 4c 40   2.r...........L@
00000000c0 0f e2 80 01 1c 34 21 88 41 c3 e3 5c eb 5e 9c 36   .....4!.A..\.^.6
00000000d0 d6 d5 ce 97 59 49 cf 3a 2e e6 55 b3 80 76 37 0e   ....YI.:..U..v7.
00000000e0 8e 86 de af 1a e9 d7 19 72 4b 2e 01 e0 61 f2 21   ........rK...a.!
00000000f0 38 11 00 41 ec 9c 74 d4 21 c6 1c 47 1b 28 9f a3   8..A..t.!..G.(..
0000000100 d5 bc 59 f8 0d be 39 70 b5 b0 55 54 bb d3 2c 2e   ..Y...9p..UT..,.
0000000110 40 0a 60 24 9d 42 c8 17 0f 94 5e bd 94 56 69 80   @.`$.B....^..Vi.
0000000120 57 e9 8f 8a 45 31 24 4d 04 50 0a ab d2 20 02 33   W...E1$M.P... .3
0000000130 e1 7f e5 2a d4 01 8c 00 00 03 80                  ...*.......
2022-04-11 02:15:24.517
0000000000 00 00 00 06 00 02 37 71 0d 39 16 11 00 00 00 0d   ......7q.9......
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 51 00 00 00 1c 80 c8 00 06 0d f3 7a 14 e5 fe 0d   Q..........z....
0000000030 bf 19 7b 84 db 20 91 c2 8e 00 00 00 01 00 00 01   ..{.. ..........
0000000040 00                                                .
2022-04-11 02:15:24.540
0000000000 00 00 00 06 00 02 37 6e 0d 39 16 22 00 00 00 0d   ......7n.9."....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 05 a4 80 60 ee f7 a1 46 74 e0 19 93 70   P.....`...Ft...p
0000000030 2c 7c 81 9a 05 05 6a e3 bf a5 04 73 0e 77 85 45   ,|....j....s.w.E
0000000040 92 65 b6 c1 3f a1 f6 cb 73 18 3a e2 c2 af 86 31   .e..?...s.:....1
0000000050 c3 82 72 09 93 a9 ea d6 5f 04 36 20 18 34 a6 99   ..r....._.6 .4..
0000000060 a1 45 21 53 54 ad 3b b2 44 99 1f 85 ee 21 5b 00   .E!ST.;.D....![.
0000000070 a1 9b 7e 74 ec 7d bf ca 30 85 3e ab 78 d6 a1 fc   ..~t.}..0.>.x...
0000000080 3b 0f 5b cb e0 eb 6c 42 8b a2 b7 16 c0 17 81 ea   ;.[...lB........
0000000090 37 9f ca 8c 08 62 25 f3 3c fb f4 6f 48 4a 8a d0   7....b%.<..oHJ..
00000000a0 01 61 5e f3 72 9e f4 e8 17 ab fb d0 ef d3 4f f9   .a^.r.........O.
00000000b0 e6 1d 76 9f 00 32 bd ba 1c dc dc ef 9e 87 28 27   ..v..2........('
00000000c0 f0 6c 7b 41 44 f9 fb 70 89 f0 21 81 8b 90 7b 5b   .l{AD..p..!...{[
00000000d0 7e 0b 8a c5 8b 0e 3a 41 d7 8c 71 30 7b 11 26 9d   ~.....:A..q0{.&.
00000000e0 81 56 fd de 35 d4 3f a2 bb 27 04 1c af b8 c5 36   .V..5.?..'.....6
00000000f0 5e 80 ca a4 ae 07 5b 93 0b 21 93 c0 d3 5f 2b a6   ^.....[..!..._+.
0000000100 13 85 d4 b0 98 5f 91 ec 70 df d4 db 3a 46 4d 1c   ....._..p...:FM.
0000000110 55 7c ab 67 71 a0 42 18 82 17 a4 aa 64 74 17 62   U|.gq.B.....dt.b
0000000120 e7 cd 0d ef 10 70 e4 fa b2 c4 49 b2 e6 d7 83 44   .....p....I....D
0000000130 35 51 4e 93 6d 1f c4 c2 18 c0 e0 39 8c af 4d 0a   5QN.m......9..M.
0000000140 3c 5f d0 47 62 6e eb db b2 30 a1 ab 17 e6 8c d8   <_.Gbn...0......
0000000150 2e 7a ea b3 b9 22 5f 67 8a 7e 02 32 db fd e8 08   .z..."_g.~.2....
0000000160 3d 22 ed b3 a4 eb fa 99 9d a2 c5 a6 d2 ab ca 75   =".............u
0000000170 65 90 74 b1 8b 97 49 7b 71 14 fd bf 61 e6 73 1c   e.t...I{q...a.s.
0000000180 4a 14 54 a0 3c 44 7d ba 91 d8 0b 34 31 53 72 bb   J.T.<D}....41Sr.
0000000190 29 60 cc 38 ec a4 7c 97 4e 29 5b f7 2a 03 55 91   )`.8..|.N)[.*.U.
00000001a0 fd d3 67 e1 f4 71 85 cc 73 dc f9 95 51 b8 80 91   ..g..q..s...Q...
00000001b0 30 d9 cc 9b 23 6a b5 47 e8 08 9a 31 bc f8 95 d6   0...#j.G...1....
00000001c0 4f 7c e5 a2 2f 9e fa 2b 52 ec 87 49 bb 76 ab 8d   O|../..+R..I.v..
00000001d0 70 c8 db ae ab b7 d2 27 1a 14 c4 c3 bf 68 43 65   p......'.....hCe
00000001e0 a6 0c 38 86 6c 04 7f 19 f6 5b 69 c7 83 b0 60 2f   ..8.l....[i...`/
00000001f0 4a ca 09 21 0b 3d e4 4f cb 96 86 c0 78 60 66 49   J..!.=.O....x`fI
0000000200 77 ad 5e 44 b8 1e d0 24 88 5f 29 cf 62 cb 90 f1   w.^D...$._).b...
0000000210 29 d0 20 ce 44 22 de 31 d1 fa 09 d2 12 cb 5d 5c   ). .D".1......]\
0000000220 dd 4e 09 d4 03 2a b6 10 07 53 20 37 e5 5a 94 11   .N...*...S 7.Z..
0000000230 fa 72 3c df 46 ad 4c 48 85 65 44 0c d5 13 67 18   .r<.F.LH.eD...g.
0000000240 82 6f ac be 1b 41 b1 e1 0d cd 9a 41 47 c4 7c 69   .o...A.....AG.|i
0000000250 5b d0 1d 9a 65 71 17 fc 96 18 e0 c3 70 2d 66 10   [...eq......p-f.
0000000260 a3 23 6a 79 41 29 0d 61 45 d3 4c 89 43 e6 b8 fc   .#jyA).aE.L.C...
0000000270 28 51 2a 4c f3 21 a0 7d 72 7b ba 26 ea 24 5a 40   (Q*L.!.}r{.&.$Z@
0000000280 04 34 5b 98 bd 2c f8 74 7f e6 8c 02 78 e8 0c 1b   .4[..,.t....x...
0000000290 c2 ab 3a 66 11 1f e0 76 34 39 ec 0b e3 e1 1d bd   ..:f...v49......
00000002a0 16 0b 73 7f ec cf 64 9f 5d 1d 7a ac ef f1 1d ca   ..s...d.].z.....
00000002b0 d3 06 84 b1 72 32 13 52 e9 2b 9d 32 93 40 07 ce   ....r2.R.+.2.@..
00000002c0 f2 31 68 c0 df b0 3a 05 e5 c9 8d a4 66 56 d8 25   .1h...:.....fV.%
00000002d0 d6 50 a1 06 03 9b 27 62 cf 3c 7d df 7a cd b6 12   .P....'b.<}.z...
00000002e0 89 34 a1 f5 99 6c 81 4b c5 0c 32 88 c4 e2 7a 06   .4...l.K..2...z.
00000002f0 5a 0c ba 39 9f 3d a8 9d 53 3c 3a d4 b5 a0 0a 49   Z..9.=..S<:....I
0000000300 07 3d f8 e5 a1 82 7e 7e 56 6e bb 94 6a 49 e6 0f   .=....~~Vn..jI..
0000000310 ff b5 5e f5 5c fb fb 9f dd 92 48 c5 bc e5 5b 7c   ..^.\.....H...[|
0000000320 73 bb 5e 13 71 d9 dd f8 0f 01 b8 74 60 2c 78 a4   s.^.q......t`,x.
0000000330 82 6b e3 41 39 de 2d b0 5e 3b a0 65 d8 b1 6e b4   .k.A9.-.^;.e..n.
0000000340 ed c4 a9 fc 2d e7 74 55 2b 8d 3d 03 1b 0f c8 73   ....-.tU+.=....s
0000000350 bd 71 e9 22 50 0e 6c c5 b5 05 e2 0c f7 a1 fb ee   .q."P.l.........
0000000360 17 aa 66 1d fc a1 69 d7 cc 08 6d 17 4a ea ef 64   ..f...i...m.J..d
0000000370 ff 62 34 b0 46 e4 81 f9 f3 b4 05 f9 9b 45 42 97   .b4.F........EB.
0000000380 bc 5f b0 d1 73 5b 52 c6 ac 24 cd c3 f0 ed 55 bc   ._..s[R..$....U.
0000000390 30 1d fd 8e 64 2f e0 fc fd 02 f6 f5 90 95 b0 63   0...d/.........c
00000003a0 f4 17 9d e2 a5 70 a8 eb c5 bd ce f8 51 6e 1d db   .....p......Qn..
00000003b0 23 77 5c a0 48 d0 78 dc 31 fb 4b 96 aa 09 21 ce   #w\.H.x.1.K...!.
00000003c0 ae d2 7c e3 e8 cf 9d 52 f4 a0 a7 99 a8 c8 e3 9a   ..|....R........
00000003d0 ec d2 a1 f5 15 16 e5 41 4d ea 1e 49 28 56 c2 d9   .......AM..I(V..
00000003e0 d6 f2 44 69 bc 0a eb 69 51 82 32 00 40 ff bf 44   [email protected]
00000003f0 a6 b9 6f 37 98 ae d5 5c ef 12 7b eb 7a 44 95 59   ..o7...\..{.zD.Y
0000000400 93 78 bd fd aa 8c 96 79 da f4 65 d9 83 6e bb 82   .x.....y..e..n..
0000000410 96 66 1f 38 c0 16 91 88 e4 55 2a f2 0e 76 d8 20   .f.8.....U*..v. 
0000000420 ec af 85 3d 6b d1 26 6f 49 05 5b 15 26 0f b7 20   ...=k.&oI.[.&.. 
0000000430 6b 07 14 5d 28 27 eb 48 a1 c3 22 2b 9f 4a f6 45   k..]('.H.."+.J.E
0000000440 34 3d 5b 7c 74 5e 83 81 21 4a 17 5b 91 35 80 2f   4=[|t^..!J.[.5./
0000000450 c4 23 5e 60 74 6f a0 1c cf 0c ae 10 3c 5e 56 d5   .#^`to......<^V.
0000000460 e3 4e a6 cb 12 a4 0d 68 93 5d 3e 73 7f b7 9b dd   .N.....h.]>s....
0000000470 8a 75 8a d4 35 f7 c0 5a a5 5e 4a 61 6b 95 48 64   .u..5..Z.^Jak.Hd
0000000480 d5 62 e1 0c 9e 73 ca 46 8a 3b a2 30 d4 c2 7b 85   .b...s.F.;.0..{.
0000000490 9d 6a 99 be 63 d3 c5 91 44 2a b2 01 67 98 99 64   .j..c...D*..g..d
00000004a0 7c a5 e9 30 82 57 63 f2 93 ad c1 98 26 e8 72 6a   |..0.Wc.....&.rj
00000004b0 a3 ac e9 90 55 1e f5 17 43 e2 d4 68 ba 13 3b 00   ....U...C..h..;.
00000004c0 60 74 ae 22 c0 69 a1 2a fb ee de 46 f9 c9 15 a4   `t.".i.*...F....
00000004d0 93 63 61 7d 21 f5 1e 50 f1 1e d4 45 ca ff ad 14   .ca}!..P...E....
00000004e0 32 70 13 18 5d 84 07 27 3f bb 37 e6 93 e7 01 4a   2p..]..'?.7....J
00000004f0 7e a1 4f b8 51 a2 36 b1 a0 09 bf 10 36 31 02 ee   ~.O.Q.6.....61..
0000000500 a6 20 d4 3e 96 26 9a 4e 8d c4 77 b1 8d 75 7f e9   . .>.&.N..w..u..
0000000510 4e 91 e0 bf 3c 2c 17 9f 08 d1 65 7b 04 7a 34 87   N...<,....e{.z4.
0000000520 05 8f 06 ab 32 50 59 cc 45 12 83 6f ea 91 a4 2c   ....2PY.E..o...,
0000000530 a9 6d 8e 47 63 05 39 a2 34 3d da 6a 87 da 12 50   .m.Gc.9.4=.j...P
0000000540 23 f6 27 c3 21 08 fe d0 61 8e b4 e3 a0 cf 6d 1f   #.'.!...a.....m.
0000000550 3d 27 3e ca 7c f3 2c 2e 5d d5 d0 a8 2b 3a df d6   ='>.|.,.]...+:..
0000000560 aa 1c bf 17 1f 8b bc 75 b4 97 bd 23 a1 cb 49 14   .......u...#..I.
0000000570 a6 0e 04 d3 fe 5a 72 33 ee 7f 08 9d ec 7c 6f 29   .....Zr3.....|o)
0000000580 52 aa 03 82 48 9a 91 b4 0f c0 5a 0c 5a da 15 21   R...H.....Z.Z..!
0000000590 f5 92 c4 65 8c d0 39 7d 7f da 06 07 98 08 4d 3b   ...e..9}......M;
00000005a0 d9 2f de 5f ce 1e 7a 00 6a 54 ec 34 8b f6 ff 0a   ./._..z.jT.4....
00000005b0 90 f9 20 e4 5c 29 45 3a 19 2c 63 ad 5c 3e c9 91   .. .\)E:.,c.\>..
00000005c0 6c 27 2a 71 1f 93 6a fe d0                        l'*q..j..
2022-04-11 02:15:24.551
0000000000 00 00 00 06 00 02 37 6e 0d 39 16 26 00 00 00 0d   ......7n.9.&....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 00 43 80 e0 ee f8 a1 46 74 e0 19 93 70   P...C.....Ft...p
0000000030 2c 7c 41 61 4d 61 ed ed 3c b8 88 d0 ee 7e 9c 1a   ,|AaMa..<....~..
0000000040 e3 8a 67 e1 40 7b d1 8d dd 0b 45 dd 7b 82 bb 5f   ..g.@{....E.{.._
0000000050 10 d9 4d 2c ab 97 80 e2 b5 e9 cd 9b 32 ed 5b d0   ..M,........2.[.
0000000060 4b 93 58 12 39 1b e6 70                           K.X.9..p
2022-04-11 02:15:24.551
0000000000 00 00 00 06 00 02 37 6f 0d 39 16 28 00 00 00 0d   ......7o.9.(....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 51 00 00 00 1c 80 c8 00 06 19 93 70 2c e5 fe 0d   Q..........p,...
0000000030 bf 19 d8 2f d7 a1 46 74 e0 00 00 00 02 00 00 05   .../..Ft........
0000000040 e8                                                .
2022-04-11 02:15:24.561
0000000000 00 00 00 06 00 02 37 70 0d 39 16 2e 00 00 00 0d   ......7p.9......
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 01 16 80 e2 d7 a8 20 91 ca 8e 0d f3 7a   P........ .....z
0000000030 14 00 40 04 00 00 00 04 00 00 00 ff f9 4c 40 10   [email protected]@.
0000000040 02 80 01 12 34 21 a3 b7 c7 35 55 e7 9c e3 9a ba   ....4!...5U.....
0000000050 a9 be b9 93 30 c4 ab 28 97 01 36 d3 b2 05 43 39   ....0..(..6...C9
0000000060 b5 15 04 5a 37 8e d1 73 5e 6e 40 10 61 44 12 10   ...Z7..s^[email protected]..
0000000070 80 43 44 fe 49 f3 d9 4d 19 5b fe 9a 62 dd 4d 94   .CD.I..M.[..b.M.
0000000080 40 5a 02 2a 5d 7a d4 5a 94 db 19 a7 78 89 4e 91   @Z.*]z.Z....x.N.
0000000090 60 ac 40 e9 6e 06 08 ca b0 43 96 9d 9d 42 c0 0c   `[email protected]..
00000000a0 ab 6c 12 92 43 99 40 2b 65 a8 fd 80 84 92 96 de   .l..C.@+e.......
00000000b0 dd 32 d4 00 ca 00 00 00 00 01 c0 ff f9 4c 40 10   .2...........L@.
00000000c0 02 80 01 14 34 21 a7 b7 9d 7d be 33 be 37 d7 8b   ....4!...}.3.7..
00000000d0 e3 c1 cf 08 de 4b dc c9 57 73 2b 49 41 71 ad b9   .....K..Ws+IAq..
00000000e0 d3 70 b8 28 dc e9 19 b9 6b 28 96 2d 90 14 d6 93   .p.(....k(.-....
00000000f0 10 8e 64 46 02 45 00 22 dd 71 53 14 93 ac 08 5c   ..dF.E.".qS....\
0000000100 ba b6 11 0a 69 1d 88 ab b3 db ac 8d d2 2b 09 c4   ....i........+..
0000000110 2f e1 ce e3 15 42 96 47 5a 55 e4 04 a7 50 b2 57   /....B.GZU...P.W
0000000120 58 87 62 d6 da a6 70 e3 49 35 68 6a cd 38 f3 40   X.b...p.I5hj.8.@
0000000130 93 82 11 9e 84 34 40 06 20 00 0e                  .....4@. ..
2022-04-11 02:15:24.581
0000000000 00 00 00 06 00 02 37 70 0d 39 16 30 00 00 00 0d   ......7p.9.0....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 01 16 80 e2 d7 a9 20 91 d2 8e 0d f3 7a   P........ .....z
0000000030 14 00 40 04 00 00 00 04 00 00 00 ff f9 4c 40 10   [email protected]@.
0000000040 02 80 01 18 34 21 48 71 41 10 56 f8 9e be 3d 71   ....4!HqA.V...=q
0000000050 8c be ec e3 ba 91 59 48 ba 52 ea a4 ad 02 1a 3e   ......YH.R.....>
0000000060 fe ab 29 eb f4 b6 12 a9 5f 6a b2 08 59 82 81 63   ..)....._j..Y..c
0000000070 7e fb e4 1f 89 6e d1 c1 f3 81 5a 0d 52 e1 3b 02   ~....n....Z.R.;.
0000000080 f1 05 9b 04 c7 ab 3c 2f f7 9b be 20 27 01 95 3b   ......</... '..;
0000000090 55 3a 28 e3 6d 21 52 b7 e9 f6 54 36 c2 87 21 10   U:(.m!R...T6..!.
00000000a0 02 35 8c 0d 21 3e 70 05 42 25 25 5a dc 04 d2 b6   .5..!>p.B%%Z....
00000000b0 fb 64 e3 68 00 32 00 00 00 00 70 ff f9 4c 40 10   .d.h.2....p..L@.
00000000c0 02 80 01 1a 34 21 88 31 cb db 9b b7 3e de 35 7e   ....4!.1....>.5~
00000000d0 35 39 bc be 67 5d d3 77 8b 94 e3 96 8b 04 67 33   59..g].w......g3
00000000e0 e1 52 bd 32 7d b1 37 a9 a5 46 c4 98 e2 2a 40 ef   .R.2}.7..F...*@.
00000000f0 01 f0 40 20 e7 e4 20 86 e4 4f ff cd ea b4 49 2f   ..@ .. ..O....I/
0000000100 49 2d 42 70 0b 00 a4 a8 fa 7a b3 58 2c 05 a1 aa   I-Bp.....z.X,...
0000000110 e9 a2 66 ed 24 08 14 af f7 06 20 a1 59 3b 01 4f   ..f.$..... .Y;.O
0000000120 66 5b 8a 01 99 58 a5 4d 5f 4a 6a 01 e8 af eb c3   f[...X.M_Jj.....
0000000130 c5 4e f5 a8 03 28 00 00 00 00 07                  .N...(.....
2022-04-11 02:15:24.612
0000000000 00 00 00 06 00 02 37 6e 0d 39 16 4b 00 00 00 0d   ......7n.9.K....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 00 36 80 e0 ee f9 a1 46 8c 56 19 93 70   P...6.....F.V..p
0000000030 2c 67 4d 40 1e 9a 64 06 a1 ef f8 0b 70 10 10 14   ,[email protected]...
0000000040 00 00 0f a4 00 01 d4 c3 a1 00 6d 00 03 66 2b bc   ..........m..f+.
0000000050 b8 d0 80 36 80 01 b3 15 de 5c 28                  ...6.....\(
2022-04-11 02:15:24.613
0000000000 00 00 00 06 00 02 37 6e 0d 39 16 4c 00 00 00 0d   ......7n.9.L....
0000000010 32 35 2e 31 37 38 2e 35 39 2e 31 37 30 00 00 c3   25.178.59.170...
0000000020 50 00 00 00 10 80 e0 ee fa a1 46 8c 56 19 93 70   P.........F.V..p
0000000030 2c 68 ee 3c 80                                    ,h.<.

It also looks like there might be some kind of VPN involved (that 25.178.59.170, which is the "UK Ministry of Defence"... unless they are sending all my traffic there), and possibly an optimization to use local network somehow (maybe opening ports on the device temporarily?)

Anyway, sharing this in case anyone else is interested in digging in more with me. Not sure if/when I'll get back to this.

Camera - Mocking Service

I just got this cam. The camera network request, can they redirected to a own mocking service, in order to write the streams in a own local diskstation?

Reagards,
TED

Custom Repository in HACS

I am trying to install marthoc/kuna as a custom repository but it does not work. The HACS documentation says the repository must be HACS compliant. Can you verify this works, then I can pursue the issue with HACS?

Keep recordings from being backed up

I have a daily automatic backup in HA and I don't know how to keep the Kuna downloads (from the /cofig/downloads directory).

Also, even if I delete older files, they will be re-downloaded by the Kuna automation. This is causing my backups to be huge.

Is there some way to exclude these videos from being backed-up?

Represent bulb as a light instead of switch entity

Hello,

Any chance of getting the light as a light instead of a switch? I’d like to control the brightness form HA.

Derek

On Dec 18, 2021, at 6:08 PM, Kevin David @.***> wrote:

As reported in #38 #38, this simple fix should address this problem - and it did for me as well.

I assume this will not cause problems for folks who use the integration with earlier versions, but it'd be great if someone could check my assumption there!

You can view, comment on, or merge this pull request online at:

#41 #41
Commit Summary

e907377 e907377 Fix integration for HA versions 2021.12.0 or later
File Changes (1 file https://github.com/marthoc/kuna/pull/41/files)
M custom_components/kuna/camera.py https://github.com/marthoc/kuna/pull/41/files#diff-0ed86c5a2cda30bee4bfb215d1bc3bf13c3766ae07358cf1da75250533a3b47f (2)
Patch Links:

https://github.com/marthoc/kuna/pull/41.patch https://github.com/marthoc/kuna/pull/41.patch
https://github.com/marthoc/kuna/pull/41.diff https://github.com/marthoc/kuna/pull/41.diff

Reply to this email directly, view it on GitHub #41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHOJDTKRVCWQW3S6AHV7HT3URUWCNANCNFSM5KLI4R3Q.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.

Originally posted by @mcfarlde in #41 (comment)

Stream via Alexa Echo Show or FireTV?

Hi, thank you for this great integration! It works very well and I truly appreciate it. I was wondering if anyone has tried this integration with Alexa for live streaming, a la "Alexa, show me the back yard"?

I have a couple of cameras connected via the Yi-hack integration and I was able to use HA's stream integration to view the cameras in my FireTV.

From this issue here, it seems that it is necessary to configure the supported_features of the camera:
Alexa.CameraStreamController in Alexa: no longer works in 0.110

The Kuna integration currently reports 0 supported features. For reference, I looked at the code for Yi-Hacks here:
roleoroleo/yi-hack-Allwinner-v2

The code for camera.py declares its supported features:

@property
def supported_features(self) -> int:
"""Return supported features."""
return SUPPORT_STREAM | SUPPORT_ON_OFF

Of course, I'm no expert so I don't know all of the details of making it work. It seems like the code is a lot more involved than just declaring the features.

This would be a great feature to implement if possible. It would certainly beat the crap out of Kuna's Alexa skill, which is basically useless.

New kuna account

Hassio latest version. 91.3. Put files from github in config/custom_components/kuna as instructed. In init.py file it states REQUIREMENTS = ["pykuna==0.5.1"]. I suspect my difficulties are because I don't know to install pykuna in hassio. System Log shows:
2019-04-14 20:48:21 ERROR (MainThread) [pykuna.kuna] Request to Kuna API timed out
2019-04-14 20:48:21 ERROR (MainThread) [custom_components.kuna] There was an error logging into Kuna: No Kuna API token response returned, check username and password.
2019-04-14 20:48:21 ERROR (MainThread) [homeassistant.setup] Setup failed for kuna: Component 'kuna' did not return boolean if setup was successful. Disabling component. Please help, I'd like this to work. Username and password are correct.

v2021.12.0 Breaks Kuna Camera Streaming

After upgrading to core-2021.12.0, my Kuna cameras would no longer stream. I tried deleting and re-adding the integration, but I'm still getting the same error in the logs:

Logger: homeassistant.components.camera
Source: custom_components/kuna/camera.py:100
Integration: Camera (documentation, issues)
First occurred: 9:50:49 PM (2 occurrences)
Last logged: 9:50:49 PM

kuna: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 684, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/kuna/camera.py", line 100, in update
self.is_streaming = True
AttributeError: can't set attribute

Config flow could not be loaded

When adding the Kuna Integration from Configuration I get an error Config flow could not be loaded. Upon checking the logs it provides more details the version key needs to be included in the manifest.json

The custom integration 'kuna' does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details

I'm running Home Assistant 2021.6.0b1 and version 9.1 of the Kuna Smart Home Security integration.

No 'version' key

2021-05-14 08:55:24 ERROR (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'kuna'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'kuna'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.