Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,


as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.


As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!



Smart Home Forum by FIBARO Team

  • 0

Capturing multipart xml alertstream from IP Camera



Hi there, my first time here,


I am trying to capture a multipart XML-alertstream from a Hikvision IP camera, but since the stream never closes I never receive a response. The information within the stream, such as VMD, LINEDETECTION, FIELDDETECTION etc. will be used to trigger other scenes or VD's in my HC2 (v4.080).


This is my test scene so far:

Please login or register to see this code.

When running the code, no OK or ERROR will show up, but immediately shows this:

Please login or register to see this code.

Running the code again shows:

Please login or register to see this code.

Additional info:

  • The GET method works fine directly from my browser (

    Please login or register to see this link.

    , but the connection stays open while xml data is continuously being added.
  • There’s no authorization issue since I am able to get a good response (single XML response) from a simple GET request.

Final goal, of course, is to read response.data in order to do nice things with it. But since nothing shows up… Can someone point me in the right direction? Thanks in advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

my experience was to use a raspberry pi controller loaded with Home Assistant as interface. No way to read a file that does not close.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...